English
Language : 

EP7209 Datasheet, PDF (124/128 Pages) Cirrus Logic – Ultra-Low-Power Audio Decoder System-on-Chip
EP7209
STR
r0,[r12,#HwUartControl]
;initialise Uart
;
Send ready signal
LDR
r0,=startflag
STRB r0,[r12,#HwUartData]
; send ready
;
receive the data
LDR
r3,=count
LDR
r2,=BufferAddress
01
;
wait for byte available
LDR
r1,[r12,#HwStatus]
TST
r1,#HwStatusUartRxFifoEmpty
BNE
%b01
; spin, if Rx FIFO is empty
;
read the data ,store it and accumulate checksum
LDRB r0,[r12,#HwUartData]
; read data
STRB r0,[r2],#1
; save it in memory
SUBS r3,r3,#1
; decrement count
BNE
%b01
; do more if count has not expired
;
all received, send end flag
LDR
r0,=endflag
STRB r0,[r12,#HwUartData]
LDR
r15,=codeexeaddr
; send reply
;jump to execution address
LTORG
END
124
DS453PP2