upd78f0114m6gb-8es Renesas Electronics Corporation., upd78f0114m6gb-8es Datasheet - Page 153

no-image

upd78f0114m6gb-8es

Manufacturer Part Number
upd78f0114m6gb-8es
Description
8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
6.4.5 Square-wave output operation
bit timer capture/compare register 000 (CR000).
bit 0 (TOE00) and bit 1 (TOC001) of 16-bit timer output control register 00 (TOC00) to 1. This enables a square wave
with any selected frequency to be output.
The basic operation setting procedure is as follows.
<1> Set the count clock by using the PRM00 register.
<2> Set the CRC00 register (see Figure 6-29 for the set value).
<3> Set the TOC00 register (see Figure 6-29 for the set value).
<4> Set any value to the CR000 register (0000H cannot be set).
<5> Set the TMC00 register to start the operation (see Figure 6-29 for the set value).
Caution Do not rewrite CR000 during TM00 operation.
Remarks 1. For the setting of the TO00 pin, see 6.3 (5) Port mode register 0 (PM0).
A square wave with any selected frequency can be output at intervals determined by the count value preset to 16-
The TO00 pin output status is reversed at intervals determined by the count value preset to CR000 + 1 by setting
Setting
TMC00
CRC00
TOC00
2. For how to enable the INTTM000 interrupt, see CHAPTER 15 INTERRUPT FUNCTIONS.
7
0
7
0
7
0
OSPT00
Figure 6-29. Control Register Settings in Square-Wave Output Mode (1/2)
0
6
0
6
0
OSPE00
0
5
0
5
0
TOC004
(c) 16-bit timer output control register 00 (TOC00)
(a) 16-bit timer mode control register 00 (TMC00)
(b) Capture/compare control register 00 (CRC00)
0
4
0
4
0
CHAPTER 6 16-BIT TIMER/EVENT COUNTER 00
TMC003
LVS00
0/1
1
3
0
TMC002
LVR00
CRC002
0/1
0/1
User’s Manual U16227EJ3V0UD
1
TOC001
TMC001
CRC001
0/1
1
0
TOE00
OVF00
CRC000
1
0
0
Enables TO00 output.
Inverts output on match between TM00 and CR000.
Specifies initial value of TO00 output F/F (setting “11” is prohibited).
Does not invert output on match between TM00 and CR010.
Disables one-shot pulse output.
Clears and starts on match between TM00 and CR000.
CR000 used as compare register
153

Related parts for upd78f0114m6gb-8es