© 2001 Ubicom, Inc. All rights reserved.
- 8 -
www.ubicom.com
AN38
Asynchronous Transmitter & Receiver (UART) Virtual Peripheral Implementation
isrThread6
; Serviced at ISR rate/16
jmp
isrOut
; 7 cycles until mainline program resumes
; execution
isrThread7
; Serviced at ISR rate/16
jmp
isrOut
; 7 cycles until mainline program resumes
; execution
isrThread8
; Serviced at ISR rate/16
jmp
isrOut
; 7 cycles until mainline program resumes
; execution
isrThread9
; Serviced at ISR rate/16
jmp
isrOut
; 7 cycles until mainline program resumes
; execution
isrThread10
; Serviced at ISR rate/16
jmp
isrOut
; 7 cycles until mainline program resumes
; execution
isrThread11
; Serviced at ISR rate/16
jmp
isrOut
; 7 cycles until mainline program resumes
; execution
isrThread12
; Serviced at ISR rate/16
jmp
isrOut
; 7 cycles until mainline program resumes
; execution
isrThread13
; Serviced at ISR rate/16
; This thread must reload the isrMultiplex register reload isrMultiplex so isrThread1 will be
; run on the next interrupt. This thread must reload the isrMultiplex register since it is
; the last one to run in a rotation.
_bank
Multiplexbank
mov
isrMultiplex,#255
jmp
isrOut
; 7 cycles until mainline program resumes
; execution
isrOut
; Set Interrupt Rate
Isrend
; refresh RTCC on return (RTCC = 217-no of instructions executed in the ISR)
mov
w,# -intPeriod
retiw
;return from the interrupt
; End of the Interrupt Service Routine