Abstract
Measuring and controlling durations of events in the outside world is a key requirement for real-time systems.
Coverage includes the Watchdog timer to improve robustness, timer modules 0 through 3 characteristics and configuration, together with their interaction with the Enhaced Capture/Compare/PWM (ECCP) modules to measure the time an external event occurs, to generate precise event durations or to control the action of a peripheral device, such as a motor, using pulse width modulation. Also discussed is the interaction of these time-related modules with the interrupt system to give real-time capabilities.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
The same can happen as a result of software bugs.
- 2.
As in a Window’s® PC.
- 3.
Other approaches typically are based on a retriggerable monostable.
- 4.
Early PIC18 devices, such as the PIC18F452, had an 8-bit Postscaler; as did earlier families.
- 5.
In earlier families, the Option register OPTION_REG was used to configure Timer 0, the WDT module and more besides.
- 6.
The PIC24 family have up to nine additional timers.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2010 Springer-Verlag London Limited
About this chapter
Cite this chapter
Katzen, S. (2010). Time Is of the Essence. In: The Essential PIC18® Microcontroller. Computer Communications and Networks. Springer, London. https://doi.org/10.1007/978-1-84996-229-2_13
Download citation
DOI: https://doi.org/10.1007/978-1-84996-229-2_13
Publisher Name: Springer, London
Print ISBN: 978-1-84996-228-5
Online ISBN: 978-1-84996-229-2
eBook Packages: Computer ScienceComputer Science (R0)