AN2168 Freescale Semiconductor / Motorola, AN2168 Datasheet - Page 24

no-image

AN2168

Manufacturer Part Number
AN2168
Description
ColdFire Microprocessor DMA Controller Application Note
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Application Note
_main:
UartInit:
24
nop
move.w #$2000,D0
move.w D0,SR
move.b #0x20,D0
move.b D0,UCR
move.b #0x30,D0
move.b D0,UCR
move.b #0x10,D0
move.b D0,UCR
move.b #0x13,D0
move.b D0,UMR
move.b #0x07,D0
move.b D0,UMR
move.b #0xDD,D0
move.b D0,UCSR
move.b #0x00,D0
move.b D0,UACR
move.b #0x02,D0
move.b D0,UIMR
move.b #0x00,d0
move.b d0,UBG1
move.b #0x49,d0
move.b d0,UBG2
;Reset SR. Interrupts
;possible at levels 0-7
;UART0 receiver reset
;UART0 transmitter reset
;UART0 Mode register reset
;this sets the pointer to UMR1
;set up the UMR1 (UART0 mode register)
;for no parity, 8 bits per character
;the receiver interrupt mode is set for the
;RxRDY condition (one character received)
;After writing to this register, the mode
;pointer points to UMR2
;set up the UMR2 (UART0 mode register)
;for normal mode, 1 stop bit
;the transmitter and receiver are both
;clocked using the system bus clock (BCLKO)
;Disable interrupts for the COS & /CTS
;enabled receiver interrupt
;program dividers for 19200 baud rate
MOTOROLA
AN2168

Related parts for AN2168