Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

RL78G13 Datasheet(PDF) 7 Page - Renesas Technology Corp

Part # RL78G13
Description  Serial Array Unit
PDF  46 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  RENESAS [Renesas Technology Corp]
Direct Link  http://www.renesas.com
Logo RENESAS - Renesas Technology Corp

RL78G13 Datasheet(HTML) 7 Page - Renesas Technology Corp

Back Button RL78G13 Datasheet HTML 3Page - Renesas Technology Corp RL78G13 Datasheet HTML 4Page - Renesas Technology Corp RL78G13 Datasheet HTML 5Page - Renesas Technology Corp RL78G13 Datasheet HTML 6Page - Renesas Technology Corp RL78G13 Datasheet HTML 7Page - Renesas Technology Corp RL78G13 Datasheet HTML 8Page - Renesas Technology Corp RL78G13 Datasheet HTML 9Page - Renesas Technology Corp RL78G13 Datasheet HTML 10Page - Renesas Technology Corp RL78G13 Datasheet HTML 11Page - Renesas Technology Corp Next Button
Zoom Inzoom in Zoom Outzoom out
 7 / 46 page
background image
RL78/G13
Serial Array Unit (UART Communication)
R01AN0459EJ0200
Rev. 2.00
Page 7 of 43
2014.03.24
5.
Description of the Software
5.1
Operation Outline
This sample code transmits, to the device on the opposite side, the data corresponding to that received from the device.
If an error occurs, it transmits to the device the data corresponding to the error. Tables 5.1 and 5.2 show the
correspondence between transmit data and receive data.
Table 5.1
Correspondence between Receive Data and Transmit Data
Receive Data
Response (Transmit) Data
T (54H)
O (4FH), K (4BH), ”CR” (0DH), ”LF” (0AH)
t (74H)
o (6FH), k (6BH), ”CR” (0DH), ”LF” (0AH)
Other than above
U (55H), C (43H), ”CR” (0DH), ”LF” (0AH)
Table 5.2
Correspondence between Error and Transmit Data
Error
Response (Transmit) Data
Parity error
P (50H), E (45H), ”CR” (0DH), ”LF” (0AH)
Framing error
F (46H), E (45H), ”CR” (0DH), ”LF” (0AH)
Overrun error
O (4FH), E (45H), ”CR” (0DH), ”LF” (0AH)
(1) Perform initial setting of UART.
<UART Setting Conditions>
Use SAU0 channels 0 and 1 as UART.
Use the P12/TxD0 pin and the P11/RxD0 pin for data output and data input, respectively.
The data length is 8 bits.
Set the data transfer direction to LSB first.
Use even parity as the parity setting.
Set the receive data level to standard.
Set the transfer rate to 9600 bps.
Use reception end interrupt (INTSR0), transmission end interrupt (INTST0), and error interrupt (INTSRE0).
Set the interrupt priority orders of INTSR0, INTST0, and INTSRE0 to low priority.
(2) After the system is made to enter a UART communication wait state by using the serial channel start register, a
HALT instruction is executed. Processing is performed in response to reception end interrupt (INTSR0) and error
interrupt (INTSRE0).
When an INTSR0 occurs, the received data is taken in and the data corresponding to the received data is
transmitted. When an INTSRE0 occurs, error handling is performed to transmit the data corresponding to the error.
After data transmission, a HALT instruction is executed again to wait for reception end interrupt (INTSR0) and
error interrupt (INTSRE0).



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46


Datasheet Download

Go To PDF Page


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


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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