Fetch the repository succeeded.
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).
Sign in to post a comment
Repository Comments ( 0 )