Define osc 1


Closed Thread
Results 1 to 2 of 2

Thread: Define osc 1

  1. #1
    Join Date
    Oct 2005
    Location
    Loveland CO USA
    Posts
    83

    Default Define osc 1

    I am using PICs with slow internal oscillators.
    It appears to me that DEFINE OSC will not work below 3mhz.
    There are some instructions that will not work if DEFINE OSC is not working right. (PAUSE and SEROUT2)
    Because DEFINE OSC .032 will not work I use DEFINE OSC 3 with 32khz and use PAUSE 1 to get a “PAUSE 100”.
    How should I deal with 1mhz, 125khz or 32khz oscillators with PBP when using serial or pause instructions?
    Thanks!

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    The lowest frequency acknowledged by PBP is 3.579MHz (color burst crystal) OSC=3.
    Anything lower must be interpellated.

    For instance, at 1 mhz, a serial signal that would work at 9600 baud at 4Mhz, would act as 2400 baud with 1mhz.
    So setting a USART, or SERIN(2) to 9600 baud, will give 2400 baud.

    A PAUSE 100 would actually be PAUSE 400.

    Everything gets adjusted by, 4:1
    Just set OSC to 4, and adjust proportionately.

    .
    DT

Similar Threads

  1. Thermo 7 segments - little problem
    By fratello in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 27th July 2013, 07:31
  2. RS485 bus - starting probem
    By wurm in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th January 2010, 13:35
  3. 32 bit square root
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 6th May 2009, 03:37
  4. one line led light make image
    By bioul in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th February 2008, 12:19
  5. HSERIN doesn´t work
    By wurm in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th July 2007, 14:23

Members who have read this thread : 1

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