User manual

PIC18F87J72 Evaluation Board User’s Guide
DS51990A-page 28 © 2011 Microchip Technology Inc.
FIGURE 4-5: Key Press Routine to Configure Bit Width of Channel CH0 and CH1.
Idle
bit_width = 0 bit_width = 1
Set Bits
16, Write
Display
BITS = 16 on
LCD
Set bits
24, Write
Display
BITS = 24 on
LCD
Disable Global
Interrupts
Enable Global
Interrupts
Disable Global
Interrupts
Enable Global
Interrupts
YES
YES
NO
4