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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/07/03 09:24
Read: times


 
#44970 - RE: Chris Brooks
Responding to: ???'s previous message
Shahzad,

Glad it's working for you now.

Easy question first, when you installed SDCC it put a load of files in :-

C:sdccsharesdccinclude

or whichever drive you installed it on

In there are header files for most microcontrollers. From looking at mine, I see a at89c55.h so that one will do the AT89C55.

For the AT89LV55, you need to know the differences between that an another similar controller, any extra registers need to be added to a header file and any ones that no longer exist need to be removed. You can then call the file AT89LV55.h and use that. I suggest you use the AT89C55.h as a template for the new file.


As for the startup problem, this isn't a software error, it sounds like a hardware problem, are you using a supervisor chip for the reset at start-up, or just a cap and a resistor?

It may be being caused by the program trying to run too quickly... it's complicated, but if you stuck a delay in the start of the program it might fix it. But you're using software to cover up your hardware faults, which I would not recommend.


Before Erik jumps in here I suggest you use a supervisor chip - Dallas do one, I can't remember the part number though.

The other option is to use a 10uf cap from the reset pin to VCC and a 10K resistor to GND.

Chris.



List of 18 messages in thread
TopicAuthorDate
what wrong SDCC C Compiler            01/01/70 00:00      
   RE: what wrong SDCC C Compiler            01/01/70 00:00      
      RE: Chris Brooks            01/01/70 00:00      
         RE: Chris Brooks            01/01/70 00:00      
            RE: Chris Brooks thanks            01/01/70 00:00      
   RE: Chris Brooks            01/01/70 00:00      
      RE: Chris Brooks            01/01/70 00:00      
         RE: Chris Brooks            01/01/70 00:00      
         RE: Chris Brooks            01/01/70 00:00      
            RE: Supervisor chip            01/01/70 00:00      
               RE: Supervisor chip            01/01/70 00:00      
               RE: Raghunathan R            01/01/70 00:00      
   RE: what wrong SDCC C Compiler            01/01/70 00:00      
      RE: what wrong SDCC C Compiler Chris Bro            01/01/70 00:00      
         RE: what wrong SDCC C Compiler Chris Bro            01/01/70 00:00      
            RE: what wrong SDCC C Compiler Chris Bro            01/01/70 00:00      
               RE: what wrong SDCC C Compiler Chris Bro            01/01/70 00:00      
               RE: what wrong SDCC C Compiler Chris Bro            01/01/70 00:00      

Back to Subject List