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
This is the full code just to test
In real
In simulation
Use JDM Programmer
Use MAX232
(MAXIM) MAX232EPE
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
This is the full code just to test
Rich (BB 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');
}
}
}
}
In real
In simulation
Use JDM Programmer
Use MAX232
(MAXIM) MAX232EPE