| Electronic Components Datasheet Search |
|
XR88C92IP Datasheet(PDF) 13 Page - Exar Corporation |
|
|
|||||||||||||||||||||||||||||
XR88C92IP Datasheet(HTML) 13 Page - Exar Corporation |
|
13 / 32 page ![]() XR88C92/192 13 Rev. 1.31 Users can program the counter to generate an interrupt request for this condition on the -INT output by unmasking the bit-3 in the Interrupt Mask Register (IMR, address 0x5). After 0x0000 the count becomes 0xFFFF, and the counter continues counting down from there. If the CPU changes the pre-load value, the counter will not recognize the new value until it receives the next start counter command (and is reinitialized). When a read at the stop counter command register (address 0xF) is performed, the counter stops the countdown sequence and clears ISR Bit-3. The count value should only be read while the counter is stopped because only one of the count registers (either CUR, at address 0x6 or CLR, at address 0x7) can be read at a time. If the counter is running, a decrement of CLR that requires a borrow from the CUR could take place between the two register reads. Figure 2 shows the C/T output in the counter mode. OP3 can be pro- grammed to show the C/T output. In addition to the watch dog timer described above, the C/T can be used for receive timeout function (see description under CRA, CRB in the registers section also). The C/T is more accurate and the timeout period is programmable unlike the watchdog timer. However, only one channel can use the C/T for receive timeout at any given time. The C/T timeout mode uses the received data stream to start the counter. Each time a character is shifted from the receive shift register to the receive FIFO, the C/T is reloaded with the programmed value in CTPU and CTPL and it restarts on the next C/T clock. If a new character is not received before the C/T reaches terminal count (= 0x0000), a counter ready interrupt (ISR bit-3) is generated. The user can appropriately program the CTPU and CTPL for the desired timeout period. Typically this is slightly more than one character time. Note that if C/T is used for receiver timeout, a counter ready interrupt is generated whereas if the watchdog timer is used, a receiver ready interrupt is generated. TIMER MODE In the timer mode, the C/T runs continuously once the start command is issued (by reading the start C/T command register) and the CPU cannot stop it. When the stop command is issued (by reading the stop C/T command register), the CPU only resets the C/T inter- rupt. This mode allows the C/T to be used as a program- mable clock source for channels A and B (see CSRA, CSRB register), and/or a periodic interrupt generator. In this mode, the C/T generates a square-wave output (see Figure 2) derived from the programmed timer input clock source. The square wave generated by the timer has a period of 2 X (pre-load value) X (period of clock source) and is available as a clock source for both channels A and B. Since the timer cannot be stopped, the values in the registers (CUR:CLR) should not be read. See description of ACR register to see how to choose clock source for the C/T. When the start counter command register (STCR, PRE L O A D VA L U E TER M IN A L CO UNT C /T O U TP U T IN CO UNT E R M O DE C /T O U TP U T IN T IM E R M O DE PRE L O A D VA L U E TER M IN A L CO UNT PRE L O A D VA L U E TER M IN A L CO UNT PRE L O A D VA L U E PRE L O A D VA L U E TER M IN A L CO UNT TER M IN A L CO UNT TER M IN A L CO UNT PRE L O A D VA L U E PRE L O A D VA L U E ST ART C/T CO M M A ND IS S U E D PRE L O A D VA L U E TER M IN A L CO UNT Figure 2: C/T output in Timer and Counter modes. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |