8 data and parity using HSERIN, HSEROUT


Closed Thread
Results 1 to 3 of 3
  1. #1
    Smity42's Avatar
    Smity42 Guest

    Question 8 data and parity using HSERIN, HSEROUT

    Is it possible to set up 8E1 and/or 8O1 (8 data bits, 1 parity bit, 1 stop bit) using the hardware usart on a PIC16F88.

    There is a setting for SERIN2 and SEROUT2 that allows you to use these modes, but I would rather use the HSERIN and HSEROUT commands if possible.

    BTW i have Pro compiler... if it helps.

  2. #2
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166

    Default

    Smity42, Use the command DEFINE HSER2_BITS 9 to setup the hardware serial uart for 9 bit transmittions and then use DEFINE HSER2_ODD or HSER2_EVEN to set the parity state. Its all in the manual....

    Dave Purola,
    N8NTA

  3. #3
    Smity42's Avatar
    Smity42 Guest

    Default

    Hi dave,

    thanks for your help. I was looking at the HTML manual (http://www.melabs.com/resources/pbpmanual/) and it has no mention of the HSER_BITS define at all, and I have no idea where my printed manual has got to. So I checked the PDF one and found it. Thanks muchly

    Martin

Similar Threads

  1. AT/PS2 Keybord - PIC Interface?
    By Kamikaze47 in forum Code Examples
    Replies: 73
    Last Post: - 9th August 2009, 17:10
  2. Reading in Manchester code
    By brid0030 in forum Code Examples
    Replies: 0
    Last Post: - 10th March 2009, 22:55
  3. Is HSEROUT corrupting bit 7 ?????
    By Robert Wells in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 23rd October 2008, 17:26
  4. Even Parity
    By Andre_Pretorius in forum Serial
    Replies: 2
    Last Post: - 17th July 2007, 16:48
  5. Debug with parity?
    By cmolson in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 3rd December 2005, 01:23

Members who have read this thread : 1

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