UPD784026 Renesas Electronics Corporation., UPD784026 Datasheet - Page 205

no-image

UPD784026

Manufacturer Part Number
UPD784026
Description
16/8-bit Single-chip Microcontrollers
Manufacturer
Renesas Electronics Corporation.
Datasheet
6.5 EXAMPLE OF USE
0 buffer register (P0L) are output to P00 through P03. At this time, the next data to be output and the timing at which the output
is to be changed next are set in the processing routine for the simultaneously generated interrupt (see Figure 6-6).
processing routine in Figure 6-9.
The case in which P00 to P03 are used as a 4-bit real-time output port is shown here.
Each time the contents of timer/counter 1 timer register 1 (TM1) and compare register (CR10) match, the contents of port
See CHAPTER 9 TIMER/COUNTER 1 for the method of using timer/counter 1.
The control register settings are shown in Figure 6-7, the setting procedure in Figure 6-8, and the processing in the interrupt
Port 0 Buffer Register
Interrupt Request
Timer/Counter 1
Output Latches
Output Pins
P00-P03
P00-P03
INTC10
P0L
0H
Hi-Z
Initial output data is assigned to output latches P00 to P03
Figure 6-6 Real-Time Output Port Operation Timing
Next data to be output is assigned to P0L
Output buffer turned on
D00
CHAPTER 6 REAL-TIME OUTPUT FUNCTION
Timer Start
D01
D00
CR10
P0L contents transferred to output latch on match of TM1 and CR10
P0L and CR10 overwritten by INTC10 interrput
D01
D01
D02
CR10
D02
D02
D03
CR10
D03
D03
D04
FFH
CR10
165

Related parts for UPD784026