How to get the PIC autodetect if an serial RS-232 cable is connected?
If the serial RS-232 cabel is not connected the PIC should ignore the serial port commands, or someting like that. Any ideas?
How to get the PIC autodetect if an serial RS-232 cable is connected?
If the serial RS-232 cabel is not connected the PIC should ignore the serial port commands, or someting like that. Any ideas?
Handle your serial communication with interrupt.
Are you building the PC application? If so that make things lot easier then.
Knowing a little much about your hardware will help.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
It is a pic18f4550.
I think i am on the right way, USART interrupt. I will look this up more specific.
USART interrupt seams to be good. But as far i can understand HSEROUT/HSERIN dont accpet inverted mode. And to get correct data out of HSEROUT/IN i need RS-232 controller like MAX232 ic right?
So best solution for me would be a inverted SEROUT/SERIN interrupt, but is that possible?
I have played little with "Darrel Taylor instant interrupts" and interrupts seams to be a very useful in many situations!
Bookmarks