Hardware Limit Timer - Resets

The Hardware Limit Timer (HLT) can be reset by several selected peripheral outputs to prevent the Hardware Limit Timer (HLTMRx) register from matching the Hardware Limit Timer Period (HLTPRx) register and generating an output. In this manner, the HLT can be used as a hardware time limit to other peripherals.

The HLTMRx can be reset by one of several selectable peripheral sources:

  • CCP1 output
  • Comparator 1 output
  • Comparator 2 output
  • COGxFLT pin
  • COG1OUT0
  • COG1OUT1

The HLT can be reset by various external sources which are selected via the HLT External Reset Sources Select bits (HxERS <2:0>) in the HLT Control 1 (HLTxCON1) register. The edge sensitivity can also be selected with the HLTxCON1 register. High and low reset enables are selected with the Hardware Limit Timerx Rising Event Reset Enable (HxREREN) bit and Hardware Limit Timerx Failing Event Reset Enable (HxFEREN) bit, respectively. Setting the Hardware Limit Timerx Rising Edge Sensitivity (HxRES) and Hardware Limit Timerx Falling Edge Sensitivity (HxFES) bits make the respective rising and falling reset events edge sensitive. Reset inputs that are not edge sensitive are level sensitive.

HLTMRx resets are synchronous with the HLT clock. In other words, HLTMRx is cleared on the rising edge of the HLT clock after the enabled reset event occurs. If an enabled external reset occurs at the same time as a write occurs to the HLTMRx register, the write to the timer takes precedence and pending resets are cleared.

HLTxCON1: HARDWARE LIMIT TIMER CONTROL REGISTER 1

hlt4.png
hlt5.png

HLT Operation During Sleep

The HLT cannot be operated while the processor is in Sleep mode. The contents of the HLTMRx register will remain unchanged while the processor is in Sleep mode.

© 2024 Microchip Technology, Inc.
Notice: ARM and Cortex are the registered trademarks of ARM Limited in the EU and other countries.
Information contained on this site regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights.