Electronic Components Datasheet Search
  English  ▼

X  

R8C/16 Datasheet(PDF) 165 Page - Renesas Technology Corp

Part # R8C/16
Description  16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / R8C/Tiny SERIES
PDF  279 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  RENESAS [Renesas Technology Corp]
Direct Link  http://www.renesas.com
Logo RENESAS - Renesas Technology Corp

R8C/16 Datasheet(HTML) 165 Page - Renesas Technology Corp

Back Button R8C/16 Datasheet HTML 161Page - Renesas Technology Corp R8C/16 Datasheet HTML 162Page - Renesas Technology Corp R8C/16 Datasheet HTML 163Page - Renesas Technology Corp R8C/16 Datasheet HTML 164Page - Renesas Technology Corp R8C/16 Datasheet HTML 165Page - Renesas Technology Corp R8C/16 Datasheet HTML 166Page - Renesas Technology Corp R8C/16 Datasheet HTML 167Page - Renesas Technology Corp R8C/16 Datasheet HTML 168Page - Renesas Technology Corp R8C/16 Datasheet HTML 169Page - Renesas Technology Corp Next Button
Zoom Inzoom in Zoom Outzoom out
 165 / 279 page
background image
R8C/16 Group, R8C/17 Group
15. I2C bus interface (IIC)
Rev.2.10
Jan 19, 2006
Page 152 of 254
REJ09B0169-0210
15.3.1
Master Transmit Operation
In master transmit mode, the master device outputs the transmit clock and data, and the slave device
returns an acknowledge signal. Figure 15.10 and Figure 15.11 show the Operation Timing in Master
Transmit Mode.
The transmit procedure and operation in master transmit mode are shown below.
(1) Set the ICE bit in the ICCR1 register to “1” (transfer operation enabled). Set the WAIT and
MLS bits in the ICMR register and set the CKS0 to CKS3 bits in the ICCR1 register (initial
setting).
(2) Read the BBSY bit in the ICCR2 register to confirm that the bus is free. Set the TRS and MST
bits in the ICCR1 register to master transmit mode. The start condition is generated by writing
“1” to the BBSY bit and “0” to the SCP bit by the MOV instruction.
(3) After confirming that the TDRE bit in the ICSR register is set to “1” (data is transferred from the
ICDRT to ICDRS registers), write transmit data to the ICDRT register (data in which a slave
address and R/W are shown at the 1st byte). At this time, the TDRE bit is automatically set to
“0” and data is transferred from the ICDRT to ICDRS registers, the TDRE bit is set to “1” again.
(4) When the transmit of 1-byte data is completed while the TDRE bit is set to “1”, the TEND bit in
the ICSR register is set to “1” at the rise of the 9th transmit clock pulse. Read the ACKBR bit in
the ICIER register, and confirm that the slave is selected. Write the 2nd-byte data to the
ICDRT register. Since the slave device is not acknowledged when the ACKBR bit is set to “1”,
generate the stop condition. The stop condition is generated by the writing “0” to the BBSY bit
and “0” to the SCP bit by the MOV instruction. The SCL signal is held “L” until data is available
and the stop condition is generated.
(5) Write the transmit data after the 2nd byte to the ICDRT register every time the TDRE bit is set
to “1”.
(6) When writing the number of bytes to be transmitted to the ICDRT register, wait until the TEND
bit is set to “1” while the TDRE bit is set to “1”. Or wait for NACK (the NACKF bit in the ICSR
register is set to “1”) from the receive device while the ACKE bit in the ICIER register is set to
“1” (when the receive acknowledge bit is set to “1”, transfer is halted). And generate the stop
condition before setting the TEND and NACKF bits to “0”.
(7) When the STOP bit in the ICSR register is set to “1”, return to slave receive mode.



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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


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