Hi,
I have a cLCD driver circuit which is attached PC's Tx port directly to MCU's hardware Rx port (RB1) by a 22k only (without MAX232C ..etc)
My problem is
when I set the MCU for an int_rda interrupt and send some chars fromm PC to MCU it does not call the interrrupt void function.
Do you think that it is because of direct 22k ?
Does it run when I add a MAX232 between Pc and Mcu?
please help
thanx
My code piece ;
------------------------------------
...
#int_rda
void comm_test() {
disable_interrupts(int_rda);
...
}
void main() {
...
enable_interrupts(GLOBAL);
while(1) {
enable_interrupts(int_rda);
}
}
----------------------------------------
I have a cLCD driver circuit which is attached PC's Tx port directly to MCU's hardware Rx port (RB1) by a 22k only (without MAX232C ..etc)
My problem is
when I set the MCU for an int_rda interrupt and send some chars fromm PC to MCU it does not call the interrrupt void function.
Do you think that it is because of direct 22k ?
Does it run when I add a MAX232 between Pc and Mcu?
please help
thanx
My code piece ;
------------------------------------
...
#int_rda
void comm_test() {
disable_interrupts(int_rda);
...
}
void main() {
...
enable_interrupts(GLOBAL);
while(1) {
enable_interrupts(int_rda);
}
}
----------------------------------------