« Return to Thread: USART module of 16f88 / gpsim

Re: USART module of 16f88 / gpsim

by Robert Pearce-3 :: Rate this Message:

Reply to Author | View in Thread

On Tue, 30 Sep 2008, Tobias Schlottke <toby@...> wrote :

>
>I'm just trying to use the USART module of 16F88 and I wonder, if there
>is a bug in gpsim.
>file src/p16f8x.cc initializes the USART using portB2 for Tx and portB1
>for Rx:
>
>  218   usart.initialize(get_pir_set(),&(*m_portb)[2], &(*m_portb)[1],
>  219             new _TXREG(this,"txreg", "USART Transmit Register", &usart),
>  220                    new _RCREG(this,"rcreg", "USART Receiver
>Register", &usart));
>
>
>Checking the manual of microchip DS30487B page 102ff shows that portB5
>is Tx and portB2 is Rx.
>
>Could someone please confirm that I found the correct part of the
>source and that I'm correct?
>
There is a recent bug report for that, but I've not had a chance to
check the data sheet for myself or to make the change. However, that
does look like the relevant part of the code.
--
Rob Pearce                       http://www.bdt-home.demon.co.uk

The contents of this | Windows NT crashed.
message are purely   | I am the Blue Screen of Death.
my opinion. Don't    | No one hears your screams.
believe a word.      |

---------------------------------------------------------------------
To unsubscribe, e-mail: gnupic-unsubscribe@...
For additional commands, e-mail: gnupic-help@...

 « Return to Thread: USART module of 16f88 / gpsim