Thanks Chipfryer,
You are right about the hardware I'm using and testing.
Strange thing is that, what I used last night, and flashed again and again, didn't work, but today I changed a small thing and now the text is send as it should. The small thing I changed had nothing to do with the variable...
Creepy stuff sometimes
But now I have another issue:
- FC1.jpg (32.46 KiB) Viewed 4274 times
In this example I wait until the AUXpin variable goes low and then try to receive a string via UART1.
I see via my logic analyser that there is text received, but not stored into the variable "receivetext".
When the AUX pin goes low, the transfer of data is held for a few microseconds.
The module I"m working with holds this to give the microcontroller the time to wake up.
The time between the AUXpin going low and the sending of the data is about 5ms (datasheet).
But which confuses me all the time is the waiting time in the Flowcode UART component.
I tried several settings (from 0 to 255), but strangely the variable "receivetext" is empty all the time.
How can I make sure the data that comes from the module gets into the variable "receivetext"?
Thanks!