Difference between revisions of "Component: RF ISM (EB063, MRF49XA) (Wireless)"
From Flowcode Help
Jump to navigationJump to searchLine 76: | Line 76: | ||
The example can be used to drive both ends of the RF communications as it will send out data but also print out any data received onto the LCD. Pins RA0 and RA1 can be used for diagnostics on the program. | The example can be used to drive both ends of the RF communications as it will send out data but also print out any data received onto the LCD. Pins RA0 and RA1 can be used for diagnostics on the program. | ||
{{Fcfile|RF_Test.fcfx|RF Example}} | {{Fcfile|RF_Test.fcfx|RF Example}} | ||
+ | |||
+ | |||
Line 81: | Line 83: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===SetSyncPattern=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 104: | Line 107: | ||
+ | ===ReceiveByte=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 122: | Line 126: | ||
+ | ===SendString=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 140: | Line 145: | ||
+ | ===TXTune=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 163: | Line 169: | ||
+ | ===RXTune=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 191: | Line 198: | ||
+ | ===SetBufferData=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 214: | Line 222: | ||
+ | ===UpdateCenterFrequency=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 232: | Line 241: | ||
+ | ===FSKWrite=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 250: | Line 260: | ||
+ | ===GetDataCount=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 263: | Line 274: | ||
+ | ===SendBuffer=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 281: | Line 293: | ||
+ | ===SendByte=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 299: | Line 312: | ||
+ | ===ActivateTXMode=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 312: | Line 326: | ||
+ | ===SetDataRate=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 330: | Line 345: | ||
+ | ===ActivateRXMode=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 343: | Line 359: | ||
+ | ===FSKRead=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 356: | Line 373: | ||
+ | ===ReadRXSignalStrength=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 369: | Line 387: | ||
+ | ===Uninitialise=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 382: | Line 401: | ||
+ | ===CheckBuffer=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 400: | Line 420: | ||
+ | ===GetBufferData=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 418: | Line 439: | ||
+ | ===ReceiveString=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 441: | Line 463: | ||
+ | ===Initialise=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- |
Revision as of 11:52, 3 February 2023
Author | Matrix Ltd. |
Version | 2.0 |
Category | Wireless |
Contents
- 1 RF ISM (EB063, MRF49XA) component
- 2 Component Source Code
- 3 Detailed description
- 4 Examples
- 5 Macro reference
- 5.1 SetSyncPattern
- 5.2 ReceiveByte
- 5.3 SendString
- 5.4 TXTune
- 5.5 RXTune
- 5.6 SetBufferData
- 5.7 UpdateCenterFrequency
- 5.8 FSKWrite
- 5.9 GetDataCount
- 5.10 SendBuffer
- 5.11 SendByte
- 5.12 ActivateTXMode
- 5.13 SetDataRate
- 5.14 ActivateRXMode
- 5.15 FSKRead
- 5.16 ReadRXSignalStrength
- 5.17 Uninitialise
- 5.18 CheckBuffer
- 5.19 GetBufferData
- 5.20 ReceiveString
- 5.21 Initialise
- 6 Property reference
RF ISM (EB063, MRF49XA) component
A simple RF-ISM communications module based on the Microchip Alpha MRF49XA device. Also available in the form of the EB063 RF E-block.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_RF-ISM.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_RF-ISM.fcfx
Detailed description
No detailed description exists yet for this component
Examples
The example attempts to send and receive data from a remote board. You will need two RF modules to allow the communications to work.
The example can be used to drive both ends of the RF communications as it will send out data but also print out any data received onto the LCD. Pins RA0 and RA1 can be used for diagnostics on the program.
RF Example
Macro reference
SetSyncPattern
ReceiveByte
SendString
TXTune
RXTune
SetBufferData
![]() |
SetBufferData |
Allows a value to be loaded into the transmit buffer, | |
![]() |
Index |
The current location in the transmit buffer starting from 0 | |
![]() |
Data |
The data value to pass | |
![]() |
Return |
UpdateCenterFrequency
FSKWrite
![]() |
FSKWrite |
Writes to the FSK (frequency shift key) data pin. | |
![]() |
State |
![]() |
Return |
GetDataCount
![]() |
GetDataCount |
Returns the number of bytes in the received data buffer. | |
![]() |
Return |
SendBuffer
![]() |
SendBuffer |
Sends the contents of the transmit buffer. | |
![]() |
Count |
Specifies how many bytes to transfer from the transmit buffer | |
![]() |
Return |
SendByte
ActivateTXMode
![]() |
ActivateTXMode |
Enables the transmitter interface, allowing data to be sent. The receiver interface is automatically disabled. | |
![]() |
Return |
SetDataRate
![]() |
SetDataRate |
Allows the RF data rate to be adjusted during runtime. | |
![]() |
Rate |
Specifies the new data rate | |
![]() |
Return |
ActivateRXMode
![]() |
ActivateRXMode |
Enables the receiver interface, allowing data to be received. The transmitter interface is automatically disabled. | |
![]() |
Return |
FSKRead
![]() |
FSKRead |
Reads the FSK (frequency shift key) data pin. | |
![]() |
Return |
ReadRXSignalStrength
![]() |
ReadRXSignalStrength |
Returns the current received signal strength. | |
![]() |
Return |
Uninitialise
![]() |
Uninitialise |
Powers down the RF module. The module must be re-initialised before it can be used again. | |
![]() |
Return |
CheckBuffer
GetBufferData
![]() |
GetBufferData |
Returns a value from the incoming receive data buffer. | |
![]() |
Index |
Specifies which position in the buffer to read data from | |
![]() |
Return |
ReceiveString
Initialise