PIC18F25K22 UART ERROR

For general Flowcode discussion that does not belong in the other sections.
SILVESTROS
Posts: 120
http://meble-kuchenne.info.pl
Joined: Tue Dec 13, 2022 9:04 pm
Has thanked: 31 times
Been thanked: 2 times

Re: PIC18F25K22 UART ERROR

Post by SILVESTROS »

Hi,
same procedure...baud is 9600.. I checked with Advanced...but why in test chart I have data normally?
what version of excel do you have? I have MS Office Pro Plus 2016 and DS is add in to Excel...
regards
Attachments
TEST2N-A.fcfx
(16.8 KiB) Downloaded 455 times

chipfryer27
Valued Contributor
Posts: 1528
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 353 times
Been thanked: 549 times

Re: PIC18F25K22 UART ERROR

Post by chipfryer27 »

Hi

As your Terminal program captured my dummy data, it kind of proves 100% that your PC is receiving it and the issue probably lies with Excel and we should look to find out why Excel isn't seeing that before you start to send anything else.

The chart above has IntOsc set but no C-Code in Main, the WDT is enabled so will start resetting once it gets a clock and the variables have not been initialised correctly (float should be 0.0 not just 0).

I too am using 2016 with the DS add-in and I can receive my test data (and any other string).

With your Serial-USB convertor connected to your PC and running Excel DS, connect the Tx and Rx of the convertor together so that whatever is sent out on the Tx return on the Rx.

What happens when you use DS to send data?

Regards

SILVESTROS
Posts: 120
Joined: Tue Dec 13, 2022 9:04 pm
Has thanked: 31 times
Been thanked: 2 times

Re: PIC18F25K22 UART ERROR

Post by SILVESTROS »

Hi,
I agree that the problem is in DS ..I connect RX , TX together..no data at data in or data out...maybe to reinstall DS?
I'll try to do it tomorrow....many thanks...
regards

chipfryer27
Valued Contributor
Posts: 1528
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 353 times
Been thanked: 549 times

Re: PIC18F25K22 UART ERROR

Post by chipfryer27 »

Hi

I just tested DS on my looped USB adapter and whatever I enter in Data Out is received in Data In.

That proves DS is seeing and using my adapter.

Does it show your adapter when you select device?

Regards

chipfryer27
Valued Contributor
Posts: 1528
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 353 times
Been thanked: 549 times

Re: PIC18F25K22 UART ERROR

Post by chipfryer27 »

Hi

With my Serial-USB adapter connected to my PC and it's Tx/Rx ports looped. I opened up a new Excel sheet and clicked on DataStreamer in the Ribbon.

Ds-1.png
Ds-1.png (27.14 KiB) Viewed 3812 times

I then clicked on Connect a Device which showed me my options (and my device)

Ds-2.png
Ds-2.png (42.5 KiB) Viewed 3812 times

Selecting my device brings up a confirmation

Ds-3.png
Ds-3.png (17.75 KiB) Viewed 3812 times

Once confirmed I could then "Start Data"

Ds-4.png
Ds-4.png (40.48 KiB) Viewed 3812 times

This opens up the datastreamer view and at this point will capture incoming datastreams

Ds-5.png
Ds-5.png (42.62 KiB) Viewed 3812 times

I then navigated to the Data Out Tab and populated with data

Ds-6.png
Ds-6.png (107.68 KiB) Viewed 3812 times

Navigating back to the Data In Tab I could see my data.

Ds-7.png
Ds-7.png (148.27 KiB) Viewed 3812 times

Hope this helps.
Regards

SILVESTROS
Posts: 120
Joined: Tue Dec 13, 2022 9:04 pm
Has thanked: 31 times
Been thanked: 2 times

Re: PIC18F25K22 UART ERROR

Post by SILVESTROS »

hI,
My serial/usb adapter is Waveshare FT232 USB UART Board-Type C...
In selection "select a device", it shows "USB Serial Port (COM6)...not the type of adapter...
is there a compatibility issue ? maybe to change that with the same as yours ?
regards
Attachments
DS1.png
DS1.png (143.38 KiB) Viewed 3811 times

SILVESTROS
Posts: 120
Joined: Tue Dec 13, 2022 9:04 pm
Has thanked: 31 times
Been thanked: 2 times

Re: PIC18F25K22 UART ERROR

Post by SILVESTROS »

Hi,
looking at system settings (WIN10), I see that this device (FT232R USB - UART) is working well...
it is strange that this adapter not work ...Silicon Labs CP210x not exist in Greece now, so I can't get that soon..
But I think that there is no reason to change that adapter, if works well in other cases...really, I wasn't expected that
issue ...I reset DS, no change..
regards

chipfryer27
Valued Contributor
Posts: 1528
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 353 times
Been thanked: 549 times

Re: PIC18F25K22 UART ERROR

Post by chipfryer27 »

Hi

If it is working for your Terminal program windows can definitely see it.

What happens if you select your USB-Serial port? Does Excel then allow you to "Start Data"?

Regards

SILVESTROS
Posts: 120
Joined: Tue Dec 13, 2022 9:04 pm
Has thanked: 31 times
Been thanked: 2 times

Re: PIC18F25K22 UART ERROR

Post by SILVESTROS »

Hi,
yes, procedure is the same as yours , but I have no data in..
regards

chipfryer27
Valued Contributor
Posts: 1528
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 353 times
Been thanked: 549 times

Re: PIC18F25K22 UART ERROR

Post by chipfryer27 »

Hi

With your adapter connected and looped, try running your terminal program (Excel closed). You should see an echo of whatever you type.

If so then it's definitely something to do with your Excel / DS as you will have proved your adapter is working.

Regards

Post Reply