gnupic: Re: [gnupic] USART module of 16f88 / gpsim
Subject:
Re: [gnupic] USART module of 16f88 / gpsim
From:
Robert Pearce ####@####.####
Date:
30 Sep 2008 21:45:05 -0000
Message-Id: <PYbtYjxH1p4IFwqO@daniel.huneausware.local>
On Tue, 30 Sep 2008, Tobias Schlottke ####@####.#### 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. |