首页| 行业标准| 论文文档| 电子资料| 图纸模型
购买积分 购买会员 激活码充值

您现在的位置是:团子下载站 > 电子元器件应用 > 使用ST62自动重载定时器产生脉宽调制(PWM)信号

使用ST62自动重载定时器产生脉宽调制(PWM)信号

  • 资源大小:80
  • 上传时间:2021-07-13
  • 下载次数:0次
  • 浏览次数:25次
  • 资源积分:1积分
  • 标      签: ST62 脉宽 调制

资 源 简 介

This note presents how to use the ST62 Auto-reload Timer (ARTimer) for the generation of a PWM signal tunable in frequency and duty cycle. As example, the generation of a 30kHz PWM signal with duty cycle proportional to an analog input voltage is presented.Auto-reload Timer descriptionThis timer is an 8 bit timer/counter with prescaler. It includes auto-reload PWM, capture and compare capability with one input and one output pins. It is controlled by the following registers (8 bit):- Mode Control Register (MC)- Status registers (SC0, SC1)- Load register (LR)- Incremental counter register (TC)- Compare register (CP)- Reload/Capture register (RC)It can also wake the MCU from wait mode and exit from stop mode if an external event is present on theinput pin. The prescaler ratio can be programmed to choose the timer input frequency FIN (see Table 1).
VIP VIP