| Electronic Components Datasheet Search |
|
R8C/17 Datasheet(PDF) 125 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
R8C/17 Datasheet(HTML) 125 Page - Renesas Technology Corp |
|
125 / 279 page ![]() R8C/16 Group, R8C/17 Group 13. Timers Rev.2.10 Jan 19, 2006 Page 112 of 254 REJ09B0169-0210 NOTES: 1. Set the TZS bit in the TZMR register to “1” (count starts). 2. Set the TZS bit to “1” (count starts), the INT0EN bit in the INTEN register to “1” (enables INT0 input), and the INOSTG bit in the PUM register to “1” (enabling INT0 one-shot trigger). A trigger which is input during the count cannot be acknowledged, however the INT0 interrupt request is generated. 3. The setting values are reflected beginning with the following one-shot pulse after writing to the TZPR register. Table 13.10 Specification of Programmable Wait One-shot Generation Mode Item Specification Count Source f1, f2, f8, Timer X underflow Count Operation • Decrement the setting value in Timer Z primary • When a count of TZPR register underflows, the timer reloads the contents of the TZSC register before the count continues. • When a count of the TZSC register underflows, the timer reloads the contents of the TZPR register before the count completes and the TZOS bit is set to “0”. • When a count stops, the timer reloads the contents of the reload register before it stops. Wait Time (n+1)(m+1)/fi fi: Count source frequency n: setting value in PREZ register, m: setting value in TZPR register One-Shot Pulse Output Time (n+1)(p+1)/fi fi: Count source frequency n: setting value in PREZ register, p: setting value in TZSC register Count Start Condition • Set the TZOS bit in the TZOC register to “1” (one-shot starts)(1) • Input active trigger to the INT0 pin(2) Count Stop Condition • When reloading completes after Timer Z underflows during secondary period • When the TZS bit in the TZMR register is set to “0” (count stops) • When the TZOS bit in the TZOC register is set to “0” (one-shot stops) Interrupt Request Generation Timing In half cycles of count source after timer Z underflows during secondary period (complete at the same time as waveform output from the TZOUT pin) [timer Z interrupt] TZOUT Pin Function Pulse output (When using this function as a programmable I/O port, set to timer mode.) INT0 Pin Function • When the INOSTG bit in the PUM register is set to “0” (INT0 one-shot trigger disabled), programmable I/O port or INT0 interrupt input • When the INOSTG bit in the PUM register is set to “1” (INT0 one-shot trigger enabled), external trigger (INT0 interrupt input) Read from Timer The count value can be read out by reading the TZPR and PREZ registers. Write to Timer The value written to the TZPR, PREZ and TZSC register is written to the reload register only(3). Select Function • Output level latch select function The TZOPL bit can select the output level for the one-shot pulse waveform. •INT0 pin one-shot trigger control function and polarity select function The INOSTG bit can select the trigger input from INT0 pin is active or inactive. Also, the INOSEG bit can select the active trigger polarity |
|
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 |