| Electronic Components Datasheet Search |
|
TMP93CS44 Datasheet(PDF) 115 Page - Toshiba Semiconductor |
|
|
|||||||||||||||||||||||||||||
TMP93CS44 Datasheet(HTML) 115 Page - Toshiba Semiconductor |
|
115 / 224 page ![]() TMP93CS44/S45 2004-02-10 93CS44-113 (1) 16-bit timer mode Generating interrupts at fixed intervals In this example, the interval time is set in the timer register TREG5 to generate the interrupt INTTR5. 7 6 5 4 3 2 1 0 TRUN ← − X − 0 − − − − Stop timer 4. INTET54 ← 1 1 0 0 1 0 0 0 Enable INTTR5 and sets interrupt level 4. Disable INTTR4. T4FFCR ← X X 0 0 0 0 1 1 Disable trigger. T4MOD ← 0 0 1 0 0 1 ** (** = 01, 10, 11) Select internal clock for input and disable the capture function. TREG5 ← * * * * * * * * Set the interval time (16 bits). * * * * * * * * TRUN ← 1 X − 1 − − − − Start timer 4. X: Don’t care, −: No change (2) 16-bit event counter mode In 16-bit timer mode as described in above, the timer can be used as an event counter by selecting the external clock (TI4 pin input) as the input clock. To read the value of the counter, first perform “software capture” once and read the captured value. The counter counts at the rise edge of TI4 pin input. TI4 pin can also be used as P42/INT4. Since both timers operate in exactly the same way, timer 4 is used for the purposes of explanation. 7 6 5 4 3 2 1 0 TRUN ← − X − 0 − − − − Stop timer 4. P4CR ← − − − − − 0 − − Set P42 to input mode. INTET54 ← 1 1 0 0 1 0 0 0 Enable INTTR5 and sets interrupt level 4, while disables INTTR4. T4FFCR ← X X 0 0 0 0 1 1 Disable trigger. T4MOD ← 0 0 1 0 0 1 0 0 Select TI4 as the input clock. TREG5 ← * * * * * * * * Set the number of counts (16 bits). TRUN ← 1 X − 1 − − − − Start timer 4. X: Don’t care, −: No change When used as an event counter, set the prescaler in RUN mode. (TRUN<PRRUN> = 1) |
|
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 |