32
MITSUBISHI MICROCOMPUTERS
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
3807 Group
Data bus
P31 latch
P31 direction register
P30 latch
P30 direction register
P87/RTP5
P87 latch
P87 direction register
P86/RTP4
P86 latch
P86 direction register
XIN
1/16
XCIN
"10"
"00"
"01"
Main clock division
ratio selection bits
"1"
"0"
Timer A, B
count source
selection bit
1/2
Timer B interrupt
request
Timer A interrupt
request
P85/RTP3
Real time output
Real time port output selection bit (P85)
P85 latch
P85 direction register
P84/RTP2
P84 latch
P84 direction register
P83/RTP1
Real time output
Real time port output selection bit (P83)
P83 latch
P83 direction register
P82/RTP0
P82 latch
PWM0èoó
PWM1èoó
0
1
State transition of timer count source stop bit
operation
stop
Timer count source stop bit is set to "1".
at reset
When an external start trigger is generated
(external trigger is selected)
When a start trigger bit is set to "1"
(internal trigger is selected)
A timer latch value is loaded into the timer
P82 direction register
Real time output
Real time port output selection bit (P82)
Real time output
Real time port output selection bit (P84)
Real time output
Real time port output selection bit (P86)
Real time output
Real time port output selection bit (P87)
Real time port
register 4 (8)
Real time port
register 5 (8)
Real time port
register 6 (8)
Real time port
register 7 (8)
Real time port
register 0 (8)
Real time port
register 1 (8)
Real time port
register 2 (8)
Real time port
register 3 (8)
"0"
"1"
Output latch (8)
Timer B 0H latch (8)
Timer B 1H latch (8)
Timer B 0L latch (8)
Timer B 1L latch (8)
Timer B count
source stop bit
Timer A count
source stop bit
Timer A (16)
Timer A 1H latch (8)
Timer A 1L latch (8)
"0"
"1"
0
7
Timer B (16)
A timer latch value is loaded into the timer
P50/RTP0
/PWM0
P31/RTP7
P30/RTP6
Real time port R/W
pointer A (3)
Real time port output
pointer A (3)
Real time port output
pointer B (3)
Timer A write
pointer (1)
Timer B write
pointer (1)
Timer B read-out latch (8)
Real time port R/W
pointer B (3)
Real time port port
allocation selection bit
Timer A 0H latch (8)
Timer A 0L latch (8)
Timer A read-out latch (8)
Real time port port
allocation selection bit
Real time output
Real time port output selection bit (
P31)
Real time output
Real time port output selection bit (
P30)
Fig. 26. Block diagram of Real time output port