SENA HD1200 User Manual

Page 43

Advertising
background image

Starter Kit and User Manual for the HelloDevice 1200

40

mov

DPROffsetLSB,

#Intr_L&$00ff

mov

w,

#$AA

call

@dpramwrite

Interrupt service routine of user device

If you receive interrupt from the HelloDevice, you should read data from the specified location. To read data at

the location, you should read address and length of data from OutBox register. And then, you will have to read

data from the address. After you finish reading the data, you will need to do something with this data.

; Read specified data address from OutAddr… registers

Mov

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

Mov

DPROffsetLSB, #(OutAddrMSB & $00ff)

call

@dpramread

mov AddressMSB,

w

Mov

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

Mov

DPROffsetLSB, #(OutAddrLSB & $00ff)

call

@dpramread

mov AddressLSB,

w

; Read specified data length from OutLen… registers

Mov

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

Mov

DPROffsetLSB, #(OutLenMSB & $00ff)

call

@dpramread

mov LengthMSB,

w

Mov

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

Mov

DPROffsetLSB, #(OutLenLSB & $00ff)

call

@dpramread

mov LengthLSB,

w

; Read data for the loop count of specified length

mov

DPROffsetMSB,

AddressMSB

mov

DPROffsetLSB,

AddressLSB

……………

call

@dpramread

……………

Advertising