PIC microcontroller sleep low power debugging record

Publisher:czc天天Latest update time:2020-02-02 Source: eefocus Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Before executing the sleep() function, you can set the unused pins to analog input, high impedance mode.


ANSELAbits.ANSA4 = 1; //Before entering sleep, set the LED IO port to analog input

TRISAbits.TRISA4 = 1; 


If set to digital input, the power consumption will increase, about 40uA (single IO)


ANSELAbits.ANSA4 = 0; //Set to digital input (not desirable)

TRISAbits.TRISA4 = 1; 


PIC16F1508 has a voltage regulator control register. When VREGPM: voltage regulator power mode selection bit is set to 1, low power sleep mode is enabled during sleep.


Lowest current consumption in sleep mode and slow wake-up time


VREGPM=1; //Enable low power sleep


The measured power consumption is reduced by about 4uA.

Reference address:PIC microcontroller sleep low power debugging record

Previous article:PIC microcontroller AD framework
Next article:PIC MCU Hardware IIC Example

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号