A-D CONVERTER
12.7 One-shot mode
Continued from preceding Figure 12.7.1
Interrupt priority level
b7
b0
A-D conversion interrupt control register
(Address 7016)
0
Interrupt priority level select bits
Set the level to one of 1 through 7 when using this interrupt.
Set the level to 0 when disabling interrupts.
Interrupt request bit
“0” : No interrupt requested
Port P7 direction register
b7
b0
Port P7 direction register
(Address 1116)
AN
AN
AN
AN
AN
0
1
2
3
4
Clear the bits, corresponding to
the selected analog input pins,
to “0.”
Setting of A-D conversion start bit to “1.”
b7
b0
A-D control register 0
(Address 1E16)
1
A-D conversion start bit
Trigger generated
Operation starts.
Note: Writing to the following must be performed while the A-D converter
halts (in other words, before a trigger is generated); this must be done
independent of the operation mode of the A-D converter.
• Each bit of the A-D control register 0, except bit 6
• Each bit of the A-D control register 1
• A-D register i (when the comparator function is selected)
• Comparator function select register 0
Especially, when the VREF connection select bit is cleared from “1” to “0,”
an interval of 1 µs or more must be elapsed before occurrence of a trigger.
Fig. 12.7.2 Initial setting example for related registers in one-shot mode (2)
7906 Group User’s Manual Rev.2.0
12-20