gnupic: USART module of 16f88 / gpsim


Previous by date: 30 Sep 2008 16:59:22 -0000 Re: [gnupic] pk2cmd + pic18f4550, Xiaofan Chen
Next by date: 30 Sep 2008 16:59:22 -0000 Re: [gnupic] pk2cmd + pic18f4550, august
Previous in thread:
Next in thread:

Subject: USART module of 16f88 / gpsim
From: Tobias Schlottke ####@####.####
Date: 30 Sep 2008 16:59:22 -0000
Message-Id: <Pine.LNX.4.64.0809301849390.4990@pff.netzwert.ag>

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


Previous by date: 30 Sep 2008 16:59:22 -0000 Re: [gnupic] pk2cmd + pic18f4550, Xiaofan Chen
Next by date: 30 Sep 2008 16:59:22 -0000 Re: [gnupic] pk2cmd + pic18f4550, august
Previous in thread:
Next in thread:


Powered by ezmlm-browse 0.20.