23.04.2013 Views

TMPM330 - Keil

TMPM330 - Keil

TMPM330 - Keil

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

(2) ACK error<br />

Under development<br />

<strong>TMPM330</strong> (rev0.4)11-34<br />

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

An ACK error interrupt occurs when an ACK response does not conform to the configuration<br />

specified in the CECTCR bit.<br />

When the ACK error interrupt occurs, the CECTSTAT bit is set.<br />

The ACK error is detected in the following cases.<br />

Configuration Determined as an ACK error when<br />

=0<br />

Broadcast transmission?: No<br />

ACK response is logical “1”<br />

=1<br />

Broadcast transmission?: Yes<br />

ACK response is logical “0”<br />

(3) Transmit Buffer Underrun<br />

A transmit buffer underrun error is caused by the following sequence.<br />

1. Data in the transmit buffer is transmit to the shift register.<br />

2. An interrupt occurs.<br />

3. A byte of data is transmitted.<br />

4. No data is set to the transmit buffer before starting transmission of a byte of subsequent data.<br />

When an underrun error occurs, the CECTSTAT bit is set.<br />

(4) Order of ACK Error and Transmit Buffer Overrun<br />

If interrupt factors of the ACK error and transmit buffer underrun are detected at the end of<br />

transmission of a byte of data, the transmit buffer underrun has priority. The transmit buffer underrun<br />

interrupt occurs first and then the ACK error interrupt occurs.<br />

11.3.2.8 Stopping Transmission<br />

To stop transmission, send data including the EOM bit that indicates “1”. This generates a transmit<br />

completion interrupt.<br />

Please note that proper operation is not ensured if the start bit of transmission is set to “0” during<br />

transmission.<br />

11.3.2.9 Retransmission<br />

Transmission is stopped by error detection. To retry the transmission, configure the condition and<br />

data of starting the transmission.<br />

CEC

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

Saved successfully!

Ooh no, something went wrong!