4Mhz Circuit with a 20Mhz PIC


Closed Thread
Results 1 to 16 of 16

Hybrid View

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

  2. #2
    Join Date
    Sep 2007
    Posts
    32


    Did you find this post helpful? Yes | No

    Default

    I think this code was compiled using the MicroCode Studio Plus ICD Compile. It won't run in the PIC unless there is an ICD connection to the PC.

    If you intended to run the code without the ICD, find the "normal" compile/program buttons in MicroCode Studio Plus. Don't use ICD Compile or ICD Compile And Program unless you have the ICD connection hooked up.
    Charles Leo
    microEngineering Labs, Inc.
    http://melabs.com

  3. #3


    Did you find this post helpful? Yes | No

    Default

    I think this code was compiled using the MicroCode Studio Plus ICD Compile
    Thank you Charles_Leo, you are correct, it's been a while since I last use this software so I was a bit rusty.

    Joe S., I have added your code and everything is working now
    CCP1CON = 0 ' DISABLE CAPTURE COMPARE MODULE
    TRISC = %00000000 ' SET ALL PORT C TO OUTPUTS
    Thank you very much!!!

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