AN1833 Freescale Semiconductor / Motorola, AN1833 Datasheet - Page 34

no-image

AN1833

Manufacturer Part Number
AN1833
Description
A Low-Power Wireless Remote Control Transmitter and Receiver
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Application Note
put_stop_bit
************************************************************************************
* Delay routine from AN1240
************************************************************************************
delay_13a
************************************************************************************
* Delay routine from AN1240
************************************************************************************
DelaymS2_Body:
DelaymS2010
DelaymS2020
DelaymS2030
************************************************************************************
* Original Routine from AN1239 written by David Yoder and modified for use in
* A low-power Wireless Remote Control Tranmitter and Receiver
*
*
* This is the external interrupt service routine. Both the external
* interrupt pin IRQ_ and the keypad interrupts use this routine.
* Note that in this version, any interrupt is interpreted as having only a keypad
* source
************************************************************************************
KeyPdInt_Isr:
KeyPdInt_Isr010:
34
decx
bne
nop
bset
lda
bsr
rts
nop
nop
tsta
deca
bne
rts
ldx
decx
nop
bne
stx
brn
deca
bne
rts
jsr
beq
txd,serial_port
#2*(BAUD_SEL-1)
delay_13a
delay_13a
#$F8
DelaymS2020
COPR
*
DelaymS2010
put_data_bits
KeyPad_Body
KeyPdInt_Isr090
IRQ Interrupt Service Routine
Freescale Semiconductor, Inc.
For More Information On This Product,
written by Scott George
written by Scott George
Go to: www.freescale.com
;[3] one bit sent, so dec count
;[3] loop if more bits to send
;[2] for timing purposes only
;[5] send out a one
;[2] prepare for a 1 bit delay
;[13a+12] execute delay routine
;[6] exit (put_char)
;[2] this is a 13-cycle loop
;[2]
;[3]
;[3] decrement loop count
;[3] loop if count not zero
;[6] exit (delay_13a*
;JSR EXT to get here
;Load delay into X
;
;
;
;Service the WDOG
;Note that X will
;always be zero here
;Burn 3 bus cycles
;decrement # of mS
;branch if not done
;return
; Any decoding of external interrupts
; should be done here.
; The external and keypad interrupt share
; this vector.
;See if a key is pressed
;If no key down, return to save power
Decrement delay
burn 2 bus cycles
Branch if not done
6
2--\
3-\|
2 ||
3-/|
5
3
3
3--/
|
|
|
|
|
MOTOROLA
AN1833
*
*
*
*
*
*
*
*
*
*

Related parts for AN1833