Abstract: This chapter explores the counting and timing needs in the embedded environment and develop capabilities to meet those needs. While counting remains the underlying technique, it is its timing function that emerges as the predominant activity. The chapter explores enhanced counter/timer structures. Each new counting or timing technique is introduced alongside a description of the hardware that enables it to happen. The PIC 16F873A has three timers: Timer 0, Timer 1, and Timer 2. The PIC mid-range Timer 0 is limited by being only 8 bits. Timer 2 is built directly on the concepts of Timer 0 but has a number of important differences. First of all, it is 16-bit. It is made up of two 8-bit registers, TMR1H and TMR1L. These are special function registers (SFRs), which in the usual way are readable and writeable. Timer 0 and Timer 1 can readily be used to generate a clock tick because both can produce an interrupt on overflow. The 16F87XA Timer 2 is a simple 8-bit device. It is driven only from the internal oscillator and no external input is possible. .
Publication Year: 2007
Publication Date: 2007-01-01
Language: en
Type: book-chapter
Indexed In: ['crossref']
Access and Citation
AI Researcher Chatbot
Get quick answers to your questions about the article from our AI researcher chatbot