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.7.1 Serial Clock<br />

SCK pin output<br />

SO pin output<br />

Write the<br />

transmit data<br />

Clock source<br />

Under development<br />

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

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

Internal or external clocks can be selected by programming SBIxCR1 .<br />

Internal clocks<br />

In the internal clock mode, one of the seven frequencies can be selected as a serial<br />

clock, which is output to the outside through the SCK pin. At the beginning of a<br />

transfer, the SCK pin output becomes the “H” level.<br />

If the program cannot keep up with this serial clock rate in writing the transmit data or<br />

reading the received data, the SBI automatically enters a wait period. During this<br />

period, the serial clock is stopped automatically and the next shift operation is<br />

suspended until the processing is completed.<br />

External clock ( = “111”)<br />

Automatic wait<br />

1 2 3 7 8 1 2 6 7 8 1 2 3<br />

a0 a1 a2a5 a6 a7 b0 b1 b4 b5 b6 b7 c0 c1 c2<br />

a b c<br />

Fig. 10-24 Automatic Wait<br />

The SBI uses an external clock supplied from the outside to the SCK pin as a serial<br />

clock. For proper shift operations, the serial clock at the “H” and “L” levels must have<br />

the pulse widths as shown below.<br />

SCK pin<br />

tSCKL<br />

tSCKH<br />

tSCKL, tSCKH > 8/fsys<br />

Fig. 10-25 Maximum Transfer Frequency of External Clock Input<br />

Serial Bus Interface (SBI)

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

Saved successfully!

Ooh no, something went wrong!