Direct PIC to PC without MAX232


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,154

    Default Re: Direct PIC to PC without MAX232

    Quote Originally Posted by Charlie View Post
    ..., I use an N-channel FET to do the inversion...
    Not P-channel?

    Robert

  2. #2
    Join Date
    Dec 2010
    Posts
    409

    Default Re: Direct PIC to PC without MAX232

    P-Channel devices are usually more expensive and have other design considerations, so I design 99% of the time with N-channel and have several devices rolling around my parts bin when I need one. It's 6 of one, a half dozen of the other. You might be able to save a little power by using one or the other, since a comms channel is usually idle a lot - I have not had a design where I needed to care about power and also needed a cheap comms interface, so I really have not thought it through.

  3. #3
    Join Date
    Oct 2006
    Posts
    13

    Default Re: Direct PIC to PC without MAX232

    About the protection of PIC input pin lets go remember that generally input pins already have positive and negative clamp diodes built in the chip. I have tested even without a series resistor but 470R will do the job. The great majority of legacy RS232 ports already are 0- 5v compatible for input and are current limited for output.

  4. #4
    Join Date
    Aug 2011
    Posts
    453

    Default Re: Direct PIC to PC without MAX232

    Here's a good example of the strange things that can happen when you get creative and choose not to pay attention to the specs...

    PIC16F1847 HFINTOSC Slow and Unstable

    Note that this guy WAS limiting the current with a series resistor.

  5. #5
    Join Date
    Mar 2008
    Posts
    16

    Default Re: Direct PIC to PC without MAX232

    Back to my original question:
    Turns out that the 12F1xxx family (and likely others) have an option to invert data from the TX/CK pin. The control is the SCKP bit (bit 4) in the BAUDCON register, described on page 279 of the 12F1822 data sheet.
    Last edited by swr999; - 23rd October 2014 at 21:34.

Similar Threads

  1. Send data PIC to PC
    By konter in forum Off Topic
    Replies: 6
    Last Post: - 25th December 2009, 22:04
  2. Replies: 67
    Last Post: - 8th December 2009, 02:27
  3. HSERIN & Interupts (aka controlling PIC programs from a remote PC)
    By HankMcSpank in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 17th June 2009, 14:46
  4. PIC18F4680 to PC via MAX232 (RS232 serial) no output
    By opticsteam1 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th April 2008, 20:39
  5. PIC and MAX232 in/out
    By The Master in forum Serial
    Replies: 10
    Last Post: - 29th March 2008, 20: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