Issues to be aware of when using PIC microcontroller TIMER1

Publisher:朝霞暮雨Latest update time:2016-11-03 Source: eefocusKeywords:TIMER1 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
1. When TMR1H and TMR1L are initialized, the prescaler will be automatically cleared.

2. When the register is written to TMR1H and TMR1L, the prescaler will be cleared. When TMR1 is in operation, writing to TMR1H or TMR1L value may write undesired values.

3. When TMR1 works in asynchronous counting mode, it cannot be used as the reference time for input capture or output capture of the CCP module.

4. During power-on reset (POR) or other reset, TMR1H and TMR1L retain their original values ​​and will not be reset to 0000H.

5. At power-on reset or power-off reset, the value of the control register T1CON will return to 00H, TMR1 will be turned off, and the prescaler ratio will be set to 1:1. The value of T1CON will not be affected during other resets.

6. If you want to return the contents of TMR1H and TMR1L to 00H during reset, you can use a program to do this, that is, turn off TMR1 first, and then clear TMR1H and TMR1L respectively.

Keywords:TIMER1 Reference address:Issues to be aware of when using PIC microcontroller TIMER1

Previous article:Simple Application of PIC Microcontroller ADC
Next article:PIC microcontroller AD converter programming method

Recommended ReadingLatest update time:2024-11-15 12:42

CC2530 bare metal programming series notes 2--Timer Timer1 mode program interrupt mode
The previous topic described the design of the timer Timer1 mode program using the query method. This article introduces the design of the timer Timer1 mode program using the interrupt method. The query method, as introduced in the previous article, is to continuously query whether the interrupt flag is set in the mai
[Microcontroller]
Microcontroller C language programming: TIMER0 and TIMER1 control strip LED
/* Name: TIMER0 and TIMER1 control the LED strip Description: Timer T0 controls the previous set of LED strips at a faster scrolling speed Timer T1 controls the next set of LED strips at a slower scrolling speed */ #include reg51.h #include intrins.h #define uchar unsigned char #define uint unsigned int
[Microcontroller]
Microcontroller C language programming: TIMER0 and TIMER1 control strip LED
PIC16F877A microcontroller (interrupt and timer Timer1)
1 Basic principles In the figure above, if an external crystal oscillator is connected to the left side of RC0, then T1OSCEN must be set to 1. The frequency of this external crystal oscillator is generally low. The lower the crystal oscillator frequency, the lower the power consumption. Why is an external cry
[Microcontroller]
PIC16F877A microcontroller (interrupt and timer Timer1)
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号