| Electronic Components Datasheet Search |
|
TS68230 Datasheet(PDF) 44 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
TS68230 Datasheet(HTML) 44 Page - STMicroelectronics |
|
44 / 61 page ![]() 8. For configurations in which the prescaler is not u- sed, the contents of the counter preload registers are transferred to the counter on the first asserted edge of the TIN input after entering the run state. On subsequent asserted edges the counter de- crements, rolls over, or is loaded from the counter preload registers. 9. The smallest value allowed in the counter preload register for use with the counter is $000001. 5.1.3. TIMER INTERRUPT ACKNOWLEDGE CY- CLES. Several conditions may be present when the timer interrupt acknowledge pin (TIACK) is asser- ted. These conditions affect the PI/T’s response and the termination of the bus cycle (see table 5.1). 5.2. TIMER APPLICATIONS SUMMARY The following paragraphs outline programming of the timer control register for several typical examples. 5.2.1.PERIODIC INTERRUPT GENERATOR EXAMPLE. In this configuration the timer generates a periodic interrupt. The TOUT pin is connected to the sys- tem’s interrupt request circuitry and the TIACK pin may be used as an interrupt acknowledge input to the timer. The TIN pin may be used as a clock input. The processor loads the counter preload registers (CPR) and timer control register (TCR), and then enables the timer. When the 24-bit counter passes from $000001 to $000000, the ZDS status bit is set and the TOUT (interrupt request) pin is asserted. At the next clock to the 24-bit counter, it is again loaded with the contents of the CPRs and thereafter decre- ments. In normal operation, the processor must di- rect clear the status bit to negate the interrupt re- quest (see figure 5.1). 5.2.2. SQUARE WAVE GENERATOR. In this configuration the timer produces a square wave at the TOUT pin. The TOUT pin is connected to the user’s circuitry and the TIACK pin is not used. The TIN pin may be used as a clock input. The processor loads the counter preload registers and timer control register, and then enables the ti- mer. When the 24-bit counter passes form $000001 to $000000 the ZDS status bit is set and the TOUT (square wave output) pin is toggled. At the next clock to the 24-bit counter it is again loaded with the contents of the CPRs, and thereafter decrements. In this application there is no need for the processor to direct clear the ZDS status bit ; however, it is possi- ble for the processor to sync itself with the square wave by clearing the ZDS status bit, then polling it. The processor may also read the TOUT level at the port C address. Note that the PC3/TOUT pin functions as PC3 fol- lowing the negation of RESET. If used in the square wave configuration, a pullup resistor may be requi- red to keep a known level prior to programming. Prior to enabling the timer, TOUT is high (see fig- ure 5.2). 7 6 543 2 1 0 Timer Enable TOUT/TIACK Control * Z.D Control Clock Control 1 x 1 0 0 00 or 1X Changed 7 6 543 2 1 0 Timer Enable TOUT/TIACK Control * Z.D. Control Clock Control 1 x 1 1 0 00 or 1X Changed Table 5.1 : Response to Timer Interrupt Acknowledge PC3/TOUT Function Response to Asserted TIACK PC3 - Port C Pin No Response No DTACK TOUT - Square Wave No Response No DTACK TOUT - Negated Timer Interrupt Request No Response No DTACK TOUT - Asserted Timer Interrupt Request Timer Interrupt Vector Contents DTACK Asserted TS68230 44/61 |
|
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 |