AN1833 Freescale Semiconductor / Motorola, AN1833 Datasheet - Page 40

no-image

AN1833

Manufacturer Part Number
AN1833
Description
A Low-Power Wireless Remote Control Transmitter and Receiver
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
Application Note
got_one
prev55
value changes
done
**************************************************
* command byte checking
**************************************************
toggle
turnon
turnoff
************************************************************************************
* init - initialize port pins, disable interrupts. Clear all buffers and flags
*
*
* input cond.
* output cond.
* stack used
* variables used
************************************************************************************
init
40
called by main
brset
bset
bra
ldx
lda
cmp
beq
lda
cmp
beq
jmp
ldx
lda
cmp
beq
lda
cmp
beq
bra
bset
bra
bclr
bra
lda
STA
lda
STA
lda
STA
lda
- none
- Port B bit 5 = output , RXD = input
- 0 bytes
- none
0,flag,prev55
0,flag
next
#$3
#$f5
buffer,x
toggle
#$fc
buffer,x
toggle
main
#$4
#$FA
buffer,x
turnon
#$FB
buffer,x
turnoff
done
5,portb
done
5,portb
done
#$0
DDRA
#$20
DDRB
#$00
ISCR
#$0C
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
; branch if saw a 55 previously
; set the flag
; go look for another 55
; get code character in buffer
; compare for address desired - this
;
; go execute the command byte if address
; byte match
; compare for broadcast address
; go execute the command byte
; if a broadcast address match
; else- go reset everything and wait for
; the front porch
; set index to command byte
; check for an on command
; branch if turn on command
; compare for turn off command
; branch if turn off command
; else invalid command so...
; set the port bit
; command executed so...
; reset the port bit
; command executed so ...
; all port a pins are inputs
; (all port a pins are grounded)
; port b pin 5 output - to device to be
; turned on and off
; pin 4 input
; load ISCR to 00 - no external
; interrupts from IRQ Port A
; load TSCR (timer Control) so 0= turn
; off RTIC= RTI enable,
; clear RTIFlag
- data from the receiver
MOTOROLA
AN1833
*
*
*
*
*
*
*

Related parts for AN1833