16F676 Help?


Closed Thread
Results 1 to 6 of 6

Thread: 16F676 Help?

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by vicce
    in the place (pull-up) portb to configure for porta
    There's no Pull-up on PORTA. Must use external one wich is always the best pratice... well IMHO.

    AND PIC16F676 have internal comparator on PORTA, as i thought, so you must add
    CMCON=7
    to the top of your code
    CMCON=7, click,CMCON=7, click,CMC, click,CMCON, click,CMCON=7, click...

    AND, the last one, ADCON1, is not the one you need to set A/D channel. You need to set ANSEL
    <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=406&stc=1">
    Attached Images Attached Images  
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    Mar 2005
    Location
    Iowa, USA
    Posts
    216


    Did you find this post helpful? Yes | No

    Exclamation

    Quote Originally Posted by mister_e
    There's no Pull-up on PORTA. Must use external one wich is always the best pratice... well IMHO.
    Although I agree an external pull-up is better....
    TFM states...."Each of the PORTA pins, except RA3, has an individually configurable weak internal pull-up."
    Last edited by rhino; - 5th August 2005 at 05:31.

Similar Threads

  1. Unable to set fuses on 16F676
    By Megahertz in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 19th January 2012, 18:21
  2. PortA.2 on a 16F676
    By ardhuru in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 10th April 2007, 13:59
  3. SEROUT workaround for 16F676
    By rkeene0517 in forum Code Examples
    Replies: 0
    Last Post: - 12th February 2006, 03:39
  4. Using 16f676 with comms
    By Peter1960 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 28th October 2005, 20:01
  5. "Write" with 16F676
    By Jrocci in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 16th December 2003, 17:38

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