Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

TMP89FS60 Datasheet(PDF) 292 Page - Toshiba Semiconductor

Part # TMP89FS60
Description  8 Bit Microcontroller
PDF  410 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  TOSHIBA [Toshiba Semiconductor]
Direct Link  http://www.semicon.toshiba.co.jp/eng
Logo TOSHIBA - Toshiba Semiconductor

TMP89FS60 Datasheet(HTML) 292 Page - Toshiba Semiconductor

Back Button TMP89FS60 Datasheet HTML 288Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 289Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 290Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 291Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 292Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 293Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 294Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 295Page - Toshiba Semiconductor TMP89FS60 Datasheet HTML 296Page - Toshiba Semiconductor Next Button
Zoom Inzoom in Zoom Outzoom out
 292 / 410 page
background image
Page 278
18. Serial Bus Interface (SBI)
18.5 Data Transfer of I2C Bus
TMP89FS60
RA001
18.5 Data Transfer of I2C Bus
18.5.1 Device initialization
Set POFFCR1<SBI0EN> to "1".
After confirming that the serial bus interface pin is high level, set SBI0CR2<SBIM> to "1" to select the
serial bus interface mode.
Set SBI0CR1<ACK> to "1", SBI0CR1<NOACK> to "0" and SBI0CR1<BC> to "000" to count the number
of clocks for an acknowledge signal, to enable the slave address match detection and the GENERAL CALL
detection, and set the data length to 8 bits. Set THIGH and TLOW at SBI0CR1<SCK>.
Set a slave address at I2C0AR<SA> and set I2C0AR<ALS> to "0" to select the I2C bus mode.
Finally, set SBI0CR2<MST>, SBI0CR2<TRX> and SBI0CR2<BB> to "0", SBI0CR2<PIN> to "1" and
SBI0CR2<SWRST> to "00" for specifying the default setting to a slave receiver mode.
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.
18.5.2 Start condition and slave address generation
Confirm a bus free status (SBI0SR2<BB>="0").
Set SBI0CR1<ACK> to "1" and specify a slave address and a direction bit to be transmitted to the
SBI0DBR.
By writing "1" to SBI0CR2<MST>, SBI0CR2<TRX>, SBI0CR2<BB> and SBI0CR2<PIN>, the start condi-
tion is generated on a bus and then, the slave address and the direction bit which are set to the SBI0DBR are
output. The time from generating the START condition until the falling SBI0 pin takes tHIGH.
An interrupt request occurs at the 9th falling edge of a SCL clock cycle, and SBI0CR2<PIN> is cleared to
"0". The SCL0 pin is pulled down to the low level while SBI0CR2<PIN> is "0". When an interrupt request
occurs, SBI0CR2<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 the SBI0DBR while data is transferred. If data is written to the SBI0DBR,
data to be output may be destroyed.
Note 2: The bus free state must be confirmed by software within 98.0
µs (the shortest transmitting time according to
the standard mode I2C bus standard) or 23.7
µs (the shortest transmitting time according to the fast mode
I2C bus standard) after setting of the slave address to be output. Only when the bus free state is confirmed,
set "1" to SBI0CR2<MST>, SBI0CR2<TRX>, SBI0CR2<BB> and SBI0CR2<PIN> to generate the start
conditions. If the writing of slave address and setting of SBI0CR2<MST>, SBI0CR2<TRX>, SBI0CR2<BB>
and SBI0CR2<PIN> doesn't finish within 98.0
µs or 23.7µs, the other masters may start the transferring and
the slave address data written in SBI0DBR may be broken.
Example :Initialize a device
CHK_PORT:
CMP
(P2PRD), 0x0C
; Checks whether the serial bus interface pin is at the high level
JR
NZ, CHK_PORT
LD
(SBI0CR2), 0x18
; Selects the serial bus interface mode
LD
(SBI0CR1), 0x16
; Selects the acknowledgment mode and sets SBI0CR1<SCK> to
"110"
LD
(I2C0AR), 0xa0
; Sets the slave address to 1010000 and selects the I2C bus mode
LD
(SBI0CR2), 0x18
; Selects the slave receiver 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