Table 2-14: Counter Interrupt Flag Control Bit; Table 2-15: 32-Bit Counter Control Bit - Advantech UNO-2050 User Manual

Gx1-300 universal network controller with 2 x lan, 2 x rs-232, 2 x isolated rs-232/422/485, 16 x isolated di/o
Table of Contents

Advertisement

Counter interrupt flag
The interrupt flag bit is a flag indicating the status of an interrupt. It is
a readable/writable bit. To find the status of the interrupt, you have to
read the bit value; to clear the interrupt, you have to write "1" to this
bit. This bit must first be cleared to service the next coming interrupt.
Besides, you can choose if counter 0 or counter 1 generate interrupt
signal by configuring "CTR0IntSet" and "CTR1IntSet" control bit.

Table 2-14: Counter interrupt flag control bit

CTR0F, CTR1F
Read
Write
CTR0IntSet, CTR1IntSet
Cascaded 32-bit Counter
You can also cascade counter 0 and counter 1 together as one 32-bit
counter/timer, and it's configured by the control bit - CTR32Set.

Table 2-15: 32-bit counter control bit

0
1
Cascade counter 0 and counter 1 into one 32-bit counter
0
1
0
1
0
1
32-bit counter control bit
Disable (Default)
Chapter 2 Hardware Functionality
Counter Interrupt Status
No interrupt
Interrupt occur
Don't care
Clear interrupt
Counter Interrupt Control
Disable (Default)
Enable
2 3

Advertisement

Table of Contents
loading

Table of Contents