代码拉取完成,页面将自动刷新
The PIC18F47Q10 features features timers with Hardware Limit Timer (HLT) and a 10-bit ADC with computation (ADCC) module. In this demo, uses TMR4 peripheral as a HLT in order to generate an interrupt and stop TMR2 that also stops the ADCC auto-conversion.
The following pin configurations must be made for this project:
Pin | Configuration |
---|---|
RA0 | Analog input for ADCC |
RE0 | Digital output (LED0) |
RC7 | Digital input as HLT trigger |
Timer2Period
period (100ms).DesiredThreshold
, and if above DesiredThreshold
, LED0 will be ON.MaxThreshold
and RC7 pin is pulled to GND for more than Timer4Period
(500ms), TMR4 will stop TMR2.This project showcases how easy it is to use the TMR4 of PIC18F47Q10 as HLT to generate an interrupt (like a WDT without reset).
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。