User manual

PIC18F87J72 Evaluation Board Firmware Flowchart
© 2011 Microchip Technology Inc. DS51990A-page 29
FIGURE 4-6: Interrupt Service Routine for UART and INT0 Interrupts.
5
UART
TX Interrupt
Flag = 1?
UART
RX Interrupt
Flag = 1?
INT0
Interrupt
Flag = 1?
Measure
CH0, CH1
Signals
through SPI
Store Data in
RAM for DMCI
or UART
Disable INT0
Interrupt
Enable UART RX
Interrupt
Return From
Interrupt
Disable UART TX
Interrupt
Enable INT0
Interrupt
Return From
Interrupt
Disable UART RX
Interrupt
Enable UART TX
Interrupt
Return From
Interrupt
Receive
Data from
RCREG1
Transmit
Data from
TXREG1
Process and Write
Data to TXREG1