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.

10.5.14 Software Reset<br />

Under development<br />

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

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

If the serial bus interface circuit locks up due to external noise, it can be initialized by using<br />

a software reset.<br />

Writing “10” followed by “01” to SBIxCR2 generates a reset signal that<br />

initializes the serial bus interface circuit. After a reset, all control registers and status flags<br />

are initialized to their reset values. When the serial bus interface is initialized, is<br />

automatically cleared to “0”.<br />

(Note) A software reset causes the SBI operating mode to switch from the I 2 C mode to the port<br />

mode.<br />

10.5.15 Serial Bus Interface Data Buffer Register (SBIxDBR)<br />

Reading or writing SBIxDBR initiates reading received data or writing transmitted data.<br />

When the SBI is acting as a master, setting a slave address and a direction bit to this<br />

register generates the start condition.<br />

10.5.16 I 2 C Bus Address Register (SBIxI2CAR)<br />

When the SBI is configured as a slave device, the SBIxI2CAR bit is used to specify<br />

a slave address. If I2CAR is set to “0,” the SBI recognizes a slave address<br />

transmitted by the master device and receives data in the addressing format. If is<br />

set to “1,” the SBI does not recognize a slave address and receives data in the free data<br />

format.<br />

10.5.17 IDLE Setting Register (SBIxBR0)<br />

The SBIxBR0 register determines if the SBI operates or not when it enters the IDLE<br />

mode. This register must be programmed before executing an instruction to switch to the<br />

standby mode.<br />

Serial Bus Interface (SBI)

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

Saved successfully!

Ooh no, something went wrong!