I have write the following code for PIC:
unsigned long la;
void main()
{
ANSEL = 0; // Configure AN pins as digital
ANSELH = 0;
C1ON_bit = 0; // Disable comparators
C2ON_bit = 0;
la=123;
UART1_Init(9600);
delay_ms(100);
UART1_Write(la);
delay_ms(100);
}
I have tried to print on serial a number with three digits (la=123) and it works...for number with four digits (example la=1234) it doesn't work!!!
The problem is that the serial read and write only one byte to the time....how can i resolve this problem??thanks to all