Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Erik Malund
02/10/06 08:09
Read: 1266 times
Mt Airy, Nc
USA


 
#109715 - Decimal switches - how to start C
Responding to: Kai Klaas's previous message
I think the both are the same? Both code the number as BCD? Then, both should have four wires which are '1', '2', '4' and '8' and both should have a wire that's called 'common'. This is the one which connects the four switches '1', '2', '4' and '8' to ground. A look at datasheet of decimal key can help.
Decimal switches come in 3 versions; BCD, grey code and 11 pin.

I think it was Andy who gave you a link to the original instruction set of 80C51 family. At the beginning of this instruction set there's a table, where each instruction is listed with number of needed bytes and oscillator periods needed to execute.
I have seen no 12-clocker that does not match, but beware, the reduced clock cycle derivatives have different cycle count for some instructions.
A little terminology lesson: for the 12 clocker 12 clocks form one instruction cycle and the instructions take a varying number (1-4) of "instruction cycles" to execute. All instruction use a whole number of instruction cycles.


Also, i would like to know what things need to be studied for writing codes in C or Keil uvision2 (C51 compiler).
what are all the topics i should be knowing.

1) "the bible"
if you know C skip 2)
2) C for the PC a good self study book would be Kochan: Programming in C, 3rd Edition
3) the uvision getting started guide

DO NOT skip 2) if you are not reasonably fluent in C

i.e., will learning the architecture of a particular micro alone will be enough (or) should i be proficient with the instruction set also, ..e.t.c.,
You should intensively learn one certain micro, you want to work with in the next future. This could be the AT89S52 for instance, Erik might recommend you the LPC9xx series from philips. Try to become familiar as much as possible with the architecture and the instruction set of this micro.

For a beginner I will recommend the SILabs f00 or f12 devkit ($99 - up). It comes with eval tools and an ICElike debugger. I, for one, see an enormous advantage for a beginner to able to "look under the hood".

This often depends on personal taste. Mahmood for instance is coding everything in C. Others do everything in assembler.
and I use a mix. One word about assembler: It is an enormous advantage to know it. as Kai said "I think it's never a bad idea to learn coding in assembler, because it supports the learning of architecture of micro."

Erik

here are the links to "the bible"
Chapter 1
http://www.semiconductors.philips.com/acrobat/v...ARCH_1.pdf

chapter 2
http://www.semiconductors.philips.com/acrobat/v...UIDE_1.pdf


chapter 3
http://www.semiconductors.philips.com/acrobat/v...WARE_1.pdf


List of 57 messages in thread
TopicAuthorDate
Circuit for dispensing unit      Suresh R      01/31/06 05:09      
   1.1 sec monoshot      Abhishek Singh      01/31/06 09:43      
      this thread is apin off from an earlier      Terry Lingle      01/31/06 13:07      
         yes      Steve M. Taylor      01/31/06 13:55      
         timing circuit      Suresh R      02/01/06 04:17      
   Monostable      Andy Neil      01/31/06 12:08      
   Yes.      Steve M. Taylor      01/31/06 13:06      
   Hello All      Suresh R      01/31/06 22:23      
      Description of the "Dispensing Unit"      Andy Neil      02/01/06 00:39      
         using micro      Suresh R      02/02/06 00:25      
            Microcontroller      Andy Neil      02/02/06 01:35      
               Pressure      Steve M. Taylor      02/02/06 03:51      
            What must your circuit can do?      Kai Klaas      02/02/06 07:17      
               0.1 sec      Steve M. Taylor      02/02/06 10:34      
                  but not with a potentiometer      Erik Malund      02/02/06 10:38      
                     Vernier      Steve M. Taylor      02/02/06 13:02      
                        and calibrate it how?      Erik Malund      02/02/06 13:14      
               Precision        Andy Neil      02/02/06 15:13      
                  Sure!      Kai Klaas      02/02/06 16:01      
                     Price      Andy Neil      02/02/06 17:06      
                        Less than 1      Kai Klaas      02/02/06 20:02      
                           levels of precision      Suresh R      02/03/06 05:01      
                              Please have a look into datasheet!      Kai Klaas      02/03/06 05:57      
                                 somewhere here there is a link      Erik Malund      02/03/06 06:51      
                                    Details?      Kai Klaas      02/03/06 07:17      
                                       I recall that in an earlier thread      Erik Malund      02/03/06 07:20      
                              Ooops.      Steve M. Taylor      02/03/06 09:49      
                              Blown Discharge PIN      Abhishek Singh      02/04/06 19:15      
                                 You can also let the smoke out of the      Terry Lingle      02/04/06 22:37      
                                    limits      Steve M. Taylor      02/05/06 06:13      
                                       dissapation      Terry Lingle      02/05/06 09:45      
                                          There must be a point.      Steve M. Taylor      02/05/06 10:31      
                                             Fusing the bonding wires      Terry Lingle      02/05/06 13:59      
                                                History making      Steve M. Taylor      02/05/06 14:47      
                                                Current limiting      Kai Klaas      02/07/06 06:42      
                                 I do go through      Suresh R      02/07/06 01:50      
            schematic and code      Kai Klaas      02/05/06 19:47      
               codes      Suresh R      02/07/06 00:32      
                  Instruction Description      Andy Neil      02/07/06 04:28      
                     not quite      Erik Malund      02/07/06 06:09      
                        Pedantic      Andy Neil      02/07/06 07:12      
                           is that not the pot calling the kettle b      Erik Malund      02/07/06 07:17      
                              Of course not!      Andy Neil      02/07/06 07:31      
                  Answers      Kai Klaas      02/07/06 07:55      
                     Re: codes and shcematic      Suresh R      02/10/06 03:55      
                        Recommendations      Kai Klaas      02/10/06 07:05      
                           Decimal switches - how to start C      Erik Malund      02/10/06 08:09      
      LM555 pin 2 wired wrong.      Charles Bannister      02/01/06 04:45      
         ... and the LED?      Andy Neil      02/01/06 05:31      
            i'm sure thts not the circuit      Abhishek Singh      02/01/06 06:38      
            Astable??      Kai Klaas      02/01/06 11:46      
               I wondered who'd spot that first...      Andy Neil      02/01/06 12:47      
   Damaged?      Kai Klaas      02/01/06 11:51      
      And Andy's correction      Steve M. Taylor      02/01/06 12:03      
         Absolutely!      Kai Klaas      02/01/06 12:24      
   one shot in the foot      Erik Malund      02/01/06 12:31      
      Need not to work unreliably      Kai Klaas      02/02/06 07:10      

Back to Subject List