23.04.2013 Views

TMPM330 - Keil

TMPM330 - Keil

TMPM330 - Keil

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SBIxCR2<br />

Under development<br />

Serial bus control register 2<br />

7 6 5 4 3 2 1 0<br />

<strong>TMPM330</strong> (rev 0.4) 10-8<br />

<strong>TMPM330</strong><br />

bit Symbol MST TRX BB PIN SBIM1 SBIM0 SWRST1 SWRST0<br />

Read/Write W W (Note 2) W (Note 1)<br />

After reset 0 0 0 1 0 0 0 0<br />

Function<br />

Select Select<br />

master/slave transmit/<br />

0: Slave receive<br />

1: Master<br />

0: Receive<br />

1: Transmit<br />

Start/stop<br />

condition<br />

generation<br />

0: Stop<br />

condition<br />

generated<br />

1: Start<br />

condition<br />

generated<br />

Clear<br />

INTSBIn<br />

interrupt<br />

request<br />

0: −<br />

1: Clear<br />

interrupt<br />

request<br />

Select serial bus interface<br />

operating mode<br />

(Note 2)<br />

00: Port mode<br />

01: SIO mode<br />

10: I2C bus mode<br />

11: (Reserved))<br />

Software reset generation<br />

Write “10” followed by “01”<br />

to generate a reset.<br />

15 14 13 12 11 10 9 8<br />

bit Symbol<br />

Read/Write R<br />

After reset 0<br />

Function This can be read as “0.”<br />

23 22 21 20 19 18 17 16<br />

bit Symbol<br />

Read/Write R<br />

After reset 0<br />

Function This can be read as “0.”<br />

31 30 29 28 27 26 25 24<br />

bit Symbol<br />

Read/Write R<br />

After reset 0<br />

Function This can be read as “0.”<br />

: Write “10” followed by “01” to generate a reset.<br />

: Select serial bus interface operating mode<br />

: Clear INTSBIn interrupt request<br />

: Start/stop condition generation<br />

: Select transmit/ receive<br />

: Select master/slave<br />

Select serial bus interface operating mode (Note 2)<br />

00 Port mode (disables serial bus interface output)<br />

01 Clock –synchronous 8-bit SIO mode<br />

10 I 2 C bus mode<br />

11 (Reserved)<br />

(Note 1) Reading this register causes it to function as the SBInSR register.<br />

(Note 2) Ensure that the bus is free before switching the operating mode to the port mode.<br />

Ensure that the port is at the “H” level before switching the operating mode from the<br />

port mode to the I 2 C bus or clock-synchronous 8-bit SIO mode.<br />

(Note 3) Ensure that serial transfer is completed before switching the mode.<br />

Fig. 10-5 I 2 C Bus Mode register<br />

Serial Bus Interface (SBI)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!