USART2 setting for 1MHzCPU + 4PLL


Closed Thread
Results 1 to 33 of 33

Hybrid View

  1. #1
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: USART2 setting for 1MHzCPU + 4PLL

    AS further test i built another blank board last night , placed only the 3.3v regulator on , smoothing caps and the cpu
    programed the cpu with config , of 64mhz, shut down all services inside the cpu
    and did a loop of pause in the main ( eg do nothing
    the draw current was - 10ma


    if you able to get the figures you suggest in real world then please try cos i cant

    cheers

    Sheldon

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,644


    Did you find this post helpful? Yes | No

    Default Re: USART2 setting for 1MHzCPU + 4PLL

    and did a loop of pause in the main ( eg do nothing
    pause is not sleeping , the cpu is flatout doing nothing useful

  3. #3
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default Re: USART2 setting for 1MHzCPU + 4PLL

    Quote Originally Posted by longpole001 View Post
    AS further test i built another blank board last night , placed only the 3.3v regulator on , smoothing caps and the cpu
    programed the cpu with config , of 64mhz, shut down all services inside the cpu
    and did a loop of pause in the main ( eg do nothing
    the draw current was - 10ma

    if you able to get the figures you suggest in real world then please try cos i cant

    cheers

    Sheldon
    The figure you are seeing is exactly what the data sheet says, run current at 64MHz should be in the range of 7-12mA. Put the MCU to SLEEP and see if it goes down to <10uA range - if not then it is not in SLEEP mode.

    Then re-design your application such that it stays in SLEEP mode until it needs to do something useful. ONLY then should it wake and run at full (64MHz) speed, then immediately go back to SLEEP - no waiting in a delay for something to happen. As Richard said, waiting in a delay is not doing anything useful, it is just burning CPU cycles (at full speed and wasting power). This is the proper way to use the low power modes of any MCU and you should then be able to able to get the average run current down to the sub 0.2mA range for operation with coin cells.
    Last edited by rmteo; - 3rd July 2015 at 02:39.
    Why pay for overpriced toys when you can have
    professional grade tools for FREE!!!

Similar Threads

  1. Micrtochip AN1310 for USART2
    By cerr99 in forum mel PIC BASIC
    Replies: 1
    Last Post: - 27th May 2011, 18:59
  2. USBBufferSize setting
    By Ronald123 in forum USB
    Replies: 4
    Last Post: - 18th April 2008, 12:33
  3. Setting up the oscillator
    By J_norrie in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 2nd October 2007, 14:53
  4. setting up HPWM
    By sunny in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 22nd October 2006, 01:36
  5. setting register
    By volcane in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 19th April 2006, 22:46

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts