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

    Then why do you need to run at 1MHz? You can achieve an average current consumption of <0.4mA by running the clock at 64MHz (according to data in your post) - far less than the 1.04mA that you are hoping to achieve.
    values are clear but how the sleep function is used is not clear in the posts


    if i run the cpu at 1mhz my current usage while on and standing by waiting to do its function are 1.04ma
    if i run the cpu at 64mhz my current usage while on and standing by waiting to do its function are 10.35ma


    in sleep mode ( waiting for power on button) it is 0.24ma no mater what

  2. #2
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default Re: USART2 setting for 1MHzCPU + 4PLL

    You are not using the features of the MCU correctly. Sleep current of the PIC18F46K80 is anything from 200nA (0.0002mA) to 10uA (0.01mA) depending on temperature and VDD (according to to the data sheet) and not the 0.24mA that you quoted.
    Name:  18F-SLEEP.jpg
Views: 9355
Size:  46.2 KB

    Run current at 64MHz is 7-12mA.
    Name:  18F-64MHz.jpg
Views: 9838
Size:  34.9 KB

    So, worst case, your average current will be <0.2mA even running the core at 64MHz. Here'e how:

    Active - running @ 64MHz = 12mA * 1/64 = 0.1875mA
    Sleeping = 0.01mA * 63/64 = 0.00984375mA
    Average = 0.1875 + 0.00984375 = 0.19734375 = < 0.2mA, less than 20% of what you are hoping to achieve at 1MHz.
    Last edited by rmteo; - 2nd July 2015 at 11:25.
    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, 19:59
  2. USBBufferSize setting
    By Ronald123 in forum USB
    Replies: 4
    Last Post: - 18th April 2008, 13:33
  3. Setting up the oscillator
    By J_norrie in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 2nd October 2007, 15:53
  4. setting up HPWM
    By sunny in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 22nd October 2006, 02:36
  5. setting register
    By volcane in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 19th April 2006, 23: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