www.DataSheet4U.com
CHAPTER 8 16-BIT TIMER/EVENT COUNTER
177
(1) 16-bit compare register (CR00)
CR00 is a 16-bit register for which the value set in the CR00 is constantly compared with the 16-bit timer register
(TM0) count value, and an interrupt request (INTTM0) is generated if they match.
It can be used as the register which holds the interval time when TM0 is set to interval timer operation, and as
the register which sets the pulse width when TM0 is set PWM output operation.
CR00 is set by a 16-bit memory manipulation instruction. The value of 0001H to FFFFH can be set.
After RESET input, the value of CR00 is undefined.
Cautions
1.
PWM data (14 bits) must be set in the upper 14 bits of CR00. The lower 2 bits must be set to
00.
2.
CR00 must be set in a value other than 0000H. Consequently, when it is used as an event
counter, 1-pulse count operation is prohibited.
3.
When the value of CR00 posterior to alteration is less than the value of the 16-bit timer register
(TM0), TM0 keeps on counting and resumes counting from 0 after an overflow. When the value
of CR00 posterior to alteration is less than the value prior to alteration, the timer must be
restarted after CR00 is altered.
(2) 16-bit capture register (CR01)
CR01 is a 16-bit register capturing the content of 16-bit timer register (TM0).
Capture trigger is INTP0/P001/TI0 pin valid edge input. Setting of the INTP0 valid edge is done with the external
interrupt mode register (INTM0).
CR01 is read by a 16-bit memory manipulation instruction.
After RESET input, the value of CR01 is undefined.
Caution
When the TI0/P00 pin’s valid edge is input while CR01 is read, CR01 retains its contents without
doing capture operations. However, the interrupt request flag (PIF0) is set due to the valid edge
detection.
(3) 16-bit timer register (TM0)
TM0 is a 16-bit register counting count pulse.
TM0 is read by a 16-bit memory manipulation instruction.
After RESET input, the value of TM0 is 0000H.
Caution
The TM0 value is read out via CR01, resulting in changing the previous CR01 contents.
Содержание 78014Y Series
Страница 2: ...www DataSheet4U com 2 MEMO...
Страница 8: ...www DataSheet4U com 8 MEMO...
Страница 22: ...www DataSheet4U com 22 MEMO...
Страница 30: ...www DataSheet4U com 30 MEMO...
Страница 34: ...www DataSheet4U com 34 MEMO...
Страница 62: ...www DataSheet4U com CHAPTER 2 OUTLINE PD78014Y Subseries 62 MEMO...
Страница 78: ...www DataSheet4U com CHAPTER 3 PIN FUNCTION PD78014 Subseries 78 MEMO...
Страница 94: ...www DataSheet4U com CHAPTER 4 PIN FUNCTION PD78014Y Subseries 94 MEMO...
Страница 170: ...www DataSheet4U com CHAPTER 7 CLOCK GENERATOR 170 MEMO...
Страница 222: ...www DataSheet4U com CHAPTER 9 8 BIT TIMER EVENT COUNTER 222 MEMO...
Страница 230: ...www DataSheet4U com CHAPTER 10 WATCH TIMER 230 MEMO...
Страница 262: ...www DataSheet4U com CHAPTER 14 A D CONVERTER 262 MEMO...
Страница 318: ...www DataSheet4U com CHAPTER 15 SERIAL INTERFACE CHANNEL 0 PD78014 Subseries 318 MEMO...
Страница 408: ...www DataSheet4U com CHAPTER 16 SERIAL INTERFACE CHANNEL 0 PD78014Y Subseries 408 MEMO...
Страница 446: ...www DataSheet4U com CHAPTER 17 SERIAL INTERFACE CHANNEL 1 446 MEMO...
Страница 472: ...www DataSheet4U com CHAPTER 18 INTERRUPT FUNCTIONS AND TEST FUNCTION 472 MEMO...
Страница 502: ...www DataSheet4U com CHAPTER 22 PD78P014 78P014Y 502 MEMO...
Страница 520: ...www DataSheet4U com CHAPTER 23 INSTRUCTION SET 520 MEMO...