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

    so since pbp will only accept 3(3.88mhz) or 4 ( 4mhz) as the define osc , it means all the timed commands such as pause , pauseus , RCtime etc are 4 times longer than shown in code ??????????????
    if no define osc is given then it assumed to be 4mhz

    sort of sucks when u want go low power / osc for a chip

    btw in my application the current draw is as follows with only a osc speed change

    1mhz = 1.04ma - running , sleep mode = 0.24ma for all settings
    2mhz = 1.28ma - running
    4mhz = 1.6 ma - running
    8mhz = 2.23ma - running
    16mhz=3.47ma - running

    16mhz - 4mhz + ppl = 1.6ma
    32mhz - 8mhz + ppl = 5.96ma
    64mhz - 16mhz+ppl = 10.35ma

    when powering the device from a small coin battery and when you dont need the higher speed , 1mhz is a better option

    although0.56ma is not a lot between 1mhz and 4mhz it still is a waist when it not required to be so , just to satisfy PBP compile setting for 4mhz

    cheers
    sheldon

  2. #2
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default Re: USART2 setting for 1MHzCPU + 4PLL

    The proper way to do this (low power consumption for battery use) is to use the low power modes of the MCU and NOT to lower the clock speed.
    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