Fusion v8 pic32 / RS232 click - Questions

Discussion on projects that are created by users and posted on mikroElektronika website.
Post Reply
Author
Message
cheaberlin@outlook.com
Posts: 7
Joined: 18 Jul 2023 22:36

Fusion v8 pic32 / RS232 click - Questions

#1 Post by cheaberlin@outlook.com » 19 Aug 2023 23:10

Hi,

I've posted this question in a couple forums because I'm not sure where is the most applicable.
My project was to read serial ascii data thru the rs232 click. I am using a fusion v8 pic32 (pic32mx795f512) with the rs232 click in the first mikrobus slot. I assumed the rs232 click example code would be a good place to start however when I display the data received it makes no sense. First I was displaying larger than 1 byte when attempting to display a character at a time, and the data made no sense. I then changed the input array from unsigned char to uint8_t and the read function to pass the address of the first item in the array. The result was I then got single characters (uint8_t) values however they were still not making sense. I then suspected that my input device was sending UTF8 encoded strings instead of plain ascii values, so I wrote a simple program on my laptop to read the serial data and I saw the values I originally expected. So I decided UTF encoding was not the issue. What is the RS232 click or the RS232 library outputting? Or how can I or is it possible to receive plain ascii data in this method.

User avatar
IvanJeremic
mikroElektronika team
Posts: 316
Joined: 05 Sep 2022 14:32

Re: Fusion v8 pic32 / RS232 click - Questions

#2 Post by IvanJeremic » 31 Aug 2023 08:51

Hi,

Lets continue this conversation on the first forum that you opened.
viewtopic.php?f=194&t=80166&p=317342#p317342

Regards,

Ivan.

Post Reply

Return to “User Projects”