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

    How can you tell it's running at 4Mhz?

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


    Did you find this post helpful? Yes | No

    Default Re: Pulsout Pic16F630 @16Mhz problem

    from this post


    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".
    Warning I'm not a teacher

  3. #3
    Join Date
    Feb 2022
    Posts
    54


    Did you find this post helpful? Yes | No

    Default Re: Pulsout Pic16F630 @16Mhz problem

    Hi Richard,
    (The resolution at 16Mhz is theoretically 2.5µsec.)
    So if PULSOUT 100 gives me a pulse of 0.24 msec, the resolution here is 2.4µsec, which would indicate that the Peak is running at 16Mhz.
    No ?

  4. #4
    Join Date
    May 2013
    Location
    australia
    Posts
    2,653


    Did you find this post helpful? Yes | No

    Default Re: Pulsout Pic16F630 @16Mhz problem

    So if PULSOUT 100 gives me a pulse of 0.24 msec, the resolution here is 2.4µsec, which would indicate that the Peak is running at 16Mhz.
    sounds right.

    however
    if osc = 16mhz and define OSC 16 is set then pause 200 will pause 200mS
    if not then something is wrong , PULSOUT would not be my way to test osc speed.


    also code snippets are not meaningful in this situation at least until the chip is confirmed configured as intended

    do post entire code including config word in code tags to make it easy for anyone one interested in assisting
    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, 22:17
  2. weird pulsout problem
    By peterdeco1 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 30th January 2012, 19: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, 01:23
  4. Encoder Ht6p20b Using Pic16f630 Decoder
    By Lucas de Paula in forum General
    Replies: 1
    Last Post: - 18th April 2007, 05: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, 11: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