Component: RF ISM (EB063, MRF49XA) (Wireless): Difference between revisions
Appearance
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead"" |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| Line 93: | Line 93: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ActivateRXMode''' | ||
|- | |- | ||
| colspan="2" | Enables the receiver interface, allowing data to be received. The transmitter interface is automatically disabled. | | colspan="2" | Enables the receiver interface, allowing data to be received. The transmitter interface is automatically disabled. | ||
| Line 107: | Line 107: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ActivateTXMode''' | ||
|- | |- | ||
| colspan="2" | Enables the transmitter interface, allowing data to be sent. The receiver interface is automatically disabled. | | colspan="2" | Enables the transmitter interface, allowing data to be sent. The receiver interface is automatically disabled. | ||
| Line 121: | Line 121: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''CheckBuffer''' | ||
|- | |- | ||
| colspan="2" | Checks for incoming data for a specific period of time. Returns a value greater then 250 to indicate a failure. Returns the length of the incoming data buffer to indicate success. | | colspan="2" | Checks for incoming data for a specific period of time. Returns a value greater then 250 to indicate a failure. Returns the length of the incoming data buffer to indicate success. | ||
| Line 140: | Line 140: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FSKRead''' | ||
|- | |- | ||
| colspan="2" | Reads the FSK (frequency shift key) data pin. | | colspan="2" | Reads the FSK (frequency shift key) data pin. | ||
| Line 154: | Line 154: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''FSKWrite''' | ||
|- | |- | ||
| colspan="2" | Writes to the FSK (frequency shift key) data pin. | | colspan="2" | Writes to the FSK (frequency shift key) data pin. | ||
| Line 173: | Line 173: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetBufferData''' | ||
|- | |- | ||
| colspan="2" | Returns a value from the incoming receive data buffer. | | colspan="2" | Returns a value from the incoming receive data buffer. | ||
| Line 192: | Line 192: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''GetDataCount''' | ||
|- | |- | ||
| colspan="2" | Returns the number of bytes in the received data buffer. | | colspan="2" | Returns the number of bytes in the received data buffer. | ||
| Line 206: | Line 206: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Initialise''' | ||
|- | |- | ||
| colspan="2" | Starts up and configures the RF module ready for use. The macro will return a value greater then 0 if the module has been started correctly, otherwise the macro will return a 0. | | colspan="2" | Starts up and configures the RF module ready for use. The macro will return a value greater then 0 if the module has been started correctly, otherwise the macro will return a 0. | ||
| Line 220: | Line 220: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''RXTune''' | ||
|- | |- | ||
| colspan="2" | Used to specify and adjust the RF receiver properties during runtime. | | colspan="2" | Used to specify and adjust the RF receiver properties during runtime. | ||
| Line 249: | Line 249: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadRXSignalStrength''' | ||
|- | |- | ||
| colspan="2" | Returns the current received signal strength. | | colspan="2" | Returns the current received signal strength. | ||
| Line 263: | Line 263: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReceiveByte''' | ||
|- | |- | ||
| colspan="2" | Puts the RF module in data mode and attempts to receive a single byte from the RF connection. Only packets containing a single data byte will be accepted. | | colspan="2" | Puts the RF module in data mode and attempts to receive a single byte from the RF connection. Only packets containing a single data byte will be accepted. | ||
| Line 282: | Line 282: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReceiveString''' | ||
|- | |- | ||
| colspan="2" | Puts the RF module in data mode and attempts to receive a string of bytes from the RF connection. | | colspan="2" | Puts the RF module in data mode and attempts to receive a string of bytes from the RF connection. | ||
| Line 306: | Line 306: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SendBuffer''' | ||
|- | |- | ||
| colspan="2" | Sends the contents of the transmit buffer. | | colspan="2" | Sends the contents of the transmit buffer. | ||
| Line 325: | Line 325: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SendByte''' | ||
|- | |- | ||
| colspan="2" | Puts the RF module in data mode and transmits a packet containing a single data byte through the RF connection. A packet consists of Sync information, Data and Checksum. | | colspan="2" | Puts the RF module in data mode and transmits a packet containing a single data byte through the RF connection. A packet consists of Sync information, Data and Checksum. | ||
| Line 344: | Line 344: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SendString''' | ||
|- | |- | ||
| colspan="2" | Puts the RF module in data mode and transmits a packet containing the data string through the RF connection. A packet consists of Sync information, Data and Checksum. | | colspan="2" | Puts the RF module in data mode and transmits a packet containing the data string through the RF connection. A packet consists of Sync information, Data and Checksum. | ||
| Line 363: | Line 363: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetBufferData''' | ||
|- | |- | ||
| colspan="2" | Allows a value to be loaded into the transmit buffer, | | colspan="2" | Allows a value to be loaded into the transmit buffer, | ||
| Line 387: | Line 387: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetDataRate''' | ||
|- | |- | ||
| colspan="2" | Allows the RF data rate to be adjusted during runtime. | | colspan="2" | Allows the RF data rate to be adjusted during runtime. | ||
| Line 406: | Line 406: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''SetSyncPattern''' | ||
|- | |- | ||
| colspan="2" | Allows the sync pattern to be modified during runtime to allow for switching between several different RF connections. | | colspan="2" | Allows the sync pattern to be modified during runtime to allow for switching between several different RF connections. | ||
| Line 430: | Line 430: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''TXTune''' | ||
|- | |- | ||
| colspan="2" | Used to specify and adjust the RF transmitter properties during runtime. | | colspan="2" | Used to specify and adjust the RF transmitter properties during runtime. | ||
| Line 454: | Line 454: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Uninitialise''' | ||
|- | |- | ||
| colspan="2" | Powers down the RF module. The module must be re-initialised before it can be used again. | | colspan="2" | Powers down the RF module. The module must be re-initialised before it can be used again. | ||
| Line 468: | Line 468: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''UpdateCenterFrequency''' | ||
|- | |- | ||
| colspan="2" | Allows the RF center frequency to be adjusted during runtime to allow multiple RF channels to be scanned or multiplexed. | | colspan="2" | Allows the RF center frequency to be adjusted during runtime to allow multiple RF channels to be scanned or multiplexed. | ||
| Line 488: | Line 488: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
Revision as of 14:23, 13 July 2026
| Author | Matrix Ltd. |
| Version | 2.0 |
| Category | Wireless |
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
ActivateRXMode
| ActivateRXMode | |
| Enables the receiver interface, allowing data to be received. The transmitter interface is automatically disabled. | |
| Return | |
ActivateTXMode
| ActivateTXMode | |
| Enables the transmitter interface, allowing data to be sent. The receiver interface is automatically disabled. | |
| Return | |
CheckBuffer
FSKRead
| FSKRead | |
| Reads the FSK (frequency shift key) data pin. | |
| Return | |
FSKWrite
| FSKWrite | |
| Writes to the FSK (frequency shift key) data pin. | |
| State | |
| Return | |
GetBufferData
| GetBufferData | |
| Returns a value from the incoming receive data buffer. | |
| Index | |
| Specifies which position in the buffer to read data from | |
| Return | |
GetDataCount
| GetDataCount | |
| Returns the number of bytes in the received data buffer. | |
| Return | |
Initialise
RXTune
ReadRXSignalStrength
| ReadRXSignalStrength | |
| Returns the current received signal strength. | |
| Return | |
ReceiveByte
ReceiveString
SendBuffer
| SendBuffer | |
| Sends the contents of the transmit buffer. | |
| Count | |
| Specifies how many bytes to transfer from the transmit buffer | |
| Return | |
SendByte
SendString
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 | |
SetDataRate
| SetDataRate | |
| Allows the RF data rate to be adjusted during runtime. | |
| Rate | |
| Specifies the new data rate | |
| Return | |
SetSyncPattern
TXTune
Uninitialise
| Uninitialise | |
| Powers down the RF module. The module must be re-initialised before it can be used again. | |
| Return | |
UpdateCenterFrequency