Input problems


Closed Thread
Results 1 to 7 of 7

Thread: Input problems

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Thumbs up

    Chris is right on the money.

    You could simplify this even more with PORTA.0 = PORTB.0 and drop the IF
    statement altogether.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  2. #2
    Join Date
    Feb 2006
    Posts
    20


    Did you find this post helpful? Yes | No

    Default

    Hey guys, thanks for the ideas. Although what Chris said seems to make sense, I was able to run this code on a PIC16F88 with no problems at all. I also wrote a similar program that uses portc.4 as the input and ran it in the dark. Without the light on I could see the LED I had on the output light dimly when I brought the input high and turn off when I disconected the input. I am sure the LED was flickering and that is why it looked dim. I am not sure if this would also work on other I/O lines if I looked at them it the dark. I am now going to try your ideas and see what I get.
    Thanks again!!

  3. #3
    Join Date
    Feb 2006
    Posts
    20


    Did you find this post helpful? Yes | No

    Talking

    It worked!! thanks for the idea Chris. I am still not exactly clear on why it didn't work the first time but hey, it works now so no complaints. again thanks for all the help.

Similar Threads

  1. Input problems with 12F629?
    By achilles03 in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 24th April 2018, 07:25
  2. PIC18f2423 two 12bit adc input problems
    By Brandon in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 16th December 2007, 10:47
  3. Timing input pulses and re-outputting them
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 28th February 2007, 02:50
  4. Input problems with PortD on Pic16F874A
    By Petter in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 26th August 2006, 12:30
  5. Problems with variables
    By egberttheone in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 15th December 2004, 19:37

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