LED1H                                                                                    APPLICATION FILE PAGE

 

FILE

TYPE

Created using

 

OPERATION

 

The hardware for this application is the same as LED1S, and the output LED count is incremented once per button press. However, the debounce delay is generated using the hardware timer and interrupt.

 

When the step button is pressed, the hardware timer provides a delay of about 26ms. When the timer rolls over to zero, an interrupt is generated and the program jumps to location 004, where the TMR0 is reset and the program resumed.

 

The step button is then tested for release, and the output LED count incremented.

LED1H.DSN

Proteus VSM Design File

ISIS Schematic Capture

LED1H.ASM

Program Source Code

Source code editor in ISIS

LED1H.LST

Program List File

Assembler MPASM in Proteus VSM

LED1H.HEX

Program Machine Code

Assembler MPASM in Proteus VSM