I need to send an interupt out on the RS232 and get the time back.
What commands is best for it?
You can't send an interrupt out on the serial port. The serial port will send out characters, and may toggle and detect status lines. The UART may on the other hand generate interrupts for a number of reasons.
Please return with more information about what you want to accomplish.
Sorry I will say,
I need to send an interupt for the RS232. I must have the computer see the interupt and give the time for the program to see.
But once more, the serial port can not send any interrupts. It can only send characters.
The hardware in the PC can generate an interrupt if the PC UART receives characters, or if it sees a handshake signal changing state.
So no, you do not need to send an interrupt. But you can write an application that sends characters to the PC. And if you look in the examples directory, there are a number of examples that does transmit and receive data using an UART.
It will be up to you do design a protocol: What characters to send to the PC to request a time, and on what format the PC should send back the time.
View all questions in Keil forum