This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

getkey on serial2

Hello friends, i want to getkey on serial 2 (ASC1) of my xc161cj, someone could help me?
I know that i have to replace C function _getkey(), but what interrupt?How can i receive the interrupt, or read the interrupt has come?

Parents
  • "Hello friends, i want to getkey on serial 2 (ASC1) of my xc161cj, someone could help me?
    I know that i have to replace C function _getkey(), but what interrupt?How can i receive the interrupt, or read the interrupt has come?"

    Look at the source for _getkey(). Observe the parts that are specific to serial port 1 and replace them with the equivalent code for serial port 2. You may have to consult the datasheet for this information.

Reply
  • "Hello friends, i want to getkey on serial 2 (ASC1) of my xc161cj, someone could help me?
    I know that i have to replace C function _getkey(), but what interrupt?How can i receive the interrupt, or read the interrupt has come?"

    Look at the source for _getkey(). Observe the parts that are specific to serial port 1 and replace them with the equivalent code for serial port 2. You may have to consult the datasheet for this information.

Children