Jump to content

Component: RF ISM (EB063, MRF49XA) (Wireless): Difference between revisions

From Flowcode Help
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead""
m Text replacement - "style="background-color:#EAE1EA; color:#4B008D;"" to "class="mtx-class-propfolder""
Line 492: Line 492:
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Connections
| width="90%" class="mtx-class-propfolder" | Connections
|-
|-
|-
|-
Line 526: Line 526:
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | RF Settings
| width="90%" class="mtx-class-propfolder" | RF Settings
|-
|-
|-
|-
Line 585: Line 585:
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Receiver Settings
| width="90%" class="mtx-class-propfolder" | Receiver Settings
|-
|-
|-
|-
Line 604: Line 604:
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Transmitter Settings
| width="90%" class="mtx-class-propfolder" | Transmitter Settings
|-
|-
|-
|-
Line 618: Line 618:
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Simulation
| width="90%" class="mtx-class-propfolder" | Simulation
|-
|-
|-
|-

Revision as of 14:35, 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. 
- VOID Return


ActivateTXMode

ActivateTXMode
Enables the transmitter interface, allowing data to be sent. The receiver interface is automatically disabled. 
- VOID Return


CheckBuffer

CheckBuffer
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. 
- BYTE Timeout
Time to wait before returning no data available 
- BYTE Return


FSKRead

FSKRead
Reads the FSK (frequency shift key) data pin. 
- BYTE Return


FSKWrite

FSKWrite
Writes to the FSK (frequency shift key) data pin. 
- BYTE State
 
- VOID Return


GetBufferData

GetBufferData
Returns a value from the incoming receive data buffer. 
- BYTE Index
Specifies which position in the buffer to read data from 
- BYTE Return


GetDataCount

GetDataCount
Returns the number of bytes in the received data buffer. 
- BYTE Return


Initialise

Initialise
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. 
- BYTE Return


RXTune

RXTune
Used to specify and adjust the RF receiver properties during runtime. 
- BYTE Bandwidth
Specifies the Rx bandwidth - Range 1- 6 
- BYTE Gain
Specifies the Rx gain - Range 0 - 3 
- BYTE Threshold
Specifies the Rx signal to noise threshold - Range 0 - 5 
- VOID Return


ReadRXSignalStrength

ReadRXSignalStrength
Returns the current received signal strength. 
- BYTE Return


ReceiveByte

ReceiveByte
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. 
- BYTE Timeout
Specifies how many milliseconds to wait for valid data before returning. 
- BYTE Return


ReceiveString

ReceiveString
Puts the RF module in data mode and attempts to receive a string of bytes from the RF connection. 
- BYTE Length
Specifies the maximum number of bytes to try and receive 
- BYTE Timeout
Specifies how many milliseconds to wait for valid data before returning. 
- STRING Return


SendBuffer

SendBuffer
Sends the contents of the transmit buffer. 
- BYTE Count
Specifies how many bytes to transfer from the transmit buffer 
- VOID Return


SendByte

SendByte
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. 
- BYTE Data
 
- VOID Return


SendString

SendString
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. 
- STRING Data
 
- VOID Return


SetBufferData

SetBufferData
Allows a value to be loaded into the transmit buffer, 
- BYTE Index
The current location in the transmit buffer starting from 0 
- BYTE Data
The data value to pass 
- VOID Return


SetDataRate

SetDataRate
Allows the RF data rate to be adjusted during runtime. 
- BYTE Rate
Specifies the new data rate 
- VOID Return


SetSyncPattern

SetSyncPattern
Allows the sync pattern to be modified during runtime to allow for switching between several different RF connections. 
- BYTE Mode
Switches on or off the extended sync functionality 
- BYTE Pattern
The bit pattern used for the standard sync mode 
- VOID Return


TXTune

TXTune
Used to specify and adjust the RF transmitter properties during runtime. 
- BYTE Deviation
Specifies the transmit FSK frequency deviation - Range 0 - 15 
- BYTE Power
Specifies the transmitter power - Range 0 - 7 
- VOID Return


Uninitialise

Uninitialise
Powers down the RF module. The module must be re-initialised before it can be used again. 
- VOID Return


UpdateCenterFrequency

UpdateCenterFrequency
Allows the RF center frequency to be adjusted during runtime to allow multiple RF channels to be scanned or multiplexed. 
- UINT Frequency
Specifies the new center frequency value - Range 96 - 3903 
- VOID Return


Property reference

Properties
Connections
Channel
SPI Channel selector 
MOSI
SPI Data Out Pin SDO - Also Known as Master Out Slave In (MOSI) when used in Master mode. 
MISO
SPI Data In Pin SDI - Also Known as Master In Slave Out (MISO) when used in Master mode. 
CLK
SPI Clock Pin CLK - The Clock signal is driven by the SPI master. 
CS / SS
Chip Select / Slave Select Pin Master Mode: General purpose output pin used to select the remote SPI device. Slave Mode: Hardware chip select pin input used to select the SPI device.  
FSEL Pin
RF Mode selection pin 
RF Settings
Module Frequency
Module frequency - must be matched with the specific RF transciever being used. 
Center Frequency (96-3903)
Specifies the default RF center frequency 
Center Frequency (MHz)
Calculation to work out the approx actual frequency 
Data Mode
Specifies if the module will send data packets (Byte) or FSK bits (Bit) 
Data Buffer Size (Max)
Maximum number of bytes that can be loaded into a single data packet 
Rate Divider 1
Data rate prescaler 1 - Coarse control 
Rate Divider 2 (0-127)
Data rate prescaler 2 - Fine control 
Max Throughput (Kb/s)
Calculated max data throughput if the data is 100% active 
Data Rate Value
Actual default value passed to the data rate control 
Sync Pattern
Default sync pattern used by the standard sync in byte data mode. 
Extended Sync
Selects if an additional fixed sync byte is to be used. 
Receiver Settings
Bandwidth
Controls the receiver bandwidth, the higher the value the bigger the datarate that can be acheived but the fewer channels that can co-exist 
Gain
Controls the receiver gain - the amount to amplify the incoming signal before processing 
Threshold
The signal to noise threshold used to control the sensitivity 
Transmitter Settings
Bandwidth
Controls the transmitter bandwidth, i.e. the frequency either side of the center frequency to use for the RF communications 
Power
The amount of power to use when transmitting 
Simulation
Label
Label used to help identify the component on the panel. 
Scope Traces
Selects if the scope traces are automatically generated or not 
Console Data
Selects if the console data is automatically generated or not 
API