SX/B Asychronous interrupt?
Hi All,
I like to use SERIN command inside an asynchronous interrupt routine. ISR run on PORTB interrupt.
The IT pending comes well, but the SERIN command not got we value which i have transmitted.
Can I us SERIN in an asynchronous ISR? Or I should build this serial in receiving in assemby?
Any suggestion? What can be the problem?
Best Regards, a Happy New Year!
Spiller
I like to use SERIN command inside an asynchronous interrupt routine. ISR run on PORTB interrupt.
The IT pending comes well, but the SERIN command not got we value which i have transmitted.
Can I us SERIN in an asynchronous ISR? Or I should build this serial in receiving in assemby?
Any suggestion? What can be the problem?
Best Regards, a Happy New Year!
Spiller
Comments
It should work fine.
Are you using OSC4MHZ on the device line ? If so then that is the problem. The internal 4Mhz clock is not accurate enough for serial communications.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
·The next time you need a hero don't look up in the sky...Look in the mirror.
·
Thanks, I used internal 4Mhz. I will try it with OSC4MHZ.
Spiller
You'll need to use an external resonator for serial communications.
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
·The next time you need a hero don't look up in the sky...Look in the mirror.
·
Spliller
What kind of start bit do you mean? Do you mean the Port B interrupt pending bit, or what? Please send me more detailed information.
Thanks
Spiller