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.

Under development<br />

<strong>TMPM330</strong> (rev 0.4) 9-33<br />

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

(Note 1) To use the “N + (16 - K)/16” division function, be sure to set BR0K to<br />

“1” after setting the K value to BR0K. The “N + (16 - K)/16” division function can<br />

only be used in the UART mode.<br />

(Note 2) The division ratio “1” of the baud rate generator can be specified only when<br />

・the “N + (16 - K)/16” division function is not used in the UART mode.<br />

・double buffering is used in the I/O interface mode.<br />

(Note 3) As a division ratio, 1 (“0001”) or 16 (“0000”) cannot be applied to N when using the<br />

“N + (16 - K)/16” division function.<br />

(Note 4) Specifying “K = 0” is prohibited.<br />

9.4.8 FIFO configuration register<br />

SC0FCNF<br />

7 6 5 4 3 2 1 0<br />

bit Symbol Reserved Reserved Reserved RFST TFIE RFIE RXTXCNT CNFG<br />

Read/Write R/W<br />

After reset 0 0 0 0 0 0 0 0<br />

Bytes used TX interrupt RX Automatic FIFO<br />

in RX for TX FIFO interrupt for disable of enable<br />

Be sure to write “000”.<br />

FIFO 0: Disabled RX FIFO RXE/TXE 0:<br />

Function<br />

0:<br />

Maximum<br />

1: Enabled 0:Disabled<br />

1: Enabled<br />

0:None<br />

1:Auto<br />

Disabled<br />

1:<br />

1:Same as<br />

disab Enabled<br />

FILL level<br />

of RX FIFO<br />

le<br />

: When RX FIFO is enabled, the number of RX FIFO bytes to be used is selected (see<br />

note).<br />

0: The maximum number of bytes of the FIFO configured (see also ).<br />

1: Same as the fill level for receive interrupt generation specified by SC0RFC .<br />

: When TX FIFO is enabled, transmit interrupts are enabled or disabled by this parameter.<br />

: When RX FIFO is enabled, receive interrupts are enabled or disabled by this parameter.<br />

: Controls automatic disabling of transmission and reception.<br />

The mode control register SCOMOD1 is used to set the types of TX/RX.<br />

Setting “1” enables to operate as follows.<br />

Half duplex<br />

RX<br />

When the RX FIFO is filled up to the specified number of valid bytes,<br />

SC0MOD0 is automatically set to “0” to inhibit further<br />

reception.<br />

Half duplex When the TX FIFO is empty, SC0MOD1 is automatically set<br />

TX<br />

to “0” to inhibit further transmission.<br />

Full duplex When either of the above two conditions is satisfied, TXE/RXE are<br />

automatically set to “0” to inhibit further transmission and<br />

reception.<br />

: Enables FIFO.<br />

If enabled, the SCOMOD1 setting automatically configures FIFO as follows:<br />

(The type of TX/RX can be specified in the mode control register 1<br />

SC0MOD1).<br />

Serial Channel (SIO)

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

Saved successfully!

Ooh no, something went wrong!