Hello! Welcome to Embedic!
This website uses cookies. By using this site, you consent to the use of cookies. For more information, please take a look at our Privacy Policy.
Home > Embedded Events > MSP430FR6989 Function Introduction and Running Light tutorial (PDF attached)

MSP430FR6989 Function Introduction and Running Light tutorial (PDF attached)

Date: 28-11-2022 ClickCount: 673

A microcontroller is an integrated circuit chip that includes a CPU, random memory RAM, read-only memory ROM, multiple I/O ports and interrupt system, timer/counter and other functions and is integrated into a silicon chip to form a small but complete microcomputer system. The microcontroller is also known as Microcontroller, or MCU.

 

Microcontrollers are used in a wide range of applications, from automotive and industrial to home appliances and personal consumer electronics. It can be said that where the control and computing applications, there is a place for microcontrollers.

 

MSP430 is a 16-bit microcontroller launched by TI, the development of MSP430 now has a number of series of more than 500 models. Different MSP430 series integrated with different peripherals, including Flash, RAM, timer, GPIO, ADC, serial communication module, etc..

 

MSP430 is known for low power consumption, its low power consumption level in the industry leader, very suitable for battery-powered devices and other areas with high requirements for power consumption.

msp430

In this tutorial we will use the MSP430FR6989 model, which belongs to the MSP430FR6XX series. This series in the MSP430 product line has a high cost performance, the highest main frequency up to 16MHz, and integrated with a variety of peripherals.

 

Features of MSP430FR6989 

 

The main features of MSP430FR6989 are as follows.

 

1. Embedded microcontroller

 

  • 16-bit RISC architecture with up to 16MHz clock frequency
  • Wide supply voltage range of 3.6V to 1.8V (minimum supply voltage is limited by SVS level, see SVS specification)

 

2. Optimized ultra-low power mode

 

  • Operating mode: approximately 100µA/MHz
  • Standby (LPM3 with low power low frequency internal clock source (VLO)): 0.4µA (typical)
  • Real Time Clock (RTC) (LPM3.5): 0.35µA (typical) (1)
  • Off (LPM4.5): 0.02µA (typical)

 

3. Ultra-low power ferroelectric RAM (FRAM)

 

  • Up to 128KB of non-volatile memory
  • Ultra-low power write
  • 125ns per word fast write (64KB written in 4ms)
  • Unified standard memory = program + data + storage in a single space
  • 1015 write cycle persistence
  • Radiation resistant and non-magnetic

 

4. Intelligent Digital Peripherals

 

  • 32-bit hardware multiplier (MPY)
  • Three-channel internal direct memory access (DMA)
  • RTC with calendar and alarm functions
  • Five 16-bit timers with up to 7 capture/compare registers each
  • 16-bit and 32-bit cyclic redundancy checkers (CRC16, CRC32)

 

5. High performance analog

 

  • Extended Scan Interface (ESI) for background measurements of water volume, heat and gas volume
  • 16-channel analog comparator
  • 12-bit analog-to-digital converter (ADC) with internal reference and sample hold and up to 16 external input channels
  • Integrated LCD driver with up to 320 segment contrast control

 

6. Multi-function input/output ports

 

  • All P1 through P10 and PJ pins support capacitive touch functionality without external components
  • Per bit, per byte and per word access (pair access)
  • Wake-up from LPM via P1, P2, P3 and P4 ports, edge selectable
  • Programmable pull-up and pull-down on all ports

 

7. Code Security and Encryption

 

  • 128-bit or 256-bit AES secure encryption and decryption coprocessor
  • True random seed for random number generation algorithms

 

8. Enhanced serial communication

 

eUSCI_A0 and eUSCI_A1 support:

Universal asynchronous transceiver (UART) with automatic baud rate detection

IrDA encoding and decoding

SPI

 

eUSCI_B0 and eUSCI_B1 both support:

I2C with multiple slave device addressing support

SPI

 

Hardware UART and I2C bootloader (BSL)

 

9. Flexible clocking system

 

  • Fixed frequency CNC oscillator (DCO) with 10 factory tunable frequencies
  • Low power low frequency internal clock source (VLO)
  • 32kHz crystal (LFXT)
  • High frequency crystal (HFXT)

 

10. Development Tools and Software

 

  • Free professional development environment with EnergyTrace++™ technology
  • Experimental and development kits

 

Download: MSP430FR6989 Microcontroller specification datasheet pdf

 

MSP430FR6989 Series Tutorial — Running Light

 

1. Introduction of MSP430FR6989

 

The main resources of the development board are as follows:

 

  • 16-bit RISC architecture up to 16MHz
  • Optimized Ultra Low Power Mode
  • Up to 128KB of FRAM
  • Five 16-bit timers, 7 capture/compare
  • RTC for calendar and alarm functions
  • 16-bit and 32-bit CRC (CRC16, CRC32)
  • 12-bit ADC with 16 external channels
  • Integrated LCD driver
  • Enhanced serial communication (UART, IIC, SPI)
  • Flexible clocking system (DCO, VLO, LFXT, HFXT)
  • AES security encryption, ESI, etc.

 

2. Use steps

 

1. Development environment configuration

 

There are 3 commonly used development environments

 

a.CCS(Code Composer Studio)

 

ccs

b. IAR (IAR for MSP430)

 

iar for msp430

c. Keil has no official support for MSP430, and the user experience is not good, so this method is not recommended

 

2. Use of CCS

 

After installing CCS, you first need to set up a workspace space by yourself. It is recommended to create a folder under your disk with a relatively large space margin for storing each workspace, and create a new folder for each workspace under this folder. Folders for later use and organization.

 

For example, my E:CCS1 here is the workspace with 1 as the space name and built under the CCS folder

 

ccs workplace

 

It is also more convenient to switch workspaces

 

switch workplace

Here is an example of lighting two LED lights that everyone is most familiar with.

 

1. New Project

 

new ccs project

2. Select the chip model

 

select chip model

3. Set the project name (take adc as an example here, because there is already a project named led under my workspace)

 

adc

4. Click Finish, and a new project named adc will be created under your workspace.

 

finish

 

5. Operation Tips

Here is a way to quickly view the definitions of variables, function bodies, and header files: press the Ctrl key on the keyboard, and at the same time right-click the variable you want to view, you can quickly switch to the included header files. Functions are also available of.

 

6. Compile the project

Click the hammer-like button to compile the project. You can see that the project is compiled successfully and the led.out file is generated.

 

compile the project

 

7. Burning project

Connect the download usb cable, the usb interface can not only burn the project, but also send the serial port

 

select program to load

 

Click the button on the right of the hammer, select Select Program to Load, then click Browse Project, find the led.out generated under the led project, click OK to import, and then wait for the burning process to complete.

 

browse project

The code to light two LED lights is as follows:

 

#include

 

/**

* main.c

*/

 

void Initial_Led(void);

void led(void);

//************************************************** *******************************

//

// Blink the on-board LEDs.

//

//************************************************** *******************************

int main(void)

{

WDTCTL = WDTPW | WDTHOLD; // stop watchdog timer

Initial_Led();

led();

return 0;

}

 

void Initial_Led(void)

{

  P1DIR |= BIT0;       // Set the direction of P10 as output

P1OUT &= ~BIT0; // P10 output is 0, turn off LED1

 

  P9DIR |= BIT7;       // Set the direction of P97 as output

P9OUT &= ~BIT7; // P97 output is 0, turn off LED2

}

 

void led(void)

{

// Configure GPIO

  P1DIR |= BIT0;                 // Clear P1.0 output latch for a defined power-on state

  P1OUT |= BIT0;               // Set P1.0 to output direction

  P9DIR |= BIT7;                 // Clear P9.7 output latch for a defined power-on state

  P9OUT |= BIT7;               // Set P9.7 to output direction

  PM5CTL0 &= ~LOCKLPM5;           // Disable the GPIO power-on default high-impedance mode

                        // to activate previously configured port settings

while(1)

{

    P1OUT ^= BIT0;           // Toggle LED

P9OUT ^= BIT7;

__delay_cycles(100000);

}

}

 

 

  • What Knowledge should be Learned in Embedded Systems 2022
  • Top 10 MCUs Most Popular with Manufacturers in 2022

Hot Products

  • TMS320DM8168ACYG2

    Manufacturer: Texas Instruments

    IC DGTL MEDIA PROCESSR 1031FCBGA

    Product Categories: DSP

    Lifecycle:

    RoHS:

  • TMS320C6455DZTZA

    Manufacturer: Texas Instruments

    IC DSP FIXED-POINT 697FCBGA

    Product Categories: DSP

    Lifecycle:

    RoHS:

  • TMS320C6747BZKBD4

    Manufacturer: Texas Instruments

    IC DSP FIX/FLOAT POINT 256BGA

    Product Categories: DSP

    Lifecycle:

    RoHS:

  • TMS320C6748BZCEA3E

    Manufacturer: Texas Instruments

    IC DSP FIX/FLOAT POINT 361NFBGA

    Product Categories: DSP

    Lifecycle:

    RoHS:

Customer Comments

  • Looking forward to your comment

  • Comment

    Verification Code * 

Compare products

Compare Empty