The problem is that I am not very familiar with JN5148 programming. Most of the my work was with AVR and C#, but now I am in situation that I need to collect data form JN5148 (Coordinator plus 3 sensor boards) and present it in Win application developed in C#. My idea is just to add interrupt driven UART routine for Coordinator and to put readings from all sensors in one packet which will be transmitted to the PC. Any help for this function (initialization)?
For ATmega32, for example, I will add something like this:
void pc_int() iv IVT_ADDR_USART__RXC ics ICS_OFF
{
char request;
request = UART1_Read();
if (request == '@') //indication that PC has sent request for data
{
request_pom = 0; //global variable used in main;
}
else
{
request_pom = 1;
}
}
I do not have problem to set PC application, I have already done that many times with AVR microcontrollers, but now I con not figure how to add UART routine to JN5148...
I do not have problem to set PC application, I have already done that many times with AVR microcontrollers, but now I con not figure how to add UART routine to JN5148...