non-inverting 2400 baud


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898

    Default

    You need to set the idle level first at the top of your program, then send your data.

    For true mode, your serial output must be set high, for inverted, it's low.

    T2400, N2400 are for SEROUT, all other numbers 396,16780 are for SEROUT2
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  2. #2
    Join Date
    May 2005
    Location
    Minnesota
    Posts
    31

    Smile That did the trick

    Well, between the T2400, SerOut vs SerOut2, setting the line high for true data, the problem has been resolved. Before each transmission I put the data line in a high state. Works fine. Thanks again to all for answering.

    B

  3. #3
    Join Date
    Jul 2003
    Posts
    2,358

    Default

    Winding back to the start of this thread, if your INPUT voltage is too low for a PIC, and it has Comparators, configure it as an Amplifier... you can receive Serial at 9600 Baud at MILIVOLT levels and the Comparator will happilly reconstruct 0-5v (and Invert it or not at your choice) which can then be read by SERIN, DEBUGIN or by a USART. Who needs a MAX232 anyway. A Comparator will do it all for you.

  4. #4
    Join Date
    May 2005
    Location
    Minnesota
    Posts
    31

    Default Good to know

    Hey Mel,

    Thanks for the additional information. I think it's too late for this project though. I have already spun the boards. My in/outs are on B.4 and B.5 of the 16F628a.

    B

  5. #5
    Join Date
    Jan 2009
    Location
    California, USA
    Posts
    323

    Default

    Quote Originally Posted by Melanie View Post
    Winding back to the start of this thread, if your INPUT voltage is too low for a PIC, and it has Comparators, configure it as an Amplifier... you can receive Serial at 9600 Baud at MILIVOLT levels and the Comparator will happilly reconstruct 0-5v (and Invert it or not at your choice) which can then be read by SERIN, DEBUGIN or by a USART. Who needs a MAX232 anyway. A Comparator will do it all for you.
    Heh. Now THAT's one of those things I'm gonna try and remember, because SOME day it's bound to come in handy for me!

    What a great idea!




    steve

Similar Threads

  1. A Serial GLCD 128x64 Simple Project
    By Oldspring in forum Off Topic
    Replies: 0
    Last Post: - 8th March 2010, 20:58
  2. PIC 18f1220 EUSART Baud Rate Cache Problem
    By wklose99 in forum Off Topic
    Replies: 3
    Last Post: - 15th April 2008, 00:39
  3. Auto Baud Rate Detection
    By mytekcontrols in forum Serial
    Replies: 10
    Last Post: - 31st October 2005, 02:17
  4. PIC12F675, accuracy of baud rate with Internal Oscillator
    By Chris Mayhew in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 31st August 2005, 22:41
  5. Baud Rate and Timing Calculator
    By picnaut in forum General
    Replies: 3
    Last Post: - 23rd January 2004, 16:48

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