AN2502 Freescale Semiconductor / Motorola, AN2502 Datasheet - Page 26

no-image

AN2502

Manufacturer Part Number
AN2502
Description
Using Two Channels of the HC08 TIM to Achieve a Full-Duplex Software SCI
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN2502/D
;BITHI
;BITLO
;BIT1HI
;BIT1LO
;1200 baud
;BITHI
;BITLO
;BIT1HI
;BIT1LO
; MISC Flags
TPIN
RPIN
; Bit positions on the SCIFlag register
RPF
TPF
SCRF
SCTE
; Include file for the 68HC908JL3, 68HC908JK3, 68HC908JK1
rSCSR
rSCRDR
rSCRSR
rSCTDR
rSCTSR
;**********************************************************************
;* Program goes here after reset
;**********************************************************************
Start:
; Call this subroutine for enable Tx and Rx
; ENTER YOUR MAIN CODE HERE. This is an example of receiving a byte
; which is stored in the accumulator and then sending the same byte.
26
Include 'jk3_registers.inc'
EQU
EQU
EQU
EQU
EQU
EQU
ORG
RMB
RMB
RMB
RMB
RMB
ORG
RSP
CLRX
CLRH
CLRA
BSET
JSR
EQU
EQU
EQU
EQU
EQU
EQU
EQU
EQU
Using Two Channels of the HC08 TIM to Achieve a Full-Duplex Software SCI
5
4
7
6
5
4
RamStart
1
1
1
1
1
RomStart
$04
$00
$05
$19
$08
$00
$0A
$4C
0,CONFIG1 ; Disable Watch Dog Timer
RXTX_config
Freescale Semiconductor, Inc.
For More Information On This Product,
; TX PIN PORT D
; RX PIN PORT D
; Receive in progress
; Transmit in progress
; SCI Receiver Full
; SCI Transmitter Empty
; SCI Status Register
; SCI Receive Data Register
; SCI Receive Shift Register
; SCI Transmit Data Register
; SCI Transmit Shift Register
; Reset Stack Pointer
; Initialize MCU registers
; configure TX and RX. Call this
; function with the desired config.
; before any software SCI operation
Go to: www.freescale.com
*
MOTOROLA

Related parts for AN2502