ABSTRACT

This chapter provides detailed and complete discussion about the ARM Cortex-M4 microcontroller software and instruction set. The discussion is divided into two major parts: first the ARM Cortex-M4 Assembly instruction set is introduced, and then the related intrinsic C functions are discussed. The chapter also discusses the ARM Cortex-M4 software development structure, the Keil CMSIS Core-specific intrinsic functions, inline assembler, C programming procedure for the MSP432P401R MCU, and two programming models applied by the MSPWare Peripheral Driver Library. The detailed procedure of building and developing an example MSP432P401R MCU project with C codes is discussed step by step. The intrinsic functions are included with the compiler itself, and therefore they are platform or vendor dependent. This means that different microcontrollers developed and built by the various vendors may have different compilers with different intrinsic functions. In the DRA model, the users can access and control peripherals by writing values directly into the peripheral’s registers.