AnsweredHot!PIC16LF1508 Power consumption

Author
AlbertAC
New Member
  • Total Posts : 5
  • Reward points : 0
  • Joined: 2018/11/05 09:05:43
  • Location: 0
  • Status: offline
2018/11/06 08:20:10 (permalink)
0

PIC16LF1508 Power consumption

Hello there,
 
Quick question. I ordered some PIC16LF1508 samples to check if it can serve us as a candidate for a low-power application due to its low current consumption.
 
Currently, without any peripheral and without any code (except system initialization from MCC generator), the microchip consumes around 200 uA @ 1.8 V (no other devices are connected to the microchip).
 
The clock used is the INTOSC --> FOSC --> 31KHz_LF.
 
What I am doing wrong that I can't achieve the lower current consumption provided by the datasheet and by other users in this forum? I come from another microcontroller environment from other manufacturers and I don't know what to "touch".
 
(I have searched an answer in the forum before posting, but I didn't find an answer).
 
Thank you very much in advance.
 
 
#1
Jim Nickerson
User 452
  • Total Posts : 5847
  • Reward points : 0
  • Joined: 2003/11/07 12:35:10
  • Location: San Diego, CA
  • Status: online
Re: PIC16LF1508 Power consumption 2018/11/06 08:48:22 (permalink)
0
Maybe the data sheet has some hints.

 

Attached Image(s)

#2
coffee critic
Super Member
  • Total Posts : 350
  • Reward points : 0
  • Status: offline
Re: PIC16LF1508 Power consumption 2018/11/06 08:51:09 (permalink)
0
Based on table 29-2, what specification are you trying to meet?  Refer to the parameter number. 
 
It helps if you post you code.  Please use code tags. 

n_*$
#3
mbrowning
Just a Member
  • Total Posts : 1284
  • Reward points : 0
  • Joined: 2005/03/16 14:32:56
  • Location: Melbourne, FL
  • Status: offline
Re: PIC16LF1508 Power consumption 2018/11/06 09:06:03 (permalink) ☼ Best Answerby AlbertAC 2018/11/06 10:08:07
+1 (1)
Note that operation is spec'd from 1.8 to 3.6V, so if you are using a 1.8V regulator you will be violating that spec on half your units. Annoying, but this is why I've never operated any PIC at 1.8V.
 
The initialization that you haven't shown matters. At 1.8V with LFINTOSC, supply current is spec'd at 58uA max (2.3uA typical). But any floating IO pin could cause that much leakage by itself. Ensure all pins are outputs, or have pullup/down resistors. Also, any peripherals like BOR will draw some current.
 
I've done a number of micropower designs with PICs and I've always been able to get datasheet numbers, but it isn't trivial. Flux on the PCB can cause leakage, floating pins cause leakage, electrolytic caps will leak for a long time after voltage is applied.

Oh well - there's always next year
#4
AlbertAC
New Member
  • Total Posts : 5
  • Reward points : 0
  • Joined: 2018/11/05 09:05:43
  • Location: 0
  • Status: offline
Re: PIC16LF1508 Power consumption 2018/11/06 09:20:29 (permalink)
0
Thank you very much for your reply and your time ^^.
The specification is the D015 @ 1.8V.
 
The code is:
/**
  Generated Main Source File

  Company:
    Microchip Technology Inc.

  File Name:
    main.c

  Summary:
    This is the main file generated using PIC10 / PIC12 / PIC16 / PIC18 MCUs

  Description:
    This header file provides implementations for driver APIs for all modules selected in the GUI.
    Generation Information :
        Product Revision : PIC10 / PIC12 / PIC16 / PIC18 MCUs - 1.65.2
        Device : PIC16LF1508
        Driver Version : 2.00
*/

/*
    (c) 2018 Microchip Technology Inc. and its subsidiaries.
    
    Subject to your compliance with these terms, you may use Microchip software and any
    derivatives exclusively with Microchip products. It is your responsibility to comply with third party
    license terms applicable to your use of third party software (including open source software) that
    may accompany Microchip software.
    
    THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER
    EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY
    IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS
    FOR A PARTICULAR PURPOSE.
    
    IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
    INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND
    WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP
    HAS BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO
    THE FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL
    CLAIMS IN ANY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT
    OF FEES, IF ANY, THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS
    SOFTWARE.
*/

#include "mcc_generated_files/mcc.h"


/*
                         Main application
 */
void main(void)
{
    // initialize the device
    SYSTEM_Initialize();
    
    
    // When using interrupts, you need to set the Global and Peripheral Interrupt Enable bits
    // Use the following macros to:

    // Enable the Global Interrupts
// INTERRUPT_GlobalInterruptEnable();

    // Enable the Peripheral Interrupts
// INTERRUPT_PeripheralInterruptEnable();

    // Disable the Global Interrupts
    //INTERRUPT_GlobalInterruptDisable();

    // Disable the Peripheral Interrupts
    //INTERRUPT_PeripheralInterruptDisable();

    while (1)
    {
        // Add your application code
        
    }
}
/**
 End of File
*/

 
SYSTEM_Initialize() function is generated with the MCC generator and sets all pins as outputs tied to VDD. Also sets the clock to the param specified by D015.
 
Thank again ^^
#5
AlbertAC
New Member
  • Total Posts : 5
  • Reward points : 0
  • Joined: 2018/11/05 09:05:43
  • Location: 0
  • Status: offline
Re: PIC16LF1508 Power consumption 2018/11/06 09:22:05 (permalink)
0
What I would like to achieve is during operation mode.
Thank you very much ^^

Attached Image(s)

#6
AlbertAC
New Member
  • Total Posts : 5
  • Reward points : 0
  • Joined: 2018/11/05 09:05:43
  • Location: 0
  • Status: offline
Re: PIC16LF1508 Power consumption 2018/11/06 09:29:59 (permalink)
0
Thank you very much for your time ^^
In this case, I'm only testing the power consumption to view the technological feasibility for a prototype. The final solution will be powered from 2.2 to 3.3 V. In this case I'm powering the microchip with an SMU that provides 1.8 V exactly. But I understand what do you mean and I appreciate it ^^
 
In this case, for initialization I have used the MCC generator that sets the clock as I have described before and sets all pins as outputs tied to VDD. I have not configured any peripheral so (maybe wrongly) I supose that they are turned off.
 
Finally, microchip is nither solder in a PCB nor placed in a breadboard. Is floating only hangs from the wires that I use to power it. I think I must fight a little more , hehe.
 
Thank again for your time ;)
#7
coffee critic
Super Member
  • Total Posts : 350
  • Reward points : 0
  • Status: offline
Re: PIC16LF1508 Power consumption 2018/11/06 09:45:12 (permalink) ☄ Helpfulby AlbertAC 2018/11/06 10:08:26
+1 (1)
In your case set all the pins to output and turn off the ANSEL bits.  This should get fairly close to the numbers specified in table 29-2.  This table should be your only reference, not the cover sheet. 

n_*$
#8
AlbertAC
New Member
  • Total Posts : 5
  • Reward points : 0
  • Joined: 2018/11/05 09:05:43
  • Location: 0
  • Status: offline
Re: PIC16LF1508 Power consumption 2018/11/06 10:07:52 (permalink)
0
Finally, I have achieved a 2.7 uA consumption.
Thanks to your reply. It was the BOR and the 1.8 V.
Without the BOR, the consumption is 2.7 uA at 1.8V. Meanwhile, with BOR is 200 uA at 1.8 V.
BUT, BOR enabled at 2V goes to 8 uA.
 
It's exactly the problem that you told. Thank you very much! ^^
 
(And it would be nice that Microchip changes the minimum VDD spec to a level where the BOR don't reset the device).
#9
Jump to:
© 2019 APG vNext Commercial Version 4.5