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
PIC18F25K22 UART ERROR
-
- Posts: 120
- http://meble-kuchenne.info.pl
- Joined: Tue Dec 13, 2022 9:04 pm
- Has thanked: 31 times
- Been thanked: 2 times
-
- Valued Contributor
- Posts: 1528
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 353 times
- Been thanked: 549 times
Re: PIC18F25K22 UART ERROR
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
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
-
- Posts: 120
- Joined: Tue Dec 13, 2022 9:04 pm
- Has thanked: 31 times
- Been thanked: 2 times
Re: PIC18F25K22 UART ERROR
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
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
-
- Valued Contributor
- Posts: 1528
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 353 times
- Been thanked: 549 times
Re: PIC18F25K22 UART ERROR
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
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
-
- Valued Contributor
- Posts: 1528
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 353 times
- Been thanked: 549 times
Re: PIC18F25K22 UART ERROR
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.
I then clicked on Connect a Device which showed me my options (and my device)
Selecting my device brings up a confirmation
Once confirmed I could then "Start Data"
This opens up the datastreamer view and at this point will capture incoming datastreams
I then navigated to the Data Out Tab and populated with data
Navigating back to the Data In Tab I could see my data.
Hope this helps.
Regards
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.
I then clicked on Connect a Device which showed me my options (and my device)
Selecting my device brings up a confirmation
Once confirmed I could then "Start Data"
This opens up the datastreamer view and at this point will capture incoming datastreams
I then navigated to the Data Out Tab and populated with data
Navigating back to the Data In Tab I could see my data.
Hope this helps.
Regards
-
- Posts: 120
- Joined: Tue Dec 13, 2022 9:04 pm
- Has thanked: 31 times
- Been thanked: 2 times
Re: PIC18F25K22 UART ERROR
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
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 (143.38 KiB) Viewed 3811 times
-
- Posts: 120
- Joined: Tue Dec 13, 2022 9:04 pm
- Has thanked: 31 times
- Been thanked: 2 times
Re: PIC18F25K22 UART ERROR
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
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
-
- Valued Contributor
- Posts: 1528
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 353 times
- Been thanked: 549 times
Re: PIC18F25K22 UART ERROR
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
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
-
- Posts: 120
- Joined: Tue Dec 13, 2022 9:04 pm
- Has thanked: 31 times
- Been thanked: 2 times
Re: PIC18F25K22 UART ERROR
Hi,
yes, procedure is the same as yours , but I have no data in..
regards
yes, procedure is the same as yours , but I have no data in..
regards
-
- Valued Contributor
- Posts: 1528
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 353 times
- Been thanked: 549 times
Re: PIC18F25K22 UART ERROR
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
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