Docsity

MSP432 Microcontroller Features and Functionality, Lecture notes of Computer Integrated Manufacturing

Partial preview of the text

Download MSP432 Microcontroller Features and Functionality and more Lecture notes Computer Integrated Manufacturing in PDF only on Docsity!

Embedded Systems

Micro Controller Unit (MCU) MSP432 P401R MSP430 G2x René Beuchat Laboratoire d'Architecture des Processeurs [email protected] From ti documentation 1

Microcontroller

  • A microcontroller is an integrated circuit with: ➢A processor (one or many) ➢Some memories as: ➢Flash EPROM ➢SRAM ➢Some programmable interfaces as: ➢GPIO (parallel port) ➢Timer ➢Serial port (UART, SPI, i2c, USB, …) ➢ADC, DAC ➢Lot more… 2

General View, MSP 4

General View, MSP432P 6

Features MSP

  • Core ➢ARM ® 32 - Bit Cortex ® - M4F CPU With Floating- Point Unit and Memory Protection Unit ➢Frequency up to 48 MHz ➢ULPBench™ Benchmark: ➢192.3 ULPMark™-CP ➢Performance Benchmark: ➢3.41 CoreMark/MHz ➢1.22 DMIPS/MHz (Dhrystone 2.1) 8

Features

  • Advanced Low-Power Analog Features ➢SAR Analog-To-Digital Converter (ADC) With 16 - Bit Precision and up to 1 Msps ➢Differential and Single-Ended Inputs ➢Two Window Comparators ➢Up to 24 Input Channels ➢Internal Voltage Reference With 10-ppm/°C Typical Stability ➢Two Analog Comparators 9

Features

  • Ultra-Low-Power Operating Modes ➢Active: 80 μA/MHz ➢Low-Frequency Active: 83 μA at 128 kHz ➢LPM3 (With RTC): 660 nA ➢LPM3.5 (With RTC): 630 nA ➢LPM4: 500 nA ➢LPM4.5: 25 nA 11

Features

  • Operating Characteristics ➢Wide Supply Voltage Range: 1.62 V to 3.7 V ➢Temperature Range (Ambient): – 40 °C to 85 °C
  • JTAG and Debug Support ➢ 4 - Pin JTAG and 2-Pin SWD Debug Interfaces ➢Serial Wire Trace ➢Power Debug and Profiling of Applications 13

Features

  • Flexible Clocking Features ➢ Tunable Internal DCO (up to 48 MHz) ➢ 32.768-kHz Low-Frequency Crystal Support (LFXT) ➢ High-Frequency Crystal Support (HFXT) up to 48 MHz ➢ Low-Frequency Internal Reference Oscillator (REFO) ➢ Very Low-Power Low-Frequency Internal Oscillator (VLO) ➢ Module Oscillator (MODOSC) ➢ System Oscillator (SYSOSC) 15

Features

  • Enhanced System Features ➢Programmable Supervision and Monitoring of Supply Voltage ➢Multiple-Class Resets for Better Control of Application and Debug ➢ 8 - Channel DMA ➢RTC With Calendar and Alarm Functions 16

Features

  • Timing and Control ➢Up to Four 16-Bit Timers, Each With up to Five Capture, Compare, PWM Capability ➢Two 32-Bit Timers, Each With Interrupt Generation Capability 18

Features

  • Serial Communication ➢Up to Four eUSCI_A Modules ➢UART With Automatic Baud-Rate Detection ➢IrDA Encode and Decode ➢SPI (up to 16 Mbps) ➢Up to Four eUSCI_B Modules ➢I 2 C (With Multiple-Slave Addressing) ➢SPI (up to 16 Mbps) 19

Parallel Port One bit of port P4 of MSP432P401R 21 http://www.ti.com/lit/ds/symlink/msp432p401r.pdf p.

Parallel Port control registers

  • PyIN is the state at the pin level and can be read
  • PySEL1, PySEL0 select the pin function. “00”  As Port “01”  module 1 “10”  module 2 “11”  Analog module for Ports 4, 5, 6, 8, 9
  • As Port, PyOUT specifies the data to output
  • PyDIR specifies the direction (‘0’ as input (reset state), ‘1’ as output)
  • PyREN (Resistor Enable) allows a Pull_up or Pull_Down to be activated if the direction is Input 22