| Electronic Components Datasheet Search |
|
38K2 Datasheet(PDF) 204 Page - Renesas Technology Corp |
|
|
|||||||||||||||||||||||||||||
38K2 Datasheet(HTML) 204 Page - Renesas Technology Corp |
|
204 / 358 page ![]() 2.4 Serial I/O Rev.2.00 Oct 15, 2006 page 55 of 112 38K2 Group REJ09B0338-0200 APPLICATION When the registers are set as shown in Fig. 2.4.21, the Serial I/O can transmit 1-byte data by writing data to the transmit buffer register. Thus, after setting the CS signal to “L”, write the transmission data to the transmit buffer register by each 1 byte, and return the CS signal to “H” when the target number of bytes has been transmitted. Figure 2.4.23 shows a control procedure of Serial I/O. Fig. 2.4.23 Control procedure of Serial I/O P5 (Address : 0A16), bit3 ← 0 0 N Y 1 IREQ2 (Address : 3D16), bit3? Complete to transmit data? Initialization SIOCON (Address : 0FE016) ← 110110002 UARTCON (Address : 0FE116), bit4 ← 0 BRG (Address : 0FE216) ← 12–1 ICON2 (Address : 3F16), bit3 ← 0 P5 (Address : 0A16), bit3 ← 1 P5D (Address : 0B16) ← xxxx1xxx2 IREQ2 (Address : 3D16), bit3 ← 0 TB/RB (Address : 2616) P5 (Address : 0A16), bit3 ← 1 a transmission data •Return the CS signal output level to “H” when transmission of the target number of bytes is completed •Serial I/O transmit interrupt : Disabled •CS signal output port set (“H” level output) RESET q x: This bit is not used here. Set it to “0” or “1” arbitrarily. •Serial I/O set •CS signal output level to “L” set •Serial I/O transmit interrupt request bit set to “0” • Transmission data write (Start of transmit 1-byte data) •Judgment of completion of transmitting 1-byte data •Use any of RAM area as a counter for counting the number of transmitted bytes •Judgment of completion of transmitting the target number of bytes |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |