Jump to content


Change Stop Bit (rs232)


3 replies to this topic

#1 Ragayaga

    Newbrie

  • Members
  • 2 posts

Posted 14 March 2006 - 07:18 PM

I'd like to know if there is any way to configure the stop bit and the parity bit using rs232_driver.h (in software implementation) and a PIC16F84.

The default configuration is:

1 Start bit
8 Data bits
1 Parity bit (odd, even)
1 Stop bit (this part is what I want to change to 2 stop bits for example)

I'd apreciate any example. :)


Thanks for all,

Paul Vicioso
Dominican Republic
Paul Vicioso
Dominican Republic

#2 c58_4311

    Regular

  • EstablishedMember
  • Pip
  • 61 posts

Posted 16 March 2006 - 06:41 PM

Dear Ragayaga,


Ragayaga, on Mar 15 2006, 12:48 AM, said:

I'd like to know if there is any way to configure the stop bit and the parity bit using rs232_driver.h (in software implementation) and a PIC16F84.

The default configuration is:

1 Start bit
8 Data bits
1 Parity bit (odd, even)
1 Stop bit (this part is what I want to change to 2 stop bits for example)

I'd apreciate any example.  :)


Thanks for all,

Paul Vicioso
Dominican Republic

<{POST_SNAPBACK}>




May be you can follow the examples in the boostbasic coloumn of product section of sourceboost website.

#3 asmallri

    Enthusiast

  • EstablishedMember
  • PipPip
  • 169 posts
  • Location:Western Australia

Posted 17 March 2006 - 01:27 AM

Ragayaga, on Mar 14 2006, 07:18 PM, said:

I'd like to know if there is any way to configure the stop bit and the parity bit using rs232_driver.h (in software implementation) and a PIC16F84.

The default configuration is:

1 Start bit
8 Data bits
1 Parity bit (odd, even)
1 Stop bit (this part is what I want to change to 2 stop bits for example)

I'd apreciate any example.  :)


Thanks for all,

Paul Vicioso
Dominican Republic

<{POST_SNAPBACK}>



The rs232_driver was written to emulate a PIC hardware UART. The hardware does not support 2 stop bits so the driver does not. However, you have the source code for the driver (rs232_driver.c). It can be modified relatively easily to generate two stop bits.
Regards, Andrew

Need a file system? http://www.brushelectronics.com/index.php?page=software
Home of Ethernet and SD/MMC Bootloader for PICs!!

#4 Ragayaga

    Newbrie

  • Members
  • 2 posts

Posted 17 March 2006 - 09:55 PM

I thought that there was a way to implement 2 stop bits using rs232_driver functions already.

It looks like I'll have to do some changes in this functions by myself.

Thanks for all...


Paul Vicioso
Dominican Republic
Paul Vicioso
Dominican Republic




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users