找回密码
 立即注册

QQ登录

只需一步,快速开始

打印 上一主题 下一主题
开启左侧

[M031] PID Control Operation in Fixed-point Format

[复制链接]
跳转到指定楼层
楼主
admin 发表于 2024-7-5 13:04:03 | 只看该作者 回帖奖励 |正序浏览 |阅读模式


  • Application: This example code uses the M031 series microcontroller (MCU) to realize PID control operation in fixed-point format.
  • BSP Version: M031_Series_BSP_CMSIS_V3.06.000
  • Hardware: NuMaker-M032SE V1.3
This PID example code does not require additional external hardware modules and can be executed by other NuMicro M0/M23 microcontroller (MCU).

The PID control is a common arithmetic operation used in feedback control system. The fundamental PID controller is consisted of proportional, integral and derivative terms. The 32-bit Cortex-M0/M23 processor, with built-in 32-bit multiplier and register shift function, is proper to do discrete-time PID control algorithm.

This example code implements the fixe-point arithmetic calculation in Q15.0 format, that is, the value range is in (-32768, 32767). User may refer to it to modify the code to meet different value requirement.

You can download the sample code at https://www.nuvoton.com/resource-downlo ... 2908065094
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 顶 踩
牛卧堂
回复

使用道具 举报

高级模式
B Color Image Link Quote Code Smilies |上传

本版积分规则

新唐MCU