element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Embedded and Microcontrollers
  • Technologies
  • More
Embedded and Microcontrollers
Blog MSPM0 interrupt messaging system
  • Blog
  • Forum
  • Documents
  • Quiz
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Embedded and Microcontrollers to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 13 Sep 2026 12:48 PM Date Created
  • Views 63 views
  • Likes 4 likes
  • Comments 5 comments
  • MSPM0L1105
  • MSPM0
  • easyL1105
  • VS Code
  • vscode
Related
Recommended

MSPM0 interrupt messaging system

Jan Cumps
Jan Cumps
13 Sep 2026
MSPM0 interrupt messaging system

You can handle MSPM0 interrupts via the traditional service request handler. But it also has a messaging system. With message handlers, you can route notifications from one peripheral to another.

In this example: react on a button click and toggle a LED. With the EasyL1105 kit.

image

This is TI's event_input_triggers_output example. SysConfig adapted to EasyL1105.

What does the project do?

  • When you press or release the user button, an trigger is generated. It's set up to send an event message.
  • The led pin is set up to toggle when it receives an event
  • result is that the led chan ges state when you push or release the user button. A manual blinky

All of this is configuration. There is no logic related to this on the C source.

image
image: excerpt from TI MSPM0 EVENT module introduction

Resources used:

LED 1 PA27
USER BUTTON PA16
Event channel

1

Resources not used: TI's project uses the clock tree. I've switched it off and use the default clock.

image
image source: EasyL1105 GitHub project

Button configuration

image

LED configuration

image

check Event

You don't have to set anything here. It's a result of configuring the button and LED GPIOs.

image

main

The code just sets the controller in a low power mode that allows execution of interrupts. All our logic is managed by the setup we just did.

#include "ti_msp_dl_config.h"

int main(void)
{
    SYSCFG_DL_init();

    /* Calling WFI after calling DL_SYSCTL_enableSleepOnExit will result in
     * only ISR code to be executed. This is done to showcase the device's
     * low power consumption when sleeping.
     */
    DL_SYSCTL_enableSleepOnExit();

    while (1) {
        __WFI();
    }
}

I designed this in VS Code, starting from the template project  MSPM0 project with VS Code, CMake and GCC - part 6: empty "template" project . That VS Code project is attached.

image

If you use Code Composer Studio, you can create the project from the New Project wizard. Both choices will work the same.

Thank you for reading.

VS Code project for EasyL1105: EasyL1105_event_input_triggers_output.zip

part of the EasyL1105 series. all posts

  • Sign in to reply
Parents
  • BigG
    BigG 2 days ago

    Oh wow, that's interesting. In event driven architectures this makes like so much easier.

    I'm fully into Zephyr RTOS at the moment and they have something similar, or at least I think it's similar, called zbus: docs.zephyrproject.org/.../index.html

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • BigG
    BigG 2 days ago

    Oh wow, that's interesting. In event driven architectures this makes like so much easier.

    I'm fully into Zephyr RTOS at the moment and they have something similar, or at least I think it's similar, called zbus: docs.zephyrproject.org/.../index.html

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube