PIC16F917 - Not reading input


Closed Thread
Results 1 to 7 of 7

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by freddayz View Post
    What do you have A.7 connected to? >>>I have it connected to a GPIO which outputs 3.3VDC
    Well, that isn't going to be near enough voltage to connect into an RS232 port on a PC... A 5v signal is just barely enough, but seems to work in most cases. Either need to bump up to 5v or use a 3v-compatible MAX232-type chip in the middle.

    And the internal OSC may not be good enough for serial. What are you sending to? >>>I am sending to the com port on the PC, it outputs the message i want.
    Internal oscillators are sometimes accurate enough for serial communications, sometimes not. Best bet is to use an external oscillator.
    Last edited by skimask; - 15th July 2008 at 22:21.

  2. #2
    Join Date
    Feb 2008
    Posts
    6


    Did you find this post helpful? Yes | No

    Default

    I guess my question is not clear then...
    I am trying to program RA7 on the PIC16F917 as an input with no success all I read is 0

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    As Joe mentioned about the ADC.
    Take a look at this:
    http://www.picbasic.co.uk/forum/showthread.php?t=561
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. Sony LanC Program
    By l_gaminde in forum Code Examples
    Replies: 2
    Last Post: - 25th September 2009, 19:51
  2. floating A/D input
    By muddy0409 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 28th April 2009, 14:21
  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. Using LEDs as light sensors
    By skimask in forum Code Examples
    Replies: 3
    Last Post: - 30th December 2006, 23:19
  5. 16F88 reading Analog Input
    By thunderstrike44 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th August 2004, 23:41

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