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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
Jim Granville
09/02/12 16:12
Read: 614 times

#188216 - You are nearly there
Responding to: ???'s previous message
Change the line
sbit LED_pin = P0^0;
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
Does 0xFF refer to HIGH? Simple blink program      Sai Siddharth      09/02/12 09:40      
   Now ... I haven't examined your code ...       Richard Erlacher      09/02/12 12:45      
      Right back to real basics!      Andy Neil      09/02/12 16:07      
   You are nearly there       Jim Granville      09/02/12 16:12      

Back to Subject List