Multiple LEDs and Time Coount


Closed Thread
Results 1 to 5 of 5

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

    http://www.picbasic.co.uk/forum/showthread.php?t=561
    Do not let the thread title fool you, your PIC has analog on PORTC also.
    Try a non analog pin or turn the ADC off and see what happens.
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    http://www.picbasic.co.uk/forum/showthread.php?t=561
    Do not let the thread title fool you, your PIC has analog on PORTC also.
    Try a non analog pin or turn the ADC off and see what happens.
    Data sheet sec4.1 . . . ANSEL and CMCON registers MUST be initialized to configure an analog channel as a digital input. Pins configured as analog inputs will read "0" .
    You have these registers to contend with:
    ADCON
    ADCON1
    ANSEL
    CMCON0
    CMCON1
    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. Hello, long time no post (ADC sample rate)
    By Jhong2 in forum General
    Replies: 0
    Last Post: - 14th April 2009, 05:13
  2. I don't understand this code!
    By Russ Kincaid in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 13th February 2008, 03:55
  3. Use of a PIC
    By Edwardo in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 22nd March 2007, 15:11
  4. help with 16f628a
    By thalia in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 3rd May 2006, 09:16
  5. Problem with intensity.. plz help
    By Srigopal007 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 7th October 2004, 18:25

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