Toshiba H1 SERIES TLCS-900 User Manual

Page 166

Advertising
background image

TMP92CM22

2007-02-16

92CM22-164

3. Transmission and receiving (Full duplex mode)

When the full duplex mode is used, set the level of receive interrupt to “0” and

set enable the interrupt level (1 to 6) to the transfer interrupts. In the transfer
interrupt program, the receiving operation should be done like the below example
before setting the next transfer data.

Example: Channel 0, SCLK output

Baud rate

= 9600 bps

f

C

= 4.9152 MHz

* Clock state: Clock gear 1/1(fc)

Main

routine

7 6 5 4 3 2

1

0

INTES0

0 0 0 1 0 0

0

0

Set

transmission

interrupt level to 1, and disable receiving

interrupt level to 0.

PFCR

− − − − − 1 0 1

Set to PF0 (TXD0), PF1 (RXD0), and PF2 (SCLK0).

PFFC

− − − − − 1 − 1

SC0MOD0

0 0 0 0 0 0

0

0

Set

to

I/O

interface

mode.

SC0MOD1

1 1 0 0 0 0

0

0

Set

to

full

duplex

mode.

SC0CR

0 0 0 0 0 0

0

0

Output

SCLK,

select

rising

edge.

BR0CR

0 0 0 1 1 0

0

0

Set

to

9600

bps.

SC0MOD0

0 0 1 0 0 0

0

0

Set

receive

to

enable.

SC0BUF

∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ Set

transmission

data.

Transmission

interrupt

routine

Acc

SC0BUF

Read receiving data.

SC0BUF

∗ ∗ ∗ ∗ ∗ ∗ ∗ ∗ Set

transmission

data.

X: Don’t care,

−: No change

Advertising
This manual is related to the following products: