element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
Test & Tools
  • Technologies
  • More
Test & Tools
Blog Programmable Electronic Load - RTOS Config
  • Blog
  • Forum
  • Documents
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Test & Tools to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Jan Cumps
  • Date Created: 10 Oct 2020 8:08 AM Date Created
  • Views 525 views
  • Likes 1 like
  • Comments 0 comments
  • ti_rtos
  • electronoc_load
  • posix
Related
Recommended

Programmable Electronic Load - RTOS Config

Jan Cumps
Jan Cumps
10 Oct 2020

This blog documents focuses on the RTOS approach for the electronic load that Robert Peter Oakes, jc2048 and Jan Cumps designed.

image

 

  • CCS 8 with MSP432 compiler TI v 16.12.0.STS or >
  • TI-RTOS for MSP43X, any SimpleLink version

 

 

RTOS Tasks overview

 

TaskPriorityVitalStackArgument0 (schedule)Comments
threadHeartBeat1

no

1024

1000pulse led as visual clue of RTOS health
threadUART10no1024

0

Managed by Semaphore SEM_uart_rx

react on incoming traffic on UART. Send to SCPI lib.
threadDisplay10no20481000updates LCD display according to schedule
threadADC10no10241000samples according to schedule
threadDAC10no1024

0

Managed by QUEUE_NAME_DAC

reacts on a mail message to set the DAC output value
threadControl15no51210000

experimental: if a control strategy (e.g.: constant voltage) needs adjustment at regular times, this task will call that function at scheduled time.

As not needed by constant current strategy (feedback handled by the hardware), this is now scheduled conservative. It's up to later control strategies to adapt the schedule to the own needs...

threadInputEnable10no1024

0

Managed by QUEUE_NAME_INPUTENABLE

reacts on a mail message to enable or disable the input
threadTemperatureOverProtection10no5121000over-temperature watchdog

 

 

RTOS Semaphore overview

 

SemaphoreScopeTypeCommentFunctions
SEM_uart_rxlibrary: uart_implbinary

halts the UART read task until char receive interrupt.

This avoids polling. The UART read functionality takes no processor time unless it receives data.

wait: threadUART()

release: UART00_IRQHandler()

 

RTOS Event and MailBox overview

 

QueueMessage  countCommentFunctions
QUEUE_NAME_DAC1

halts the DAC read task until an mbDAC message arrives.

This avoids polling. The DAC functionality takes no processor time unless it receives a message.

wait: threadDAC()

send: eloadRawSetDac()

QUEUE_NAME_INPUTENABLE1
halt the Input Enable task until an mbInputEnable message arrives.

wait: threadInputEnable()

send: eloadInputEnable()

  • Sign in to reply
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