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.

11.3.1.8 Detecting Error Interrupt<br />

Under development<br />

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

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

Detecting an error during data reception causes an error interrupt, and CEC waits for the next start<br />

bit. The received data is discarded.<br />

It is possible to suspend a receive error interrupt (maximum cycle error, receive buffer overrun and<br />

waveform error), continue reception and send the reversed ACK response.<br />

You can check the interrupt factor by monitoring the bit of the CECRSTAT register corresponding<br />

to the interrupt.<br />

11.3.1.9 Details of Receive Error<br />

(1) Cycle Error<br />

Period between the falling edges of the two sequential bits is measured during reception. If the<br />

period does not comply with the specified minimum or maximum value, a cycle error interrupt is<br />

generated.<br />

The maximum and minimum cycles are specified in the CECRCR1 <br />

bits. A cycle error can be detected for each sampling clock cycle between the ranges of -4 to +3<br />

cycles from the minimum value (approx. 2.05 ms) or the maximum value (approx. 2.75 ms) defined<br />

by the CEC standard.<br />

The CECRSTAT bit or the bit is set if a cycle error interrupt is<br />

generated.<br />

The minimum cycle error causes CEC to output “0” for approx. 3.6 ms.<br />

(2) ACK Collision<br />

At an ACK response, detecting “0” after the specified period to output generates an ACK collision<br />

interrupt or a minimum cycle error interrupt.<br />

The ACK collision interrupt sets the CECRSTAT bit. The minimum cycle error<br />

interrupt sets the CECRSTAT bit.<br />

The following describes the period and method of detection.<br />

Detection starts approx. 0.3 ms after the end of the period of outputting “0” and ends approx 2.0<br />

ms from the starting point (the falling edge) of the ACK bit.<br />

At 0.3 ms from the end of the period of outputting “0”, CEC checks if the CEC line is “0” or not. If it<br />

is “0”, an ACK collision interrupt is generated. If it is “1”, and “0” is detected during the detection<br />

period, the minimum cycle error interrupt is generated. The minimum cycle error causes CEC to<br />

output “0” for approx. 3.6 ms.<br />

CEC

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

Saved successfully!

Ooh no, something went wrong!