Simple TTL input pin coding.


Closed Thread
Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Apr 2014
    Location
    OK
    Posts
    557


    Did you find this post helpful? Yes | No

    Default Re: Simple TTL input pin coding.

    pescador, "ANSELA = PORTA.5" != "TRISA.5 = 1 'make porta.5 input". You are setting your ANSELA SFR to either %00000000 or %00000001, depending on the state of PORTA.5. Neither will do what you want.
    Last edited by mpgmike; - 29th March 2022 at 12:39.

Similar Threads

  1. Using MCLR pin at Input
    By JakeMend in forum mel PIC BASIC
    Replies: 9
    Last Post: - 6th July 2017, 22:39
  2. Use any pin as tmr input?
    By jmgelba in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 11th October 2016, 20:50
  3. Mclr As Input Pin?
    By omid_juve in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 24th December 2007, 06:33
  4. Input pin help
    By Adrian in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 2nd July 2007, 09:35
  5. TTL input - 3rd states possible?
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 26
    Last Post: - 31st March 2007, 16:04

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