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

USART module of 16f88 / gpsim

by Tobias Schlottke-4 :: Rate this Message:

Reply to Author | View in Thread

Hi,

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?

Thanks,
Toby


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

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