Download Print this page

Renesas M16C/50 Series User Manual page 823

Advertisement

M16C/5L Group, M16C/56 Group
28.15 Notes on Task Monitor Timer
28.15.1 Register Settings
After reset, the task monitor timer counter is stopped. After setting the counter value and count source
by setting registers TMOS register and TMOSCS, set the TMOS0S bit in the TMOSSR register to 1
(start counting).
Change the TMOSCS register value when the TMOS0S bit is 0 (stop counting).
28.15.2 Reading the Timer
While the task monitor timer is counting, the counter value can be read at any given time by reading the
TMOS register. However, when reading the counter at its reload timing, the value is read as FFFFh.
When the task monitor timer stops counting and after setting the value to the TMOS register, the setting
value can be read until the counter starts counting.
R01UH0127EJ0110 Rev.1.10
Sep 01, 2011
28. Usage Notes
Page 786 of 803

Advertisement

loading