| Electronic Components Datasheet Search |
|
R8C/18 Datasheet(PDF) 137 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
R8C/18 Datasheet(HTML) 137 Page - Renesas Technology Corp |
|
137 / 257 page ![]() R8C/18 Group, R8C/19 Group 14. Timers Rev.1.30 Apr 14, 2006 Page 122 of 233 REJ09B0222-0130 14.2.1 Timer Mode In timer mode, a count source which is internally generated or timer X underflow is counted (refer to Table 14.7 Timer Mode Specifications). The TZSC register is not used in timer mode. Figure 14.16 shows Registers TZMR and PUM in Timer Mode. NOTE: 1. The IR bit in the TZIC register is set to 1 (interrupt requested) when writing to the TZPR or PREZ register while both of the following conditions are met. • TZWC bit in TZMR register is set to 0 (write to reload register and counter simultaneously) • TZS bit in TZMR register is set to 1 (count starts) Disable interrupts before writing to the TZPR or PREZ register in the above state. Table 14.7 Timer Mode Specifications Item Specification Count sources f1, f2, f8, Timer X underflow Count operations • Decrement • When the timer underflows, it reloads the reload register contents before the count continues. (When timer Z underflows, the contents of timer Z primary reload register is reloaded.) Divided ratio 1/(n+1)(m+1) fi: Count source frequency n: Value set in PREZ register, m: value set in TZPR register Count start condition 1 (count starts) is written to the TZS bit in the TZMR register. Count stop condition 0 (count stops) is written to the TZS bit in the TZMR register. Interrupt request generation timing • When timer Z underflows [timer Z interrupt]. TZOUT pin function Programmable I/O port INT0 pin function Programmable I/O port, or INT0 interrupt input Read from timer The count value can be read out by reading registers TZPR and PREZ. Write to timer(1) • When registers TZPR and PREZ are written while the count is stopped, values are written to both the reload register and counter. • When registers TZPR and PREZ are written during the count while the TZWC bit is set to 0 (writing to the reload register and counter simultaneously), the value is written to each reload register of registers TZPR and PREZ at the following count source input, the data is transferred to the counter at the second count source input, and the count re-starts at the third count source input. When the TZWC bit is set to 1 (writing to only the reload register), the value is written to each reload register of registers TZPR and PREZ (the data is transferred to the counter at the following reload). |
|
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 |