URL
https://opencores.org/ocsvn/vhdl_cpu_emulator/vhdl_cpu_emulator/trunk
Subversion Repositories vhdl_cpu_emulator
[/] [vhdl_cpu_emulator/] [trunk/] [thr_interrupt.txt] - Rev 3
Compare with Previous | Blame | View Log
#set automatic transmit and receive for uart 0
WRITE 00010000 00000011
#unmask transmit ready and receive data for uart 0
WRITE 00010100 11111100
#set automatic transmit and receive for uart 1
WRITE 00011000 00000011
#unmask transmit ready and receive data for uart 1
WRITE 00011100 11111100
#clear global 0 for interrupts for uart 0
int0shadow = 00000000
#clear global 1 for interrupts for uart 1
int1shadow = 00000000
vector8 intshadow = 00000000
WAIT 2 us
WHILE
WAIT_INTERRUPT4
#read interrupt reg uart 0
READ 00010101 intshadow
IF intshadow & 11111111
WRITE 00010101 intshadow
IF_END
int0shadow |= intshadow
#read interrupt reg uart 1
READ 00011101 intshadow
IF intshadow & 11111111
WRITE 00011101 intshadow
IF_END
int1shadow |= intshadow
WHILE_END