Pulsout Pic16F630 @16Mhz problem


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    Join Date
    Feb 2022
    Posts
    54


    Did you find this post helpful? Yes | No

    Default Re: Pulsout Pic16F630 @16Mhz problem

    I was wondering about the resolutions of the PAUSE command:

    With "DEFINE OSC 16", PAUSE 200 gives a delay of 50 msec
    The resolution here is therefore 250µsec per "unit".

    WITHOUT "DEFINE OSC 16", PAUSE 200 gives a delay of 200 msec
    The resolution here is 1msec per "unit".

    Right?

    --> What are legacy commands, I don't know this term

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


    Did you find this post helpful? Yes | No

    Default Re: Pulsout Pic16F630 @16Mhz problem

    i'm not sure what ver of pbp you are using but

    @ Device Pic16F630,HS_osc, wdt_off, pwrt_on,protect_off, mclr_off

    is old stuff, and probably case sensitive
    HS_osc looks doubtful
    if this line is incorrect then the actual config fuse you are setting is the pbp default not what you think.
    the default will be most likely use a 4mhz clock

    With "DEFINE OSC 16", PAUSE 200 gives a delay of 50 msec
    means the osc is 4mhz not 16, so your config line is incorrect

    The resolution here is therefore 250µsec per "unit".
    pause is always in mS but the actual osc must march the defined OSC

    What are legacy commands, I don't know this term
    commands that resemble old basicstamp style commands ,they are not as well integrated in the pbp operating environment
    Warning I'm not a teacher

Similar Threads

  1. PAUSEUS Using a 16MHz Oscillator
    By rsocor01 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 10th October 2013, 23:17
  2. weird pulsout problem
    By peterdeco1 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 30th January 2012, 20:39
  3. LCD works at 4MHz, but not 12 or 16MHz
    By Max Power in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 11th June 2008, 02:23
  4. Encoder Ht6p20b Using Pic16f630 Decoder
    By Lucas de Paula in forum General
    Replies: 1
    Last Post: - 18th April 2007, 06:36
  5. Can anyone help at getting OWIn & OWOut to work @ 16MHz?
    By jessey in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 24th January 2006, 12:08

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