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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
03/16/07 08:25
Read: times


 
#135083 - Hints.
Responding to: ???'s previous message
microprocessor's port1 will light on the led.

How is the LED connected ? Port 1 has 8 pins. Does your device support digital output on Port 1 ? There are some that don't. What device are you using ? Did you check its datasheet for the exact output circuitry that Port 1 uses ?

void main(void) 
{ 
delay(); 
P1=0x00; 
} 


Your main() function returns ! What context does it return to ? On a PC, that would be the operating system, but on the uC, there is no operating system to return to.

List of 15 messages in thread
TopicAuthorDate
Help with the delay program            01/01/70 00:00      
   What does it do?            01/01/70 00:00      
   Hints.            01/01/70 00:00      
      Check with debugger            01/01/70 00:00      
   could this be it ?            01/01/70 00:00      
      Difficult to see            01/01/70 00:00      
         that depends            01/01/70 00:00      
            RET in main            01/01/70 00:00      
               nope - and compiler dependent            01/01/70 00:00      
                  RET in functions            01/01/70 00:00      
                     how do you know that ?            01/01/70 00:00      
                        Because of Startup            01/01/70 00:00      
                           ah            01/01/70 00:00      
                           some contra            01/01/70 00:00      
                              in other words - and who cares            01/01/70 00:00      

Back to Subject List