gnupic: gpsim CVS update
Subject:
gpsim CVS update
From:
Scott Dattalo ####@####.####
Date:
27 Mar 2000 00:35:57 -0000
Message-Id: <Pine.LNX.4.21.0003261814370.12539-100000@tempest2.blackhat.net>
gpsim CVS:
https://sourceforge.net/cvs/?group_id=2341
There's not a whole lot to report...
The usart rx sampling was completely wrong. So I fixed this and added usart rx
interrupts as well. While I haven't tested every baud rate, I do believe that
the asynchonous mode of the usart is completed.
I added a new file
examples/14bit/usart.stc
It looks like so:
load s usart_14.cod
# Stimuli:
# All we do is tie rx and tx together to create a loop back.
# This will cause whatever is transmitted to be received...
node loop_back
attach loop_back portc6 portc7
-----------
The thing to notice is that you can tie two pins together using nodes. I use
this to create a simple rs232 loop back.
I then modified examples/14bit/usart_14.asm to repeatedly transmit the string
"0123456789ABCDEF". An interrupt routine in usart_14.asm will respond to
receiver interrupts and copy the received bytes into a buffer. This code
illustrates most of the usart behavior and (as far as I can tell) works.
Scott