Cry87heart
New Member
i have problem about connect PIC16F877A with pc
when connect microcontroller to pc using serial port and max23
received zero
and when i send any char received zero too
hex works in proteus (send and receive)
and microcontroller works
and max232 works too
--hex--
**broken link removed**
What causes this problem?
when connect microcontroller to pc using serial port and max23
received zero
and when i send any char received zero too
hex works in proteus (send and receive)
and microcontroller works
and max232 works too
--hex--
Code:
void main()
{
USART_init(9600);
trisb=00000000;
portb=00000000;
while (1)
{
portb.f0=1;
if (usart_data_ready()==1)
{
if(usart_read()=='1')
{
usart_write('A');
}
}
}
}
What causes this problem?