User manual
PIC18F87J72 Evaluation Board Firmware Flowchart
© 2011 Microchip Technology Inc. DS51990A-page 25
FIGURE 4-2: Key Press Routine to Configure OSR and Display Time.
osr_value = 0 osr_value = 1 osr_value = 2 osr_value = 3
Set OSR
256, Write
Display
OSR = 256 on
LCD
Set OSR
128, Write
Display
OSR = 128 on
LCD
Set OSR
32, Write
Display
OSR = 32 on
LCD
Set OSR
64, Write
Display
OSR = 64 on
LCD
osr_value = 4
Read
RTCC
Display TIME
HR:MIN:SEC
Disable Global
Interrupts
Enable Global
Interrupts
Disable Global
Interrupts
Disable Global
Interrupts
Disable Global
Interrupts
Disable Global
Interrupts
Enable Global
Interrupts
Enable Global
Interrupts
Enable Global
Interrupts
Enable Global
Interrupts
YES
YES YES YES YES
NONONO
NO
Idle
1