5.2.1 Building and Running the Host Controller
Application with ATA8510/15
Building the Application for a Specific Host Controller
Open the corresponding project file located at
“apps\rf_transmit_receive\<board_name>”, as listed in the table
below, to build the application for a specific host controller. This application
demonstrates the RF transmission and reception capabilities.
Important: Ensure
that the ATA8510/15 is programmed by completing the
required steps provided in section Host EEPROM Program.
MPLAB® X project for WBZ451HPE Curiosity
Board and ATA8510 Curiosity Board
WBZ351
wbz351_curiosity.X
MPLAB® X project for WBZ351 Curiosity Board
and ATA8510 Curiosity Board
SAMC21
sam_c21_xpro.X
MPLAB® X project for SAMC21 Xplained Pro and
ATA8510 Curiosity Board
PIC32 WFI32
pic32wfi32e_curiosity.X
MPLAB® X project for PIC32 WFI32E Curiosity
Board and ATA8510 Curiosity Board
Running the Application
Programming
the Host Controller Board
Connect the ATA8510 Curiosity Board to the host board using the mikroBUS™
header.
Connect the USB port on the host
controller board to the PC using a micro-USB cable.Figure 5-8. Programming the Host Controller
Board
Note: It is recommended using a
90-degree angled Type-C elbow cable for optimal RF performance, especially when the host
board's power supply runs directly beneath the PCB antenna of the ATA8510 Curiosity Board, as illustrated in the above
figure.
Open the project and launch MCC Harmony
3.
Generate the code as illustrated in the
following figure.Figure 5-9. Generating the Code
Build the project and program the code to
the hardware using the MPLAB® X IDE.Figure 5-10. Programming the Board
Note: Before running the application, ensure that the ATA8510/15 EEPROM is programmed as described in section Host EEPROM Program.
Running the
Application Figure 5-11. RF Communication Setup
Mount the ATA8510 Curiosity Board onto the selected host controller board. For details on
board placement, refer to RF Transmitter and Receiver.
Connect the USB port on the host
controller board to the PC using a micro-USB cable
Open a terminal application on the PC
(for example, Tera Term/PuTTY).
Connect to the COM Port and configure
the serial settings as follows:
Baud Rate: 115200
Data Bits: 8
Parity: None
Stop Bits: 1
Flow Control: None
Once the board boots up, the ROM
version appears in the terminal, as illustrated in the following figure.
Note:
Ensure the ROM version read from
the device is 0x21.
If the ROM version is not
0x21, a communication issue may be present—often related to the
SPI clock settings.
To resolve this, adjust the SPI
clock settings in the MPLAB Harmony to ensure proper communication with the
device.
Figure 5-12. ROM Version
Configuring the ATA8510/15 as a receiver via Serial Console Command
To view available application
commands and usage information, enter the following command in the serial
console:
rfdemo help
Figure 5-13. rfdemo help
command
Select the application receiver
mode by entering the following command in the serial
console:
rfdemo 2
The following
message confirms that the ATA8510 Curiosity Board is
configured to receive RF messages:Figure 5-14. rfdemo 2
Command
When an RF message is received from
another host board configured as a transmitter, the following message is
displayed:Figure 5-15. Receiving RF
Messages
When an RF message is received from
the ATA8510 Curiosity Board Configured in Standalone
Mode as a transmitter, the following message is displayed:Figure 5-16. RF Message from the ATA8510 Curiosity Board Configured in Standalone
Mode
Configure the ATA8510/15 as a transmitter via Serial Console Command
To view available application
commands and usage information, enter the following command in the serial
console:
rfdemo help
On another host device, Select
the application transmitter mode by entering the following command in the serial
console:
rfdemo 1
The
following message confirms that the ATA8510 Curiosity Board is configured to transmit RF messages:Figure 5-17. rfdemo help
Command
When a message is transmitted to
another host board, the following message is printed to indicate the transmitted
dataFigure 5-18. Transmitting RF
Messages
To disable RF communication, use the appropriate command in the serial console