Page 1 of 1
RS232 Pins & Console
Posted: Wed Dec 23, 2015 9:11 pm
by Bachman
Hello!
Flowcode show wrong pins, but the HW uses the correct ones.

- RS232_Pins.jpg (95.8 KiB) Viewed 7272 times
Sending 0 (zero) via RS232, the information not shown in the console.

- RS232_2.jpg (63.25 KiB) Viewed 7266 times
Re: RS232 Pins & Console
Posted: Wed Dec 23, 2015 10:02 pm
by dazz
Hi Bachman
Ive attached an fcdx for that chip, rename the one in your fcd folder and paste the attached one in, i cant test it as i don't have that chip on hand.
Can you then post back here if it's ok
Regards
Dazz
PLEASE FIND NEW ATTACHMENT FURTHER DOWN
Re: RS232 Pins & Console
Posted: Thu Dec 24, 2015 7:59 am
by Bachman
Thank you!
The properties window is ok, only the chip name is too long. The console problem must be in the Flowcode, i think.

- Shot_178.jpg (74.74 KiB) Viewed 7247 times
Re: RS232 Pins & Console
Posted: Thu Dec 24, 2015 1:11 pm
by medelec35
Hi Bachman,
Bachman wrote:Sending 0 (zero) via RS232, the information not shown in the console.
When you use SendChar you need to look on the
ASCII Table for the char being sent e.g 1 then look at the Dec number and send that value.
In the case of 1 you need to
If you want to send 0 then you use
:
An easier way to send a number is to send it as a string e.g SendString "0"
If you want to send a variable value e.g if VariableValue = 128
Then you could create a string then convert variable to a string then send the string:
Martin
Re: RS232 Pins & Console
Posted: Fri Dec 25, 2015 7:15 am
by Bachman
Yes, it's a solution for the bug. If i convert the numbers into ASCII, i need extra steps on the RX side to convert it back to numbers. Sending zero via UART works fine in the HW, the bug "visible" only in the simulation.
Re: RS232 Pins & Console
Posted: Fri Dec 25, 2015 11:33 am
by dazz
HI Bachman
Sorry about the name i used it for checking and forgot to remove the extra numbers (doh).
I have corrected and reattached to this post
Regards
Dazz
Re: RS232 Pins & Console
Posted: Fri Dec 25, 2015 12:39 pm
by medelec35
Bachman wrote:Yes, it's a solution for the bug. If i convert the numbers into ASCII, i need extra steps on the RX side to convert it back to numbers. Sending zero via UART works fine in the HW, the bug "visible" only in the simulation.
You don't need the extra steps to just send a 0.
Either sendChar(48)
or
SendString"0"
If you use SendChar(0) then that's a null character, not a 0.
So its just the termination of the string
The extra steps are only If sending a byte variable.
Re: RS232 Pins & Console
Posted: Sat Dec 26, 2015 1:51 pm
by Bachman
The extra steps are only If sending a byte variable.
This is why i send 0, not "0".