This is an PIC16F assembly code example. Created originally about 10 years ago. It includes chip configuration and UART RS232 support using buffers and interrupts.
The original application was a controller that consisted of a PIC16F876 connected to a PC via RS-232 and to a PIC16F676 via a fast clk/dat/int serial interface. The PIC16F676 handles dimming control of 4 lighting circuits; a very complex and time critical piece of code.
- Main ASM file : hcm_1a1_b01.asm
- Support file : pic16f876_def.asm
- Support file : hcm_1a1_flags1.asm
- Support file : hcm_1a1_defs1.asm
The main.asm file references the other 3 files. The file names have .txt appended; just remove this is you like.
As supplied this will not assemble and run. Large pieces specific to the original application have been removed. What’s left was working.
Originally created using the Cross32 4.0 assembler under Windows. The syntax is slightly different to MPLAB and MPLAB-X, but conversion is not too much of a task.