New instructions used in this chapter:
Let's have a look at a few variations of flashing the LEDs on and off to develop our programming skills.
Suppose we want to switch the LED on for 2 seconds and off for 1 second. Figure 2.1 shows the circuit diagram for this application. The code for this would be:
;Program starts now.
NB. This code would be added to HEADER84.ASM into the section called, “Program starts now”.
To do this open MPLAB, then FILE – OPEN – HEADER84.ASM
Add the code and saveas LED_FLASHER2.ASM
The text would then be assembled by the MPLAB software and then blown into ...