One-Shot Timer Mode - Renesas M16C/62P Series Hardware Manual

6-bit single-chip microcomputer
Table of Contents

Advertisement

M16C/62P Group (M16C/62P, M16C/62PT)
15.1.3

One-shot Timer Mode

In one-shot timer mode, the timer is activated only once by one trigger (see Table 15.4). When the trigger
occurs, the timer starts up and continues operating for a given period. Figure 15.12 shows the TAiMR Register
in One-Shot Timer Mode.
Table 15.4
Specifications in One-shot Timer Mode
Item
Count Source
Count Operation
Divide Ratio
Count start Condition
Count Stop Condition
Interrupt Request
Generation Timing
TAiIN Pin Function
TAiOUT Pin Function
Read from Timer
Write to Timer
Select Function
Rev.2.41
Jan 10, 2006
REJ09B0185-0241
http://www.xinpian.net
f1, f2, f8, f32, fC32
• Down-count
• When the counter reaches "0000h," it stops counting after reloading a new
value
• If a trigger occurs when counting, the timer reloads a new count and restarts
counting
1/n n : set value of TAi register (i=0 to 4) 0000h to FFFFh
However, the counter does not work if the divide-by-n value is set to "0000h".
TAiS bit in the TABSR register = 1 (start counting) and one of the following
triggers occurs.
• External trigger input from the TAiIN pin
• Timer B2 overflow or underflow,
Timer Aj (j=i-1, except j=4 if i=0) overflow or underflow,
Timer Ak (k=i+1, except k=0 if i=4) overflow or underflow
• The TAiOS bit in the ONSF register is set to "1"(= timer starts)
• When the counter is reloaded after reaching "0000h"
• TAiS bit is set to "0" (= stop counting)
When the counter reaches "0000h"
I/O port or trigger input
I/O port or pulse output
An indeterminate value is read by reading TAi register
• When not counting and until the 1st count source is input after counting start
Value written to TAi register is written to both reload register and counter
• When counting (after 1st count source input)
Value written to TAi register is written to only reload register
(Transferred to counter when reloaded next)
• Pulse output function
The timer outputs a low when not counting and a high when counting.
Page 151 of 390
提供单片机解密、IC解密、芯片解密业务
Specification
010-62245566 13810019655
15. Timers

Advertisement

Table of Contents
loading

This manual is also suitable for:

M16c/62pM16c/62pt

Table of Contents