18F4550 digital input


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mbw123 View Post
    "you're not using a MAX232 or at least a series resistor like the green manual says..."
    Uhhh...oops. I am using a 22K resistor on the transmitter line of the serial port but not on the RTS. What value of resistors should I place on the RTS line?

    Oh, and will my PIC work or is it completely trashed at this point?

    Thanks.

    -Mike
    22K is good...same voltages on RTS/CTS, but remember, it'll be inverted from normal RS-232 standards since it's not going thru a MAX-232.

    Pic might work, might not, easiest way to test is to write some code to make an LED on another port follow a switch put on the suspect port............then reverse the process...put an LED on the suspect port, put a switch on another port and make the LED follow that same switch.

  2. #2
    Join Date
    Jul 2006
    Posts
    76


    Did you find this post helpful? Yes | No

    Default

    Wow, thanks Skimask, it appears to be working. I put the 22K resistor in and it is recognizing the voltage from the serial port.

    The one thing I didn't understand is

    "it'll be inverted from normal RS-232 standards since it's not going thru a MAX-232."

    What will be inverted?

    -MW

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mbw123 View Post
    Wow, thanks Skimask, it appears to be working. I put the 22K resistor in and it is recognizing the voltage from the serial port.

    The one thing I didn't understand is

    "it'll be inverted from normal RS-232 standards since it's not going thru a MAX-232."

    What will be inverted?

    -MW
    Well, the RX and TX lines are inverted from RS-232 standards right because you're not using a MAX232?
    Which serial modes are you using? Probably an N2400 or some other inverted mode...
    Aren't the RTS and CTS signals upside-down from what you'd expect (if they were true RS-232 standard signals)?

  4. #4
    Join Date
    Jul 2006
    Posts
    76


    Did you find this post helpful? Yes | No

    Default

    "Which serial modes are you using"
    I am using the HSERIN and HSEROUT commands. I haven't actually tested it yet because I've been working on RTS and CTS. Do I need to use SERIN and SEROUT with the inverted modes like you suggested? Again I haven't tested any of this yet.

    The RTS and CTS appear to be correctly oriented, so I don't think I need to change that.

    Thanks.

    -Mike

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mbw123 View Post
    "Which serial modes are you using"
    I am using the HSERIN and HSEROUT commands. I haven't actually tested it yet because I've been working on RTS and CTS. Do I need to use SERIN and SEROUT with the inverted modes like you suggested? Again I haven't tested any of this yet.

    The RTS and CTS appear to be correctly oriented, so I don't think I need to change that.

    Thanks.

    -Mike
    It's all in the little green manual...

Similar Threads

  1. Sony LanC Program
    By l_gaminde in forum Code Examples
    Replies: 2
    Last Post: - 25th September 2009, 18:51
  2. How do I get 18f452 pin 10 set as digital input?
    By jessey in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 26th May 2007, 18:32
  3. Really slow digital input
    By mbw123 in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 30th March 2007, 04:06
  4. Timing input pulses and re-outputting them
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 28th February 2007, 01:50
  5. Analog pins for digital input
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 9th September 2005, 00:32

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