mturna
Junior Member level 2
Hi guys,
My problem is about 16f877a. I am sending data from computer to the pic via RS232. I checked RS232 output max232 output and the data enter RC7 (receiver pin) they are all correct. But the pic can't receive data correctly.
I am using
data=getc();
function to get a byte data but how much should I wait after this (optimum value) or should I?.
And how can use the interrupt I? Because I used some but they didn't worked. For example:
#int_RDA
void RDA_isr(void)
{ disable_interrupts(int_rda)
c = getc(); // Get character from PC
output_high(red);
delay_ms(3000);
output_low(red);
}
the led hasn't turn on ever. How can I solve this?
Thank you.
My problem is about 16f877a. I am sending data from computer to the pic via RS232. I checked RS232 output max232 output and the data enter RC7 (receiver pin) they are all correct. But the pic can't receive data correctly.
I am using
data=getc();
function to get a byte data but how much should I wait after this (optimum value) or should I?.
And how can use the interrupt I? Because I used some but they didn't worked. For example:
#int_RDA
void RDA_isr(void)
{ disable_interrupts(int_rda)
c = getc(); // Get character from PC
output_high(red);
delay_ms(3000);
output_low(red);
}
the led hasn't turn on ever. How can I solve this?
Thank you.