SIC63616-(Rev. 1.0) NO. P86
3240-0412
Direct LAP input (P11/P10)
Direct LAP internal signal
Capture renewal flag CRNWF
SWD0–3 reading
SWD4–7 reading
SWD8–11 reading
Data holding
Fig. 4.8.4.1 Timing for data holding and reading
4.8.5 Stopwatch timer RUN/STOP and reset
RUN/STOP control and reset of the stopwatch timer can be done by the software.
Stopwatch timer RUN/STOP
The stopwatch timer enters the RUN status when "1" is written to SWRUN, and the STOP status when
"0" is written. In the STOP status, the timer data is maintained until the next RUN status or resets timer.
Also, when the STOP status changes to the RUN status, the data that was maintained can be used for re-
suming the count. The RUN/STOP operation of the stopwatch timer by writing to the SWRUN register
is performed in synchronization with the falling edge of the 1,024 Hz same as the prescaler input clock.
The SWRUN register can be read, and in this case it indicates the operating status of the stopwatch
timer.
Figure 4.8.5.1 shows the operating timing when controlling the SWRUN register.
f
OSC1
/32 (1,024 Hz)
SWRUN writing
SWRUN register
Count clock
Fig. 4.8.5.1 Operating timing when controlling SWRUN
When the direct input function (explained in next section) is set, RUN/STOP control is done by an ex-
ternal key input. In this case, SWRUN becomes read only register that indicates the operating status of
the stopwatch timer.
Stopwatch timer reset
The stopwatch timer is reset when "1" is written to SWRST. With this, the counter value is cleared to
"000". Since this resetting does not affect the capture buffer, data that has been held in the capture buffer
is not cleared and is maintained as is. When the stopwatch timer is reset in the RUN status, counting
restarts from count "000". Also, in the STOP status the reset data "000" is maintained until the next RUN.