4Mhz Circuit with a 20Mhz PIC


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Default

    ... a long shot but try blinking RB0 instead of RC2 (and report back).
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  2. #2


    Did you find this post helpful? Yes | No

    Default

    I have moved my LED to RB0 and change my code, but not one of them are working now.
    Am I missing something?


    <code>
    &nbsp;&nbsp;Include "Modedefs.bas"

    &nbsp;&nbsp;DEFINE OSC 4 ' Set the Xtal frequency to 4mHz

    &nbsp;&nbsp;LEDPin VaR PORTB.0
    &nbsp;&nbsp;i var byte
    Main:
    &nbsp;for i = 1 to 10
    &nbsp;&nbsp;High LEDPin
    &nbsp;&nbsp;Pause 400
    &nbsp;&nbsp;Low LEDPin
    &nbsp;&nbsp;Pause 400
    &nbsp;next i
    end
    </code>

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Have you tried Oscillator setting on "HS"?
    Dave
    Always wear safety glasses while programming.

  4. #4


    Did you find this post helpful? Yes | No

    Default

    No
    I will try

  5. #5


    Did you find this post helpful? Yes | No

    Default

    I have set it to HS, but still nothing.

  6. #6
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    Attach the compiled .HEX file that you are programming into the PIC here. If there's a
    problem with your config settings, that makes it easy for someone to spot.
    Regards,

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

  7. #7


    Did you find this post helpful? Yes | No

    Default

    Bruce

    Attached the zipped hex file.

    Thank you very much for your time!
    Attached Files Attached Files

Similar Threads

  1. PIC backup power supply: switchover ???
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 18th April 2008, 17:05
  2. Circuit Diagram for interfacing AC to PIC IC?
    By wellyboot in forum Schematics
    Replies: 3
    Last Post: - 8th March 2008, 19:40
  3. Pic driven digital audio delay
    By skimask in forum Off Topic
    Replies: 12
    Last Post: - 19th April 2007, 20:42
  4. Circuit needed to allow a PIC to turn something on or off
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 12th October 2005, 21:17
  5. Serial Pic to Pic using HSER
    By Chadhammer in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th March 2005, 23:14

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