This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP432E401Y: Serial I/O Using Assembly Code

Part Number: MSP432E401Y


Hi,

I'm using the MXP-EXP432E401Y launchpad kit to learn how to program the MSP432E401Y so we can use it in our products. We use assembly code so the first thing I want to do is to learn how to read serial data coming into the MSP432E401Y using assembly instructions. I've been using the out-of-box example which I am running using Code Composer Studio to do my testing. I've been able to learn a few things using the debug feature of CCS but still have a lot more to learn.

Serial data to the board comes in via a USB connector but looking at the USB parameters starting at 0x40050000 it looks like they haven't even been initialized. It does look like the UART0 port has been initialized and I can successfully change the baud rate of the serial data by changing the baud rate of UART0 so it looks like that is where serial I/O is functional.

By experimenting I can see that a flag is set at 0x20029A08 whenever a byte comes in, but I haven't been able to figure out where I can get the byte itself. If I use the debugger it gets stuck going in a circle. If I release the debugger the byte eventually gets loaded into 0x200297BC but I don't know where the code is that loads it there so I can't figure out how to get the byte of data myself.

I also don't see any flags or data coming into the UART0 block that starts at 0x4000C000.

Thank you so much to anyone who can help me understand how to use assembly code to read serial data coming into the MSP432E401Y.

Regards,
Brad McMillan

  • My question is that:

    1. Where you give the assembly code example for MSP432?

    2. Why don't choose C code?

    Eason

  • Eason:

    The only thing I've done so far in assembly is set the baud rate (13 asm statements), so it's not worth posting.

    I prefer programming in assembly because it gives me a better feel for what the processor is doing and I think it results in a more efficient design.

    Do you have any information that will help me find out where I can read bytes of data that are coming in the serial port? That was my question.

    Please let me know.

    Thanks,

    Brad McMillan

  • Hi Brad McMillan,

    Sorry, to use assembly code to control MSP432Exx is out of my knowledge.

    I check the UG, but can't find a register to read the received value directly.

    My advice is that you can download the C code example and check the assembly code in the debug mode directly.

    Hope it can helps.

    Eason