digital I/O


Closed Thread
Results 1 to 4 of 4

Thread: digital I/O

  1. #1
    igeorge's Avatar
    igeorge Guest

    Default digital I/O

    Hello,
    I need to know what to write in a program at start to make all the ports on the chip 16f877 and 18f4620 digital I/O , and not analog or other special functions which might be embedded on the same pin

    Thank you
    Ion George

  2. #2
    beto's Avatar
    beto Guest


    Did you find this post helpful? Yes | No

    Default

    put this on top of your source file
    (analog disable)
    ADCON1 = $07

  3. #3
    igeorge's Avatar
    igeorge Guest


    Did you find this post helpful? Yes | No

    Default works

    Thanks Beto,
    What i shoud do for port E to make it digital too ?
    Thank you
    Ion george

  4. #4
    beto's Avatar
    beto Guest


    Did you find this post helpful? Yes | No

    Default

    this set all analog inputs to digital i/o mode, (also port E)

Similar Threads

  1. Digital Out on an A/D pin safe ?
    By mr.sneezy in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st January 2009, 23:48
  2. Replies: 4
    Last Post: - 24th January 2007, 23:20
  3. A/D versus Digital I/O
    By dallennn in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 11th November 2006, 05:31
  4. Digital IC Tester
    By precision in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th September 2006, 04:38
  5. 16F877 universal PCB with I/O module
    By cupajoe in forum Schematics
    Replies: 12
    Last Post: - 3rd September 2005, 14:39

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