Can anyone help at getting OWIn & OWOut to work @ 16MHz?


Results 1 to 10 of 10

Threaded View

  1. #4
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    I suspect you're not getting HSPLL setup/working properly. If it is, and you're defining the osc speed, then you won't need to adjust or tweak any timing.

    PBP does this for you automatically. That's the purpose of DEFINE OSC x.

    Try this with your LAB-X1 board. Set osc configuration jumper "A" to position 2-3. Remove the other two.

    Open the 18F452.INC file in your PBP directory, and change the following line.

    ;__CONFIG _CONFIG1H, _OSCS_OFF_1H & _XT_OSC_1H ; <-- comment out this line
    __CONFIG _CONFIG1H, _OSCS_OFF_1H & _HSPLL_OSC_1H ; Add this one directly below it

    Save the include file with the change.

    Now compile & run this on your X-1 board. The LED on D.0 should be blinking at 1/2S intervals.

    DEFINE OSC 16

    Main:
    HIGH PORTD.0
    PAUSE 500
    LOW PORTD.0
    PAUSE 500
    GOTO Main

    If it is, you should be ready to go.
    Last edited by Bruce; - 24th January 2006 at 00:48.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

Similar Threads

  1. High Resolution Timer & Speed Calculator
    By WOZZY-2010 in forum Code Examples
    Replies: 4
    Last Post: - 7th February 2010, 17:45
  2. STATUS re-curtain W
    By zugvogel1 in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 13th February 2005, 16:21
  3. help
    By zugvogel1 in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 9th February 2005, 21:42
  4. Need once your help one please
    By zugvogel1 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 9th February 2005, 21:33
  5. can i slowdown owin and owout
    By Eugen in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 29th January 2005, 23:17

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