Page 205
T
5CL8
16.6 Data Transfer of I
2
C Bus
16.6.1 Device initialization
For initialization of device, set the ACK in SBICRA to “1” and the BC to “000”. Specify the data length to 8
bits to count clocks for an acknowledge signal. Set a transfer frequency to the SCK in SBICRA.
Next, set the slave address to the SA in I2CAR and clear the ALS to “0” to set an addressing format.
After confirming that the serial bus interface pin is high level, for specifying the default setting to a slave
receiver mode, clear “0” to the MST, TRX and BB in SBICRB, set “1” to the PIN, “10” to the SBIM, and “00”
to bits SWRST1 and SWRST0.
Note:The initialization of a serial bus interface circuit must be complete within the time from all devices which are
connected to a bus have initialized to and device does not generate a start condition. If not, the data can not
be received correctly because the other device starts transferring before an end of the initialization of a serial
bus interface circuit.
16.6.2 Start condition and slave address generation
Confirm a bus free status (BB = 0).
Set the ACK to “1” and specify a slave address and a direction bit to be transmitted to the SBIDBR.
By writing “1” to the MST, TRX, BB and PIN, the start condition is generated on a bus and then, the slave
address and the direction bit which are set to the SBIDBR are output. The time from generating the START
condition until the falling SCL pin takes t
LOW
.
An INTSBI interrupt request occurs at the 9th falling edge of a SCL clock cycle, and the PIN is cleared to
“0”. The SCL pin is pulled-down to the low level while the PIN is “0”. When an interrupt request occurs, the
TRX changes by the hardware according to the direction bit only when an acknowledge signal is returned from
the slave device.
Note 1: Do not write a slave address to be output to the SBIDBR while data is transferred. If data is written to the
SBIDBR, data to been outputting may be destroyed.
Note 2: The bus free must be confirmed by software within 98.0
µ
s (The shortest transmitting time according to the
I
2
C bus standard) after setting of the slave address to be output. Only when the bus free is confirmed, set
"1" to the MST, TRX, BB, and PIN to generate the start conditions. If the writing of slave address and setting
of MST, TRX, BB and PIN doesn't finish within 98.0
µ
s, the other masters may start the transferring and the
slave address data written in SBIDBR may be broken.
Figure 16-9 Start Condition Generation and Slave Address Transfer
16.6.3 1-word data transfer
Check the MST by the INTSBI interrupt process after an 1-word data transfer is completed, and determine
whether the mode is a master or slave.
Start condition
Slave a Direction bit
A6
A5
2
3
4
5
6
7
8
9
A4
A3
A2
A1
A0
R/W
1
Acknowledge
signal from a
slave device
SCL pin
SDA pin
PIN
INTSBI
interrupt request
Содержание CEM2100/00
Страница 2: ...2 ...
Страница 3: ...BLOCK DIAGRAM ...
Страница 4: ...WIRING DIAGRAM 4 ...
Страница 5: ...CIRCUIT DIAGRAM MAIN BOARD 5 ...
Страница 6: ...6 ...
Страница 7: ......
Страница 11: ...PCB LAYOUT MAIN BOARD TOP SIDE VIEW 11 ...
Страница 12: ...PCB LAYOUT MAIN BOARD BOTTOM SIDE VIEW 12 ...
Страница 13: ...PCB LAYOUT PANEL BOARD TOP SIDE VIEW ...
Страница 14: ...14 PCB LAYOUT PANEL BOARD BOTTOM SIDE VIEW ...
Страница 15: ...PCB LAYOUT REMOTE BOARD TOP SIDE VIEW 15 ...
Страница 16: ...PCB LAYOUT REMOTE BOARD BOTTOM SIDE VIEW 16 ...
Страница 17: ...PCB LAYOUT TUNER BOARD TOP SIDE VIEW 17 ...
Страница 18: ...PCB LAYOUT TUNER BOARD BOTTOM SIDE VIEW 18 ...
Страница 19: ...PCB LAYOUT SD BOARD TOP SIDE VIEW ...
Страница 20: ...20 PCB LAYOUT CD CONNECTOR TOP SIDE VIEW ...
Страница 21: ...PCB LAYOUT ISO BOARD BOTTOM SIDE VIEW 21 ...
Страница 22: ...22 SET EXPLODER VIEW DRAWING ...
Страница 23: ...1 of 2 CEM2100 Trouble shooting Trouble shooting Trouble shooting Trouble shooting ...
Страница 33: ...7 0 6SHFLILFDWLRQ 6 VWHP EORFN GLDJUDP ...
Страница 110: ...7 0 6SHFLILFDWLRQ 5HYLVLRQ KLVWRU 2 2 s u 2 u 2 7 t 2 2 2 S S 5 2 v 2 2 ...
Страница 111: ...8 Bit Microcontroller TLCS 870 C Series T5CL8 ...
Страница 113: ...Revision History Date Revision 2008 7 31 1 First Release ...
Страница 114: ......
Страница 122: ...viii ...
Страница 126: ...Page 4 1 3 Block Diagram T5CL8 1 3 Block Diagram Figure 1 2 Block Diagram ...
Страница 130: ...Page 8 1 4 Pin Names and Functions T5CL8 ...
Страница 155: ...Page 33 T5CL8 ...
Страница 156: ...Page 34 2 Operational Description 2 3 Reset Circuit T5CL8 ...
Страница 186: ...Page 64 5 I O Ports 5 8 Port P7 P77 to P70 T5CL8 ...
Страница 194: ...Page 72 6 Watchdog Timer WDT 6 3 Address Trap T5CL8 ...
Страница 214: ...Page 92 8 16 Bit TimerCounter 1 TC1 8 3 Function T5CL8 ...
Страница 270: ...Page 148 12 Asynchronous Serial interface UART1 12 9 Status Flag T5CL8 ...
Страница 280: ...Page 158 13 Asynchronous Serial interface UART2 13 9 Status Flag T5CL8 ...
Страница 332: ...Page 210 16 Serial Bus Interface I2C Bus Ver D SBI 16 6 Data Transfer of I2C Bus T5CL8 ...
Страница 342: ...Page 220 17 10 bit AD Converter ADC 17 6 Precautions about AD Converter T5CL8 ...
Страница 354: ...Page 232 19 Flash Memory 19 4 Access to the Flash Memory Area T5CL8 ...
Страница 388: ...Page 266 21 Input Output Circuit 21 2 Input Output Ports T5CL8 ...
Страница 397: ...Page 275 T5CL8 23 Package Dimensions LQFP64 P 1010 0 50D Rev 01 Unit mm ...
Страница 398: ...Page 276 23 Package Dimensions T5CL8 ...
Страница 400: ......
Страница 403: ...TC94B14MFG 2010 01 12 3 Pin Layout and Block Diagram Top View Pin Layout Top View TC94B14MFG Top View TEST1 ...
Страница 428: ...TC94B14MFG 2010 01 12 28 Package LQFP80 P 1212 0 50F Weight 0 6 g Typical ...