#-----------------------------------------------------------
# Resource: CoreUARTapb
# Instance: VAR_resource
#-----------------------------------------------------------
# Write 0x41 to UART Control Reg 1 - gives baud rate of 9600 bps assuming CLK is 10 MHz
write   b   VAR_resource    0x08 0x41;

# Write 0x06 to UART Control Reg 2 - 8 bits data, parity enabled, even parity
write   b   VAR_resource    0x0C 0x06;

read    b   VAR_resource    0x08;
readcheck b VAR_resource    0x0C 0x06; # Expect value 06

# Write 0x43 (ASCII "C") to UART transmit register
write   b   VAR_resource    0x00 0x43;
