AN1833 Freescale Semiconductor / Motorola, AN1833 Datasheet - Page 33

no-image

AN1833

Manufacturer Part Number
AN1833
Description
A Low-Power Wireless Remote Control Transmitter and Receiver
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
*
*
*
Send_code
*
*
*
*
*
************************************************************************************
* Routine from AN1240 written by Scott George
************************************************************************************
put_char
put_data_bits bcc
send_0
jmp_bit lda
AN1833
MOTOROLA
*********************************************************************
* route the address in ‘code’ to the routine that sends it out
*********************************************************************
lda
sta
sta
sta
sta
jsr
*********************************************************************
* route the command byte in “command” to the routine that sends it out *
*********************************************************************
lda
sta
sta
sta
sta
jsr
*********************************************************************
* turn off transmitter and initialize buffers for next time
*********************************************************************
bclr
bclr
lda
sta
sta
sta
rts
ldx
clc
bset
bra
bclr
bra
#2*(BAUD_SEL-1)-1
bsr
tsta
ror
code
char
char
char
char
put_char
command
char
char
char
char
put_char
txd,serial_port
xmt,serial_port
#$0
code
command
flag
#9
send_0
txd,serial_port
jmp_bit
txd,serial_port
jmp_bit
delay_13a
char
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
; get the key-pad character
; send out key-pad character
; insert a 12 cycle timing stall so
; receiver and transmitter routines take
; the same time between sent characters
; send address byte
; get the command code
; insert a 12 cycle timing stall so
; receiver and transmitter routines
; take the same time between sent
; characters
; send command byte
;[2] be sending 8 data bits
;[2] clear carry for start bit
;[3] if carry<>0, then
;[5]
;[3]
;[5] else send a 0
;[3]
;[2] prepare for a 1 bit delay
;[13a+12] execute delay routine
;[3] for timing purposes only
;[5] get next data bit to send
; ensure serial out is zero
; turn off transmitter
send out a 1
finished sending a 1
finished sending a 0
Application Note
Code Listing
33
*
*
*

Related parts for AN1833