| Electronic Components Datasheet Search |
|
R8C/18 Datasheet(PDF) 121 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
R8C/18 Datasheet(HTML) 121 Page - Renesas Technology Corp |
|
121 / 257 page ![]() R8C/18 Group, R8C/19 Group 14. Timers Rev.1.30 Apr 14, 2006 Page 106 of 233 REJ09B0222-0130 14.1.1 Timer Mode Timer mode, the internally generated count source is counted (refer to Table 14.2 Timer Mode Specifications). Figure 14.4 shows the TXMR Register in Timer Mode. Figure 14.4 TXMR Register in Timer Mode Table 14.2 Timer Mode Specifications Item Specification Count sources f1, f2, f8, fRING Count operations • Decrement • When the timer underflows, the contents of the reload register are reloaded and the count is continued. Divided ratio 1/(n+1)(m+1) n: value set in PREX register, m: value set in TX register Count start condition 1 (count starts) is written to the TXS bit in the TXMR register. Count stop condition 0 (count stops) is written to the TXS bit in the TXMR register. Interrupt request generation timing When timer X underflows [timer X interrupt]. INT10/CNTR00, INT11/CNTR01 pin functions Programmable I/O port, or INT1 interrupt input CNTR0 pin function Programmable I/O port Read from timer The count value can be read out by reading registers TX and PREX. Write to timer • When registers TX and PREX are written while the count is stopped, values are written to both the reload register and counter. • When registers TX and PREX are written during the count, the value is written to each reload register of registers TX and PREX 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. Timer X Mode Register Symbol Address After Reset TXMR 008Bh 00h Bit Symbol Bit Name Function RW INT1 _____ /CNTR0 signal polarity sw itch bit(1, 2) NOTES: 1. 2. 3. Refer to 14.1.6 Notes on Tim er X for precautions regarding the TXS bit. The IR bit in the INT1IC register may be set to 1 (requests interrupt) w hen the R0EDG bit is rew ritten. Refer to 12.5.5 Changing Interrupt Sources. R0EDG RW RW TXOCNT RW TXMOD2 This bit is used to select the polarity of INT1 _____ interrupt in timer mode. Set to 0 in timer mode. TXMOD0 RW Operating mode select bits 0, 1 b1 b0 0 0 : Timer mode or pulse period measurement mode TXMOD1 RW 0 0 b7 b6 b5 b4 0000 0 RW b3 b2 0 : Rising edge 1 : Falling edge TXS Timer X count start flag(3) 0 : Stops counting. 1 : Starts counting. b1 b0 RW TXUND RW TXEDG Set to 0 in timer mode. Set to 0 in timer mode. Operating mode select bit 2 0 : Other than pulse period measurement mode |
|
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 |