Renesas PROM Programming Adapter PCA7408 Uživatelský manuál Strana 27

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 112
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 26
M37221M4H/M6H/M8H/MAH–XXXSP/FP M37221EASP/FP
Rev.1.00 Oct 01, 2002 page 27 of 110
REJ03B0134-0100Z
8.5 SERIAL I/O
This microcomputer has a built-in serial I/O which can either transmit
or receive 8-bit data serially in the clock synchronous mode.
The serial I/O block diagram is shown in Figure 8.5.1. The synchro-
nous clock I/O pin (SCLK), data output pin (SOUT), and data input pin
(SIN) also functions as port P2.
Bit 3 of the serial I/O mode register (address 00DC16) selects whether
the synchronous clock is supplied internally or externally (from the
SCLK pin). When an internal clock is selected, bits 1 and 0 select
whether f(XIN) or f(XCIN) is divided by 4, 16, 32, or 64. To use SIN pin
for serial I/O, set the corresponding bit of the port P2 direction regis-
ter (address 00C516) to “0.”
Fig. 8.5.1 Serial I/O Block Diagram
The operation of the serial I/O is described below. The operation of
the serial I/O differs depending on the clock source; external clock or
internal clock.
8
Serial I/O shift register (8)
Data bus
Serial I/O interrupt
request
Selection gate :
Connected to black
colored side at reset.
Synchronization circuit
Frequency
divider
1/81/4 1/16
SM1
SM0
Serial I/O counter (8)
SM5
: LSB
MSB
S
SM2
1/2
SM6
X
IN
S
IN
S
OUT(/IN)
S
CLK
1/2
SM3
P2
1
latch
P2
0
latch
SM3
(Address 00DD
16
)
SM : Serial I/O mode register
(See note)
Note : When the data is set in the serial I/O register (address 00DD
16
), the register functions as the serial I/O shift register.
Zobrazit stránku 26
1 2 ... 22 23 24 25 26 27 28 29 30 31 32 ... 111 112

Komentáře k této Příručce

Žádné komentáře