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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
09/02/12 22:12
Read: times


 
#188216 - You are nearly there
Responding to: ???'s previous message
Change the line
sbit LED_pin = P0^0;
to
sbit LED_pin = P0^7; /* can be 0..7 bit number */
and run it again, and see what the P0 display does.
{assumes pullups on P0}

Often if you think you understand something, the easiest way to confirm
is to make a small change, and verify that changes 'as expected'.

Also write the HEX values, as binary, or ask the Debugger to show Binary.


List of 4 messages in thread
TopicAuthorDate
Does 0xFF refer to HIGH? Simple blink program            01/01/70 00:00      
   Now ... I haven't examined your code ...             01/01/70 00:00      
      Right back to real basics!            01/01/70 00:00      
   You are nearly there             01/01/70 00:00      

Back to Subject List