| Electronic Components Datasheet Search |
|
TMP88CS38FG Datasheet(PDF) 63 Page - Toshiba Semiconductor |
|
|
|||||||||||||||||||||||||||||
TMP88CS38FG Datasheet(HTML) 63 Page - Toshiba Semiconductor |
|
63 / 226 page ![]() TMP88CS38/CM38A/CP38A 2007-09-12 88CS38-63 2.5.3 Function Timer/counter 1 has five operating modes: timer, external trigger timer, event counter, window, pulse width measurement. (1) Timer mode In this mode, counting up is performed using the internal clock. The contents of TC1DRA are compared with the contents of up counter. If a match is found, an INTTC1 interrupt is generated, and the counter is cleared to “0”. Counting up resumes after the counter is cleared. The current contents of up counter can be transferred to TC1DRB by setting ACAP1 (Bit6 in TC1CR) to “1” (Software capture function). (Auto-capture function) Table 2.5.1 Source Clock (Internal clock) for Timer/Counter 1 (Example: at fc = 16.0 MHz) NORMAL, IDLE mode DV1CK = 0 DV1CK = 1 TC1CK Resolution [ μs] Maximum time setting [s] Resolution [ μs] Maximum time setting [s] 00 128.0 8.39 256.0 16.78 01 8.0 0.524 16.0 1.049 10 0.5 32.77 m 1.0 65.54 m Example 1: Sets the timer mode with source clock fc/2 11 [Hz] and generates an interrupt 1 later (at fc = 16 MHz) LDW (TC1DRA), 1E84H ; Sets the timer register (1 s ÷ 211/fc = 1E84H) DI SET (EIRL). 4 ; Enable INTTC1 EI LD (TC1CR), 00000000B ; Selects the source clock and mode LD (TC1CR), 00010000B ; Starts TC1 Example 2: Auto capture LD (TC1CR), 01010000B ; ACAP1 ← 1 (Capture) : : ; Wait at least one cycle of the internal source clock LD WA, (TC1DRB) ; Reads the capture value |
|
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 |