load s tst_txrx.cod
frequency 10000000
module library libgpsim_ptyusart.so
module load ptyusart   U1
#node loop_back
#attach loop_back portc6 portc7
node PIC_tx
node PIC_rx
# Attach the usart module to the PIC

# usart pin out:
#    1 - Tx - Transmit
#    2 - Rx - Receive
#    3 - CTS - Clear To Send
#    4 - RTS - Request To Send

# Let the usart receiver monitor the data flow.

attach PIC_tx portc6 U1.RX
attach PIC_rx portc7 U1.TX
