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.

MSP430FR5994: MSP430FR5994 Assembly Language Info

Part Number: MSP430FR5994

I am trying to learn (man power shortage and trying to learn at 71 years, all along I was doing hardware design and system design, but never coded for the past 35 years).

Is there a comprehensive manual or book on ASSEMBLY CODING with examples.

For example, I am not able to code the CSCTL0 of A500 at location 0160 not this initialization CSCTL0=CSKEY is working.

Can I be helped.

Regards

VTC

  • 1) I think your best bet is the TI examples in Resource Explorer. Oddly enough, the FR5994 doesn't have Assembly examples, but (e.g.) the FR5989, which is not very different, does. The particular code you're looking for can be found (e.g.) in msp430fr69xx_cs_01.asm:

    https://dev.ti.com/tirex/explore/node?node=AJ3mUV.VnRtOtYrzf8EPLw__IOGqZri__LATEST

    2) The MSP430 Assembler book (SLAU131U) describes the Assembler but is not much of a tutorial.

    3) I'm pretty sure I've seen commercial books on assembly for the MSP430, but not recently, so they probably describe older devices.

    Unsolicited: I haven't written much assembly code in the past 20 years or so (too much typing), mostly I "write assembly code in C". If you want to consider learning C instead, there are examples nearby in Resource Explorer as well.

  • CSCTL0=CSKEY

    Is not assembler, it is just C. Many people confuse the MSP430 C code with assembler because of all the obscure register names.

    Anyway, I suggest using C first, then if you really want to, move into assembler.

  • I tried the code as was given in the "MSP430FR69xx Demo - Configure MCLK for 8MHz operation "The error free  compilation, when debugged ,does not show the updated value of CSCLT0 as A500.in the Memory view window

    CSCLT1 also does not update Register values and memory values are updating

    Am I doing any mistake.

  • CSCTL0 will never ever read as 0xa500. If you look at the documentation, the upper byte always reads as 0x96. Always.

**Attention** This is a public forum