Page 1 of 1

UART (RS232) PIC16F1937 & 1939 FC10

Posted: Thu Aug 22, 2024 8:01 pm
by simon-sandtcontrols
Hi Ben,

I have just gone to use the UART (RS232) component in FC10 with the PIC 1937 and discovered that the Tx Pin is incorrect and the Rx shows unconnected, both of which are greyed out and can not be changed. I tried changing to the PIC16F1939 as well and that's the same, that's as far as I went.

I have used this component may times in FC9 quite successfully and started questioning myself, but with no joy, I have reverted back to FC9 for the program I need to write this evening and that's fine, so I think this is a bug. Any chance you could have a look, please. Its a component and PIC I use a lot.

I have attached screenshots of FC9 & FC10.



Many Thanks.

Simon

Re: UART (RS232) PIC16F1937 & 1939 FC10

Posted: Thu Aug 29, 2024 9:42 am
by medelec35
Hello.
Within properties, you need to select either software or channel before the pins can be allocated.
It is selected for FC9, but it's blank for FC10

Re: UART (RS232) PIC16F1937 & 1939 FC10

Posted: Thu Aug 29, 2024 6:08 pm
by simon-sandtcontrols
Thanks Martin,

Yep, that's it, I don't think I have ever looked at that property on any of the previous versions and it didn't enter my mind to try it.

Simon.

Re: UART (RS232) PIC16F1937 & 1939 FC10

Posted: Thu Sep 05, 2024 2:35 pm
by medelec35
You're welcome.
At least you are all sorted now.

Re: UART (RS232) PIC16F1937 & 1939 FC10

Posted: Mon Nov 25, 2024 11:09 am
by Lambra
Hello folks... now one problem I have encountered.. I dunno how to rectify it.. BUT.. my project needs to send number digits.. 0 thru 9.. inclusive.
so I would also use in FC9 only.. When I made my program transmit the digit 1..which is decimal 49 ASCII .. my oscilloscope (real scope - 1054Z from Rigol) - showed up.. the correct bit pattern, on the scope.. showing the LSB bit first from left to right across the screen. So the MSB was on the right side. I did this for digits 1 through 9 .. and all correct.. When I sent the digit 0 ... the incorrect bit pattern was sent out to the scope.!!
Also .. characters A through F ... like are decimal 65 through 70 .. are all correct.. When I send 64 decimal.. I do not get the correct bit pattern for 64.. I think '@' ...
SO can someone please check this out for me... ??
thanking all folks...
kindest regards
Lambra..

Re: UART (RS232) PIC16F1937 & 1939 FC10

Posted: Mon Nov 25, 2024 11:20 am
by Lambra
Hello folks.. again .. it is Lambra ...and now I asking for someone to help me with a simple solution... The UART sends out characters as bits.. from LSB to MSB .. Can anyone show me... please .. a simple routine.. to probably store each bit into a different variable say.. then when all bits are saved.. then to help me send out my program ...these bits.. MSB first through to LSB ..
I appreciate that bits maybe right shifted .. etc etc.. but .. how do I convert the UART output into bits .. easily..?? then also to skip.. (get rid of) the .. start or stop bits as well..??
Kindest Regards
Lambra..

Re: UART (RS232) PIC16F1937 & 1939 FC10

Posted: Fri Nov 29, 2024 6:58 am
by chipfryer27
Hi

I don't think any of the two posts above should be in the bug report sections as I don't believe they are bugs. I find it hard to believe that the UART component would suddenly change the way it performs during a transmission. More likely finger trouble or a dodgy connection somewhere. Screenshots showing the alleged crime would be helpful.

As for reversing the sequence the bits are sent, why would you need that? Also, any overhead such as Start/Stop are removed for you as part of the protocol.

Sounds like you wish to write your own protocol. Good luck :)

Regards