Interrupt test – Echelon FTXL Hardware User Manual
Page 86
78
Using the Bring-Up Application to Verify FTXL Hardware Design
Figure 34. Reading the Uplink Data
Interrupt Test
The Interrupt Test performs the same two-way communication as the Data
Passing Test, but uses an interrupt service routine rather than managing the
communications under program control. The test application initiates the
downlink transfer by writing the length of the downlink buffer, and enables the
FTXL Transceiver interrupt. The test then waits for the response to be
completed. The downlink transfer is completed by the interrupt service routine,
and when the FTXL Transceiver initiates an uplink transfer, the interrupt
service routine reads the message and validates the data contained in it.
In order to run this test, the application first calls the LonRegisterIsr() function
to initialize the interrupt system.
The test function and the interrupt service routine communicate with each other
using the following global variables:
• hostHasToken – TRUE if the host has the token, FALSE if the FTXL
Transceiver has the token.