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
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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 Open Drain IO duty cycle controlled by a timer
  • 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: 19 Nov 2025 7:08 PM Date Created
  • Views 69 views
  • Likes 3 likes
  • Comments 1 comment
  • MSPM0L1105
  • ccs
  • MSPM0
  • easyL1105
Related
Recommended

MSPM0 Open Drain IO duty cycle controlled by a timer

Jan Cumps
Jan Cumps
19 Nov 2025

The Texas Instruments MSPM0 microcontroller has a few open drain IOs. TI calls them ODIO. In this post, I show that they can be controlled by a timer. More specific: one of the MSPM0 PWM peripherals will control the duty cycle of an open drain IO, and dim an LED.

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

What does this project do?

It dims an LED. But what it actually tries to showcase: the 5V tolerant open drain IOs can directly be controlled from a timer.

Hardware resources

LED1 PA0 Led with 330R resistor in series
Powered by 5V
PWM_0 TIMG1 channel 0

one of the PWM channels
It directly drives PA0

The circuit is simple. A red LED with a 330Ohm resistor in series. When PA0's gate is driven high by one of the controller PWM peripherals, the current in this circuit, and through PA0's channel, will be around 6.9 mA.

I used the 5V of my EasyL1105 kit. If you use a LaunchPad: they have a 5V supply too.

image

Testing

Program the MSPM0LL05 with the attached CCS project code. If you have a debugger, you can do this from CCS. I've also provided a .hex firmware that can be used with shabaz ' bootloader utility.

Code highlights

It's TI's pwm_led_driver example. An LED dimmer demo. But I routed the PWM output to open drain pin PA0.

In SysConfig:

image

I usually show some code highlights in this section. But I didn't change TI's example. So skipping it in this post.

Have fun!

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

ccs project adapted to EasyL1105 (with bootloader compatible .hex firmware): pwm_led_driver_EasyL1105_20251119.zip

Related posts

  • Sign in to reply
  • DAB
    DAB 1 day ago

    Nice update Jan.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
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 © 2025 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.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube