Page 1 of 1

Rs232 UART Bridge

Posted: Mon Oct 25, 2021 1:39 pm
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

Re: Rs232 UART Bridge

Posted: Mon Oct 25, 2021 5:17 pm
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.

Re: Rs232 UART Bridge

Posted: Mon Nov 01, 2021 6:40 am
by pilot123
Hi
Thanks for your help, I now understand where I was going wrong.