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.4 Enabling Reception<br />

Under development<br />

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

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

After configuring the CECADD, CECRCR1, CECRCR2 and CECRCR3 registers, CEC is ready for<br />

reception by enabling the CECREN bit. Detecting a start bit initiates the reception.<br />

(Note) Changing the configurations of the CECADD, CECRCR1, CECRCR2 and CECRCR3<br />

registers during transmission or reception may harm its proper operation. Before<br />

the change of the registers shown below, set the CECREN bit to<br />

disable the reception and read the bit and the CECTEN bit<br />

to ensure that the operation is stopped.<br />

CECRCR1<br />

Noise cancellation time<br />

Time to identify cycle error<br />

Data reception at logical address<br />

discrepancy<br />

CECRCR2 <br />

<br />

CECRCR3<br />

11.3.1.5 Reception<br />

<br />

<br />

Start bit detection<br />

Waveform error detection (when<br />

enabled)<br />

After detecting a start bit, a start bit interrupt is generated, and the CECRSTAT bit is<br />

set.<br />

Upon receiving a byte of data, the EOM and ACK bits, they are stored in the CECRBUF register. A<br />

receive interrupt is generated and it causes the CECRSTAT bit to be set. Same as the<br />

other data, the ACK bit that monitored the CEC line is stored instead of the one generated in the<br />

CEC circuit.<br />

The reception continues from the first data block until the final data block that has the EOM bit<br />

indicating “1”. After detecting the final data block, CEC waits for a next start bit.<br />

CEC

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

Saved successfully!

Ooh no, something went wrong!