94
CHAPTER 6 8-BIT TIMER/EVENT COUNTERS 5 AND 6
6.4.3 Square-wave output
This makes the value set in advance in the 8-bit conveyor register 50, 60 (CR50, CR60) to be the interval. It operates
as a square wave output at the desired frequency.
The TO5/P100/TI5 or TO6/P101/TI6 pin output status is reversed at intervals of the count value preset to CR50
or CR60 by setting bit 1 (TMC51) and bit 0 (TOE5) of 8-bit timer output control register 5 (TMC5), or bit 1 (TMC61)
and bit 0 (TOE6) of 8-bit timer mode control register 6 (TMC6) to 1.
This enables a square wave of any selected frequency to be output.
Figure 6-12. 8-Bit Timer Mode Control Register Settings for Square-Wave Output Operation
Caution
When TI5/P100/TO5 or TI6/P101/TO6 pin is used as the timer output, set 0 to port mode register
(PM100 or PM101) and output latch (P100 or P101).
Remark
n = 5, 6
1
TCEn
0
TMCn6
0
0
0/1
LVSn LVRn TMCn1 TOEn
TMCn
0/1
1
1
TOn output enable
Inversion of output on match of TMn and CRn0
Specifies timer output F/F1 initial value
Clear and start mode on match of TMn and CRn0
TMn operation enable
Содержание NEC PD78081(A)
Страница 23: ...xii MEMO...
Страница 37: ...14 CHAPTER 1 OUTLINE MEMO...
Страница 47: ...24 CHAPTER 2 PIN FUNCTION MEMO...
Страница 91: ...68 CHAPTER 4 PORT FUNCTIONS MEMO...
Страница 125: ...102 CHAPTER 6 8 BIT TIMER EVENT COUNTERS 5 AND 6 MEMO...
Страница 157: ...134 CHAPTER 10 A D CONVERTER MEMO...
Страница 193: ...170 CHAPTER 11 SERIAL INTERFACE CHANNEL 2 MEMO...
Страница 253: ...230 CHAPTER 16 INSTRUCTION SET MEMO...
Страница 269: ...246 APPENDIX B EMBEDDED SOFTWARE MEMO...