SENA HD1200 User Manual

Page 42

Advertising
background image

Starter Kit and User Manual for the HelloDevice 1200

39

OutAddrLSB equ

$7F9

OutLenMSB

equ

$7FA

OutLenLSB

equ

$7FB

INTR_R

equ

$7FE

INTR_L

equ

$7FF

; Write specified address into InAddr.. registers

mov

DPROffsetMSB, #(InAddrMSB & $ff00)>>8

mov

DPROffsetLSB, #(InAddrMSB & $00ff)

mov

w,

AddressMSB

call

@dpramwrite

mov

DPROffsetMSB, #(InAddrLSB & $ff00)>>8

mov

DPROffsetLSB, #(InAddrLSB & $00ff)

mov

w,

AddressLSB

call

@dpramwrite

; Write specified length into InLen.. registers

mov

DPROffsetMSB, #(InLenMSB & $ff00)>>8

mov

DPROffsetLSB, #(InLenMSB & $00ff)

mov

w,

LengthMSB

call

@dpramwrite

mov

DPROffsetMSB, #(InLenLSB & $ff00)>>8

mov

DPROffsetLSB, #(InLenLSB & $00ff)

mov

w,

LengthLSB

call

@dpramwrite

; Write data for the loop count of specified length

mov

DPROffsetMSB,

AddressMSB

mov

DPROffsetLSB,

AddressLSB

……………

call

@dpramwrite

……………

; Generate interrupt by writing $AA into INTR_L register

mov

DPROffsetMSB,

#(Intr_L&$ff00)>>8

Advertising