5.3.1 ATSAMC21-XPRO Base Station

The user can find the project files for software development of the base station in the ATA8510-EK1 Tool Package 4.0.zip folder of the sub-directory, ..\Software\base\...

After installation of MPLAB X IDE, the USB driver is installed automatically when connecting the SAMC21-XPRO board (only for first time installation).
  1. Open MPLAB X IDE.
    Note: The user can obtain the kit documentation and sample projects from the Open MPLAB X IDE>Window>Kit Window (see the following figure).
    Figure 5-3. Kit Window
  2. The OLED screen displays a welcome message and waits for an RF telegram from the remote sensor (see Kit Setup).
  3. Attach a coin cell battery (CR2032) to the remote sensor transceiver board. The ATA8510 sensor immediately transmits the RF telegram every 10 seconds with the current temperature, RF telegram time interval and RSSI parameter (see Figure 4-3).
    Note: The user can manually generate an RF telegram by pressing the SW1 or SW2 button on the remote sensor transceiver board (see Figure 4-2).
  4. The user can view the received telegram information on the PC COM port terminal. The following are the settings to receive data over the COM port:
    • 38.4 Kbaud, 8 data bit, 1 stop bit, no parity and no handshake

The user can analyze and debug the implementation together with the program flow (see Figure 5-2).

To evaluate the software, select the main.c file from the solution window inside MPLAB X IDE:
  • In the Projects tab, go to Source Files>main.c.
    Figure 5-4. Base Software

The user must perform the debugging of the application within MPLAB X IDE together with the SAMC21-XPRO board. This board includes an embedded debugger, which is controlled by MPLAB X IDE.