使用PSoC 3和PSoC Creator简化应用设计

  作者:胡泊 Cypress应用工程师 时间:2010-09-29来源:电子产品世界

  每当检测完一路PWM,通过设定控制寄存器CTRL_REG_Tach_Input_SW_1的数值,将多路器输出切换至下一路PWM输入,从而依次检测12路PWM的占空比,注意16路多路器的后4路没有使用,始终为低电平。图中CTRL_REG_Reset_1模块控制系统在需要时进行复位。该模块大部分功能都是基于硬件模块,软件中仅需在两个中断服务程序中读取响应的定时器计数值即可。

  5. 小结

  实际上,上述例子仅仅是PSoC®3和PSoC Creator的基本应用,PSoC®3的丰富资源和PSoC Creator良好的设计方法可以令设计者更快实现产品的功能,而不是深陷琐碎的技术细节之中。

  参考文献

  [1]. PSoC®3:CY8C38 Family Datasheet, Cypress Semiconductor Ltd.

  [2]. PSoC®3:CY8C32 Family Datasheet, Cypress Semiconductor Ltd.

  [3]. PSoC®3 Architecture Technical Reference Manual, Cypress Semiconductor Ltd.

  [4]. PSoC Creator: Timer Component Datasheet, Cypress Semiconductor Ltd.

  [5]. PSoC Creator: Interrupt Component Datasheet, Cypress Semiconductor Ltd.

1 2 3

关键词: Cypress PSoC3 占空比检测

加入微信
获取电子行业最新资讯
搜索微信公众号:EEPW

或用微信扫描左侧二维码

相关文章

查看电脑版