geniusse01
Newbie level 2
soft_uart_read
hi
i have problem with UART,i wanna use PIC16F84A in serial communication,the problem is when i write the program to send data ( i make initiazation &use this command ( soft_uart_write(i) )) the program works and i can see that on LED i connect to transmit pin,the problem occur when i wanna use the read command
( i= Soft_Uart_Read(*rec) or i= Soft_Uart_Read(rec) )it give me error
( _InvertMaskWr:not found
Bank not found _InvertMaskWr )
i wanna use the PIC16F84A just to read.. the unlogical thing is if i use any write command in the program even if its wont excute ( like i use infinite loop& use write command after it in aim not to be implemented in the program ) if i do that the error message will not show..so i wanna use 1st pic to read ,2nd to write :how i can do that..the program in MicroC that i wrote :
unsigned short i ;
unsigned short *rec;
void main()
{
Soft_Uart_Init(PORTB, 1, 0, 2400, 0);
trisa=0,
trisb.f0=0;
trisb.f1=1;
while (1)
{
do
i= Soft_Uart_Read(*rec);
while (!*rec);
if (i=0xff)
{
porta=i;
}
}
Soft_Uart_write(i);
}
THANX ALOT EVERYBODY
hi
i have problem with UART,i wanna use PIC16F84A in serial communication,the problem is when i write the program to send data ( i make initiazation &use this command ( soft_uart_write(i) )) the program works and i can see that on LED i connect to transmit pin,the problem occur when i wanna use the read command
( i= Soft_Uart_Read(*rec) or i= Soft_Uart_Read(rec) )it give me error
( _InvertMaskWr:not found
Bank not found _InvertMaskWr )
i wanna use the PIC16F84A just to read.. the unlogical thing is if i use any write command in the program even if its wont excute ( like i use infinite loop& use write command after it in aim not to be implemented in the program ) if i do that the error message will not show..so i wanna use 1st pic to read ,2nd to write :how i can do that..the program in MicroC that i wrote :
unsigned short i ;
unsigned short *rec;
void main()
{
Soft_Uart_Init(PORTB, 1, 0, 2400, 0);
trisa=0,
trisb.f0=0;
trisb.f1=1;
while (1)
{
do
i= Soft_Uart_Read(*rec);
while (!*rec);
if (i=0xff)
{
porta=i;
}
}
Soft_Uart_write(i);
}
THANX ALOT EVERYBODY