4Mhz Circuit with a 20Mhz PIC


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    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.

  2. #2


    Did you find this post helpful? Yes | No

    Default

    No
    I will try

  3. #3


    Did you find this post helpful? Yes | No

    Default

    I have set it to HS, but still nothing.

  4. #4
    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

  5. #5


    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

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


    Did you find this post helpful? Yes | No

    Default

    Hi Koossa,

    The good news is - config settings look fine. XT osc, WDT on, PWRT on, brownout on,
    LVP off, protection off. Looking good here if you're using a 4MHz external crystal.

    The bad news is - this code isn't anywhere near what you show above just trying to
    toggle an LED.

    It sets up the USART for 19,200bps at 4MHz, shoots out a single letter f, then sits & spins
    waiting for serial data input, in a loop watching the RCIF flag bit.

    Are you 100% sure you're actually programming the file you expect into your 877?

    The .HEX file you have attached is for sure not the one you show above trying to toggle
    an LED....;o}
    Regards,

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

  7. #7
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Hello Koossa,
    try adding this to your code:

    CCP1CON = 0 ' DISABLE CAPTURE COMPARE MODULE
    TRISC = %00000000 ' SET ALL PORT C TO OUTPUTS


    JS
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

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