Hercules-EBX CPU User Manual V1.02
Page 67
Base + 13
Read/Write
Operation Control Register
Bit
No.
7 6 5 4 3 2 1 0
Name TINTE
DINTE
AINTE
FIFOEN SCANEN CLKSEL CLKEN
TINTE
Timer interrupt enable: 0 = disabled, 1 = enabled
DINTE
Digital I/O interrupt enable: 0 = disabled, 1 = enabled
AINTE
A/D interrupt enable: 0 = disabled, 1 = enabled
Only one of the above three interrupts may be enabled at a time.
FIFOEN
FIFO enable: 0 = disabled, 1 = enabled
When the FIFOEN = 1 and AINTE = 1, A/D interrupts will occur when the FIFO
reaches its programmed threshold set with FT11-0. When FIFOEN = 0 and AINTE =
1, A/D interrupts will occur as follows: If SCANEN = 1, the interrupt will occur at the
end of the scan, and the FIFO will contain all the samples of the scan. If SCANEN =
0, the interrupt will occur after each single A/D conversion.
SCANEN A/D Scan enable: 0 = disabled, 1 = enabled
When SCANEN = 1, the A/D circuit will perform a complete scan of all channels
between the low and high channels, inclusive, upon each trigger.
CLKEN
A/D hardware clock enable: 0 = disabled, 1 = enabled
When CLKEN = 1, the A/D circuit is triggered by the hardware clock selected with
CLKSEL below, and software A/D trigger is disabled.
CLKSEL
A/D hardware clock select, only applies when CLKEN = 1:
0 = rising edge of counter/timer 0
1 = falling edge on external trigger from I/O connector
Base + 14
Read
Operation Status Register
Bit
No.
7 6 5 4 3 2 1 0
Name
TINT DINT AINT OVF FF TF EF
TINT
Timer interrupt status: 1 = interrupt pending, 0 = no interrupt pending
DINT
Digital I/O interrupt status: 1 = interrupt pending, 0 = no interrupt pending
AINT
A/D interrupt status: 1 = interrupt pending, 0 = no interrupt pending
OVF
FIFO overflow flag: 0 = no overflow, 1 = overflow
Overflow occurs when the FIFO is full and an A/D conversion occurs. If OVF is set, it
will stay set until the FIFO is reset with a FIFORST command.
FF
FIFO full flag: 0 = FIFO is not full, 1 = FIFO is full
TF
FIFO threshold flag: 0 = FIFO depth is below the programmed threshold, 1 = FIFO
depth is at or above the programmed threshold
EF
FIFO empty flag: 0 = not empty, 1 = empty