• AVR Freaks

Hot!Sleep mode in PIC16LF

Author
beirao
New Member
  • Total Posts : 26
  • Reward points : 0
  • Joined: 2011/03/02 11:51:38
  • Location: 0
  • Status: offline
2020/04/01 03:32:40 (permalink)
0

Sleep mode in PIC16LF

Hi all,

I am using a PIC16LF19176 and I need put the PIC in sleep mode and wake from two situations: each timer interrupt and/or I2C Interrupt. However, in datasheet:
 
"
11.2.3.2 Peripheral Usage in Sleep Some peripherals that can operate in Sleep mode will not operate properly with the Low-Power Sleep mode selected. The Low-Power Sleep mode is intended for use with these peripherals:
• Brown-out Reset (BOR)
• Windowed Watchdog Timer (WWDT)
• External interrupt pin/interrupt-on-change pins
• Timer1 (with external clock source)
It is the responsibility of the end user to determine what is acceptable for their application when setting the VREGPM settings in order to ensure operation in Sleep.
Note: The PIC16LF19155/56/75/76/85/86 does not have a configurable Low-Power Sleep mode. PIC16LF19155/56/75/76/85/86 is an unregulated device and is always in the lowest power state when in Sleep, with no wake-up time penalty.
"
 
So, the PIC16LF is always in the lowest power state: only wake from BOR, WWDT, external interrupt or timer1? So, how I can wake from I2C interrupt? I tested, and PIC wakes with I2C interrupt, but in datasheet says that no, right?

Thank you!
#1

2 Replies Related Threads

    ric
    Super Member
    • Total Posts : 27652
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: offline
    Re: Sleep mode in PIC16LF 2020/04/01 03:36:57 (permalink)
    +1 (1)
    You never say, but you must mean you are acting as an I2C Slave, not a Master.
    I would assume the I2C SCL signal would also wake you up.
     

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #2
    beirao
    New Member
    • Total Posts : 26
    • Reward points : 0
    • Joined: 2011/03/02 11:51:38
    • Location: 0
    • Status: offline
    Re: Sleep mode in PIC16LF 2020/04/01 03:54:33 (permalink)
    0
    You are right, sorry. PIC16LF is I2C Slave.
    #3
    Jump to:
    © 2020 APG vNext Commercial Version 4.5