|
7643_06 Datasheet, PDF (152/424 Pages) Renesas Technology Corp – 8-BIT SINGLE-CHIP MICROCOMPUTER | |||
|
◁ |
7643 Group
APPLICATION
2.3 Serial I/O
When the registers are set as shown in Figure 2.3.13, the serial I/O can transmit 1-byte data by
writing data into the serial I/O shift register.
Thus, after setting the CS signal to âLâ, write the transmission data to the serial I/O shift register
by each 1 byte, and return the CS signal to âHâ when all required data have been transmitted.
Figure 2.3.13 shows a control procedure of transmitter.
RESET
Initialization
SIOCON1 (Address : 2B16) 010011002
SIOCON2 (Address : 2C16) 000111002
P3
(Address : 0E16), bit1 1
P3D
(Address : 0F16), bit1 1
IREQC (Address : 0416), bit3 0
ICONC (Address : 0716), bit3 0
CLI
q x: This bit is not used here. Set it to â0â or â1â arbitrarily.
â¢Serial I/O set
â¢CS signal output port set
(âHâ level output)
â¢Serial I/O interrupt request bit set to â0â
â¢Serial I/O interrupt disabled
P3 (Address : 0E16), bit1
0
â¢CS signal output level to âLâ set
SIOSHT (Address : 2A16)
Transmi-
ssion data
â¢Transmission data write
(Start of transmit 1-byte data)
0
IREQC (Address : 0416), bit3?
1
IREQC (Address : 0416), bit3 0
â¢Judgment of completion of transmitting
1-byte data
N
Complete to transmit all data?
Y
P3 (Address : 0E16), bit1 1
â¢Use any of RAM area as a counter for counting
the number of transmitted bytes
â¢Judgment of completion of transmitting all data
â¢Return the CS signal output level to âHâ
when transmission of all data is completed
Fig. 2.3.13 Control procedure of transmitter
Rev.2.00 Aug 28, 2006 page 31 of 202
REJ09B0133-0200
|
▷ |