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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
02/10/06 14:05
Read: times


 
#109704 - Recommendations
Responding to: ???'s previous message
Suresh said:
I am using a seperate programming device that connects to the computer USB port for programing the micro.
I would like to know how the three lock bits should be programmed.

This must be an option of the programmer software you use. With Atmel's ISP programmer you can open a menu and select what lockbits to set. So, as I don't know your programmer software I cannot give help.

Suresh said:
I want to use 3 decimal keys(each running from 0-9)to set the value instead of using a BCD switch.

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.

Suresh said:
The additional instructions are all one machine cycle(12 crystal pulses).
There are 10 additional instructions. So the delay will be 120 clk pulses.
But how, the execution time for a particular instruction is calculated?

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.

An example: Instruction 'clr tr0' needs 1 byte and 12 oscillator periods. If your clock frequency is 11.0592MHz, then this instuctions 'consumes' 1 / 11.0592MHz x 12 = 1.085µsec.

By the way, not all instructions need 12 oscillator periods. 'jnz timer_delay' needs 24.

Suresh said:
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.

I'm not very familar with C. I'm doing a lot of EMC and analog stuff, where the micro is only a little part of the project. We have specialized coders, who intensivly work with C. But, if I have to code something, then I'll do it in assembler nearly always. So, somebody else must give you hints.

Suresh said:
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.
If you have understood one certain micro in very detail, then it's no longer a problem for you to understand any other. You will probably migrate to several new micros during your career. But whatever micro you work with, you must understand it thoroughly!

Suresh said:
Is using C language preferred in embeddded software development rather than a Assembly Language? If so - why?

This often depends on personal taste. Mahmood for instance is coding everything in C. Others do everything in assembler. Bigger projects with thousand of code lines are difficult to code in assembler. Critical timing issues are difficult to code in C, on the other hand. So, it depends...
Nevertheless, I think it's never a bad idea to learn coding in assembler, because it supports the learning of architecture of micro.

Kai

List of 57 messages in thread
TopicAuthorDate
Circuit for dispensing unit            01/01/70 00:00      
   1.1 sec monoshot            01/01/70 00:00      
      this thread is apin off from an earlier            01/01/70 00:00      
         yes            01/01/70 00:00      
         timing circuit            01/01/70 00:00      
   Monostable            01/01/70 00:00      
   Yes.            01/01/70 00:00      
   Hello All            01/01/70 00:00      
      Description of the "Dispensing Unit"            01/01/70 00:00      
         using micro            01/01/70 00:00      
            Microcontroller            01/01/70 00:00      
               Pressure            01/01/70 00:00      
            What must your circuit can do?            01/01/70 00:00      
               0.1 sec            01/01/70 00:00      
                  but not with a potentiometer            01/01/70 00:00      
                     Vernier            01/01/70 00:00      
                        and calibrate it how?            01/01/70 00:00      
               Precision            01/01/70 00:00      
                  Sure!            01/01/70 00:00      
                     Price            01/01/70 00:00      
                        Less than 1€            01/01/70 00:00      
                           levels of precision            01/01/70 00:00      
                              Please have a look into datasheet!            01/01/70 00:00      
                                 somewhere here there is a link            01/01/70 00:00      
                                    Details?            01/01/70 00:00      
                                       I recall that in an earlier thread            01/01/70 00:00      
                              Ooops.            01/01/70 00:00      
                              Blown Discharge PIN            01/01/70 00:00      
                                 You can also let the smoke out of the            01/01/70 00:00      
                                    limits            01/01/70 00:00      
                                       dissapation            01/01/70 00:00      
                                          There must be a point.            01/01/70 00:00      
                                             Fusing the bonding wires            01/01/70 00:00      
                                                History making            01/01/70 00:00      
                                                Current limiting            01/01/70 00:00      
                                 I do go through            01/01/70 00:00      
            schematic and code            01/01/70 00:00      
               codes            01/01/70 00:00      
                  Instruction Description            01/01/70 00:00      
                     not quite            01/01/70 00:00      
                        Pedantic            01/01/70 00:00      
                           is that not the pot calling the kettle b            01/01/70 00:00      
                              Of course not!            01/01/70 00:00      
                  Answers            01/01/70 00:00      
                     Re: codes and shcematic            01/01/70 00:00      
                        Recommendations            01/01/70 00:00      
                           Decimal switches - how to start C            01/01/70 00:00      
      LM555 pin 2 wired wrong.            01/01/70 00:00      
         ... and the LED?            01/01/70 00:00      
            i'm sure thts not the circuit            01/01/70 00:00      
            Astable??            01/01/70 00:00      
               I wondered who'd spot that first...            01/01/70 00:00      
   Damaged?            01/01/70 00:00      
      And Andy's correction            01/01/70 00:00      
         Absolutely!            01/01/70 00:00      
   one shot in the foot            01/01/70 00:00      
      Need not to work unreliably            01/01/70 00:00      

Back to Subject List