Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sg200x:trm:pwm: 寄存器有关通道的描述问题。 #112

Closed
unicornx opened this issue May 8, 2024 · 3 comments
Closed

sg200x:trm:pwm: 寄存器有关通道的描述问题。 #112

unicornx opened this issue May 8, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request SG200X

Comments

@unicornx
Copy link
Collaborator

unicornx commented May 8, 2024

image

pwm 寄存器中的 0/1/2/3 应该指的是一组 pwm 中的四个通道吧。这里用 PWM0/PWM1/PWM2/PWM3 感觉很容易和 pwm 控制器的代号混淆。

建议pwm 章节的描述修改如下:

  • 芯片具备 4 个 pwm 控制器,。pwm 控制器的命名为 PWM0 / PWM1 / PWM2 /PWM3
  • 每个 pwm 控制器管理 4 个通道, 所以一共是 16 个 通道,或者说 16 路 PWM 信号输出。参考 SG2002_CV181xC__PINOUT_V0.1_CN.xlsx 的定义,这 16 路 PWM 信号输出可以命名为 PWM[0] ~ PWM[15] , 来和控制器的 PWM0 / PWM1 / PWM2 /PWM3 以示区别。
  • 寄存器描述中 PERIOD0 / PERIOD1 /PERIOD2 /PERIOD3 实际指的是某一个控制器中的4 路 PWM 信号,假如是 PWM0,则对应的是 PWM[0]/PWM[1]/PWM[2]/PWM[3], 假如是 PWM1,则对应的是 PWM[4]/PWM[5]/PWM[6]/PWM[7] .。。。
@unicornx
Copy link
Collaborator Author

#117 has been raised for this fix.

@unicornx
Copy link
Collaborator Author

merge #99 here to track together.

@unicornx
Copy link
Collaborator Author

#117 merge 了,close this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request SG200X
Projects
None yet
Development

No branches or pull requests

2 participants