SERIN2/SEROUT2 - first data received is always garbage


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Re: SERIN2/SEROUT2 - first data received is always garbage

    Slightly off topic, is this only true for SERIN2 / SEROUT2, and not applicable when using HSERIN / HSEROUT and the dedicated hardware /PINS on a PIC. I've always tend to use PICs with serial ports and used the excellent PIC MultiCALC tool by mister_e ( http://www.picbasic.co.uk/forum/showthread.php?t=4994 ) to give me the defines.

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default Re: SERIN2/SEROUT2 - first data received is always garbage

    Depends if you use it directly on RS-232 bus or with a driver which is actually an inverter.

    Bus should stay at the predefined idle state which is -12 Volts meaning that TTL logic level of the controller is at High (3 or 5 volts).

    So, the answer is yes, either Serout or Hserout.

    But if you drive directly the RS-232 bus, TTL should be reversed in the Serout2 setup and Hserout should only be used if there is a special setting in the PIC's UART that reverses the TTL state.

    Hope this is not too complicated.

    Ioannis

Similar Threads

  1. '[HD44780] Controller received data whist busy' error while simulating
    By financecatalyst in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 15th February 2014, 09:54
  2. Replies: 2
    Last Post: - 15th December 2012, 01:19
  3. display received data
    By NURULHAIZA in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 12th May 2010, 06:03
  4. serin2/serout2
    By tazntex in forum Serial
    Replies: 14
    Last Post: - 19th September 2008, 22:01
  5. Serin2/ Serout2
    By Armadus in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 25th June 2008, 00:02

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