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

How do I implement interrupts with MSB1700? Specifically UARTs

Hello, I am using the MSB1700 board. I if it's possible for to have an interrupt occur whenever data is sent to the uart. I assume it has something to do with the NVIC and the interrupt IDs for the uarts, but I don't know how to implement this into my programming. Is there an interrupt example out there? I will need interrupts for multiple things but for now I just want to test interrupt when Rx is available, which the manual says is possible. I just don't know what the interrupt ID, exception number, and vector offset mean and how to use those values in code. Thank you!

  • The MCB1700 has a LPC1768 mounted on it as far as I can recall (we have one of these). The user manual of the LPC1768 is vividly clear how to configure the NVIC. If not, just about any book that deals with Cortex architecture does.

  • To clarify, I am using the mcb1700 evaluation board from keil. Yes it's very clear I am not denying that. I am simply at a loss for how to tell the board to go to function X when an interrupt occurs. The board I used before this had examples with an interrupt table in .c that would have a list corresponding to each interrupt function, like this

    #pragma DATA_SECTION(g_pfnVectors, ".intvecs")
    void (*const g_pfnVectors[])(void) =
    { (void (*)(void)((unsigned long) &__STACK_TOP),
    // initial stack pointer
    ResetISR, // reset handler
    NmiSR,// the NMI handler
    ....
    ...
    IntDefaultHandler, //UARTR0 Rx and Tx

    Where IntDefaultHandler is any function you can make that is called whenever the interrupt event occurs.

    Does the Keil MCB1700 evaluation board handle interrupts the same way? How do I tell it which function to run when the event occurs? Is there no coding examples? I couldn't find any interrupt examples with the evaluation example code.

  • I just found the startup_LPC17xx.s which is exactly what I was looking for. Thank you.

  • This has nothing to do with the board; it is entirely an internal matter of the chip - irrespective of what board it's mounted on.

    Therefore it's the chip documentation that you need to seek out...

    "Does the Keil MCB1700 evaluation board handle interrupts the same way?"

    The NXP LPC1758 or LPC1768 device will handle interrupts exactly the same way on this board as they do on any other board - it's all internal to the chip.