Cry Heart
Newbie level 3
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
**broken link removed**
In real mode
**broken link removed**
In simulation mode
**broken link removed**
Use JDM Programmer
**broken link removed**
**broken link removed**
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
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');
}
}
}
}
**broken link removed**
In real mode
**broken link removed**
In simulation mode
**broken link removed**
Use JDM Programmer
**broken link removed**
**broken link removed**
Use MAX232
(MAXIM) MAX232EPE