Beginners and experts use this all in one board to learn the
microcontrollers and test product prototypes.
Connections for this experiment:
1.Connect one wire connector
between P1.0 and one LED
2.Connect one wire connector
between P2.0 and one Switch
3.Connect P3.0, P3.1 and RST to ISP programming (RS232
section)
4.Connect 9VDC supply to the board
Experiment 1:
Start:
JB P2.0,Start
JB P1.0,MakeItON
SETB P1.0
SJMP WaitForDebounce
MakeItON:
CLR P1.0
WaitForDebounce:
JNB P2.0, WaitForDebounce
SJMP Start
This programs checks if the switch is pressed or
not. Once pressed it will check the status of LED and toggle it. Program waits
for switch debounce (release of switch) and goes back to Start once switch is
released.