CHAPTER 10 REAL-TIME OUTPUT FUNCTION
User’s Manual U11969EJ3V0UM00
323
10.4 Example
The following shows an example of using RTP0 to RTP7 as an 8-bit real-time output port.
The contents of the buffer register (PB) is output to RTP0 to RTP7 in each coincidence of the contents of TM1
and CM10 of timer 1. At this time, the interrupt processing routine is generated in which the data to be output next
and the timing to change the output next are set (refer to Figure 10-2).
For the use of timer 1, refer to 7.2.2 Timer 1.
Figure 10-2. Operational Timings of Real-Time Output Port
INTCM10
interrupt request
0H
Timer 1
D01
D02
D03
D04
D00
D01
D02
D03
D00
D01
D02
D03
CM10
CM10
CM10
CM10
FFFFFFH
Buffer register
PB
Output latch
RTP
Output pins
RTP0 to RTP7
Hi-Z
Rewrites PB and CM10 in the interrupt processing routine of INTCM10
Transfers the contents of PB to the output latch by INTCM10
Timer starts
Turns on output buffer
Sets the data to be output to PB
Sets the first output data to the output latch (RTP)
Содержание V854 UPD703006
Страница 2: ...2 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 22: ...22 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 80: ...80 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 134: ...134 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 156: ...156 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 294: ...294 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 320: ...320 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 324: ...324 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 336: ...336 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 376: ...376 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 382: ...382 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 394: ...394 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 396: ...396 User s Manual U11969EJ3V0UM00 MEMO ...