Hello,
I need help.
Based on my intensive internet search, all I need to connect to an Zigbee network using the FPGA (NIOS II) is a UART.
Here are my queries:
(1) Can I use IORD_ALTERA_AVALON_UART_RXDATA(UART_BASE) to recieve the data from the XBee module,
and in return, using IOWR_ALTERA_AVALON_UART_TXDATA(UART_BASE, data) to transmit the data?
If yes to (1), what should I be receiving.
I have created an integer array for the receive data: int uart_rx[1024] for each rx request, see code below:
int i = 0;
while(1) {
if ( IORD_ALTERA_AVALON_UART_STATUS(UART1_BASE) && 0XE0 )
{
uart_rx[i] = IORD_ALTERA_AVALON_UART_RXDATA(UART_BASE);
i++;
}
}
The array are filled with a bunch of numbers, my second question is, what I am receving?
Thank you.
I need help.
Based on my intensive internet search, all I need to connect to an Zigbee network using the FPGA (NIOS II) is a UART.
Here are my queries:
(1) Can I use IORD_ALTERA_AVALON_UART_RXDATA(UART_BASE) to recieve the data from the XBee module,
and in return, using IOWR_ALTERA_AVALON_UART_TXDATA(UART_BASE, data) to transmit the data?
If yes to (1), what should I be receiving.
I have created an integer array for the receive data: int uart_rx[1024] for each rx request, see code below:
int i = 0;
while(1) {
if ( IORD_ALTERA_AVALON_UART_STATUS(UART1_BASE) && 0XE0 )
{
uart_rx[i] = IORD_ALTERA_AVALON_UART_RXDATA(UART_BASE);
i++;
}
}
The array are filled with a bunch of numbers, my second question is, what I am receving?
Thank you.