Rs232 UART Bridge

For general Flowcode discussion that does not belong in the other sections.
Post Reply
pilot123
Posts: 30
http://meble-kuchenne.info.pl
Joined: Fri Feb 26, 2021 1:50 pm
Has thanked: 1 time
Been thanked: 2 times

Rs232 UART Bridge

Post by pilot123 »

Hi
I am using a 18F47K40 PIC running 48MHz Internal Oscillator, I have written a program see attached file. I have used the Wiki RS232 Uart Bridge example to help me (example4).
In the example program RX_A Routine it shows an RS232 Receive Character Statement .Data=RS232A::ReceiveChar(0)
and a CircularBuffer Statement CircularBufferA::PutByte(.Data)
I am confused, because .Data does not show as a variable in the Project Explorer, nor am I able to create a variable beginning with a .
I think I am missing something here, can someone please tell me what I am doing wrong

Regards
ATTACHMENTS
RS232_Circular Buffer.fcfx
(22.56 KiB) Not downloaded yet

LeighM
Valued Contributor
Posts: 490
Joined: Mon Dec 07, 2020 1:00 pm
Has thanked: 84 times
Been thanked: 263 times

Re: Rs232 UART Bridge

Post by LeighM »

In Flowcode projects, variables that are local to a particular function (known as a macro in Flowcode terminology) are identified with a . prefix.

pilot123
Posts: 30
Joined: Fri Feb 26, 2021 1:50 pm
Has thanked: 1 time
Been thanked: 2 times

Re: Rs232 UART Bridge

Post by pilot123 »

Hi
Thanks for your help, I now understand where I was going wrong.

Post Reply