gnupic@linuxhacker.org
gnupic@linuxhacker.org
On Wed, 1 Oct 2003, Brad Parker wrote:
>
> Anyone have any advice on using the usart module with gpsim?
>
> I just want to see my serial output :-)
>
> I've been using this with no joy so far...
>
> module library libgpsim_modules.so
> module load usart uart
> node tx rx
> attach rx portc6 uart.RX
> attach tx portc7 uart.TX
> module set uart txbaud 9600
> module set uart rxbaud 9600
>
> (I'm about to start hacking but I thought I'd ask first)
This looks good.
If this is for the 18f452, you'll need to divide the baud rate by 4.
Also, the uart module in CVS is only configured to transmit. And to make
matters worse, the data it transmits is static. The module can recieve
too, but that requires modifying the uart module source code.
Scott
gnupic@linuxhacker.org