Renesas M16C/6NK Informações Técnicas Página 192

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 412
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 191
Rev.2.10 Apr 14, 2006 page 168 of 378
REJ09B0124-0210
M16C/6N Group (M16C/6NK, M16C/6NM) 15. Serial Interface
Table 15.6 Registers to Be Used and Settings in UART Mode
Register Bit Function
UiTB 0 to 8 Set transmit data
(1)
UiRB 0 to 8 Receive data can be read
(1)
OER,FER,PER,SUM Error flag
UiBRG 0 to 7 Set a bit rate
UiMR SMD2 to SMD0 Set these bits to 100b when transfer data is 7-bit long
Set these bits to 101b when transfer data is 8-bit long
Set these bits to 110b when transfer data is 9-bit long
CKDIR Select the internal clock or external clock
STPS Select the stop bit
PRY, PRYE Select whether parity is included and whether odd or even
IOPOL Select the TXD/RXD input/output polarity
UiC0 CLK0 to CLK1 Select the count source for the UiBRG register
CRS
_______ _______
Select CTS or RTS to use
TXEPT Transmit register empty flag
CRD
_______ _______
Select CTS/RTS function enabled or disabled
NCH Select TXDi pin output mode
CKPOL Set to 0
UFORM LSB first or MSB first can be selected when transfer data is 8-bit long. Set this
bit to 0 when transfer data is 7- or 9-bit long.
UiC1 TE Set this bit to 1 to enable transmission
TI Transmit buffer empty flag
RE Set this bit to 1 to enable reception
RI Reception complete flag
U2IRS
(2)
Select the UART2 transmit interrupt source
U2RRM
(2)
Set to 0
UiLCH Set this bit to 1 to use inverted data logic
UiERE Set to 0
UiSMR 0 to 7 Set to 0
UiSMR2 0 to 7 Set to 0
UiSMR3 0 to 7 Set to 0
UiSMR4 0 to 7 Set to 0
UCON U0IRS, U1IRS Select the UART0/UART1 transmit interrupt source
U0RRM, U1RRM Set to 0
CLKMD0 Invalid because the CLKMD1 bit = 0
CLKMD1 Set to 0
RCSP
_________
Set this bit to 1 to accept as input the CTS0 of UART0 signal from the P6_4 pin
7 Set to 0
i = 0 to 2
NOTES:
1. The bits used for transmit/receive data are as follows:
Bits 0 to 6 when transfer data is 7-bit long
Bits 0 to 7 when transfer data is 8-bit long
Bits 0 to 8 when transfer data is 9-bit long.
2. Set bits 4 to 5 in registers U0C1 and U1C1 to 0. Bits U0IRS, U1IRS, U0RRM, and U1RRM are included in the
UCON register.
Vista de página 191
1 2 ... 187 188 189 190 191 192 193 194 195 196 197 ... 411 412

Comentários a estes Manuais

Sem comentários