Analog 627


Closed Thread
Results 1 to 4 of 4

Thread: Analog 627

  1. #1
    Join Date
    Oct 2005
    Posts
    34

    Default Analog 627

    Can I use port a 0-1 as analog inputs and the rest as digital output on the PIC16F62x? and how do I do it?
    You can't teach an old dog new tricks, but I'm always willing to try.

  2. #2
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default

    Had to reply just cuz I like your avaitar! But Also, You realize you don't have Analog Inputs so to speak, you have analog comparators. At least thats how I read the datasheet.

    As far as your original queston goes, I think yes, just set CMCON for the AN inputs you want, and then TRISA for outputs where you want
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  3. #3
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,614


    Did you find this post helpful? Yes | No

    Default

    Hi, Chris

    you even can use a digital input as an analog one ....

    with the RCTime function ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  4. #4
    Join Date
    Oct 2005
    Posts
    34


    Did you find this post helpful? Yes | No

    Default AD conversion

    Quote Originally Posted by cncmachineguy View Post
    Had to reply just cuz I like your avaitar! But Also, You realize you don't have Analog Inputs so to speak, you have analog comparators. At least thats how I read the datasheet.

    As far as your original queston goes, I think yes, just set CMCON for the AN inputs you want, and then TRISA for outputs where you want
    And I like yours, cncmachineguy no it is both I always use porta for AD conversion but I never tried it with only 2 ports as AD and the rest output see the lower down in the data sheet.
    You can't teach an old dog new tricks, but I'm always willing to try.

Members who have read this thread : 1

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