I have write the following code for PIC:
unsigned long la;
ANSEL = 0; // Configure AN pins as digital
ANSELH = 0;
C1ON_bit = 0; // Disable comparators
C2ON_bit = 0;
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