Searching \ for '[PIC] PIC24F Uart Stop Bits' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/microchip/devices.htm?key=pic
Search entire site for: 'PIC24F Uart Stop Bits'.

Exact match. Not showing close matches.
PICList Thread
'[PIC] PIC24F Uart Stop Bits'
2011\11\22@001807 by Steve Maroney

flavicon
face

Dear Gang,

I'm setting  U1MODEbits.STSEL  = 1 ,  but the uart the PIC24FJ96GA006 won't send out two stop bits, just one.

Any ideas ?


Regards,

Steve Maroney
Business Computer Support, LLC
504.904.0266  Office
504.914.4704 Mobile
866.871.7797  Fax

2011\11\22@093858 by William Bross

picon face
Steve,

How about 9 bit mode?  DMX512 protocol uses 2 stop bits.  Check out their app note:

<http://ww1.microchip.com/downloads/en/AppNotes/01076A.pdf>

Bill

Steve Maroney wrote:

{Quote hidden}

>

2011\11\22@151522 by Steve Maroney

flavicon
face
How did you know I was using the uart for DMX ?

Regards,

Steve Maroney
Business Computer Support, LLC
504.904.0266  Office
504.914.4704 Mobile
866.871.7797  Fax


{Original Message removed}

2011\11\22@152905 by Bob Ammerman

flavicon
face
> How did you know I was using the uart for DMX ?
>
>
> Regards,
>
> Steve Maroney

It is probably the most common use of 2 stop bits.

-- Bob Ammerman
RAm Systems

2011\11\22@154248 by William Bross

picon face
I didn't.  Just a lucky guess.   DMX is the only thing I know that uses 2 stop bits nowadays.

Steve Maroney wrote:

{Quote hidden}

>{Original Message removed}

2011\11\22@154634 by Steve Maroney

flavicon
face
Ahh ok. So is there any idea on why U1MODEbits.STSEL  = 1 wouldn't send out two stop bits ?


Regards,

Steve Maroney
Business Computer Support, LLC
504.904.0266  Office
504.914.4704 Mobile
866.871.7797  Fax


{Original Message removed}

2011\11\22@160736 by Isaac Marino Bavaresco

flavicon
face
You could simply set the UART to 9 bits and keep the 9th bit stuck at
level one.


Isaac


Em 22/11/2011 18:45, Steve Maroney escreveu:
{Quote hidden}

> {Original Message removed}

2011\11\22@163528 by IVP

face picon face
> So is there any idea on why U1MODEbits.STSEL  = 1 wouldn't
> send out two stop bits ?

63 points of interest

http://ww1.microchip.com/downloads/en/DeviceDoc/80471b.pdf

Item 39 mentions 2 stop bits, don't know if it applies to your set-up

Someone had a smurfing cheek to sign off on that IC

Jo

2011\11\22@235550 by Harold Hallikainen

face
flavicon
face

> I didn't.  Just a lucky guess.   DMX is the only thing I know that uses
> 2 stop bits nowadays.
>
> Steve Maroney wrote:
>
>>How did you know I was using the uart for DMX ?
>>
>>
>>Regards,
>>
>>Steve Maroney

Back when I was doing DMX at http://www.dovesystems.com, I transmitted DMX
using a timer interrupt. A DMX byte is 44us (4us per bit times 11 - start,
8 data, 2 stop). So I did a timer interrupt every 50us. This handled the
two stops and allowed me to synchronize the break with the data
transmission. Since Microchip uarts generally will not do an interrupt on
trmt, synching a break with the transmitted data is a pain. Using the
timer interrupt, you know that when the next interrupt comes along, the
last byte has been transmitted and it's safe to do the break. These were
18F projects, so I did the break by having the TXDATA pin on the PIC go
through a resistor to the RS485 transmitter. The input the the 485
transmitter was also connected to another pin on the PIC that was
tristated but the output latch set low. When i wanted to send a break, I'd
set TRIS for that pin low, pulling the input to the 485 transmitter low.
On the next timer interrupt (or two if I wanted a longer break), I'd
tristate the pin again.

Harold



-- FCC Rules Updated Daily at http://www.hallikainen.com - Advertising
opportunities available!
Not sent from an iPhone

More... (looser matching)
- Last day of these posts
- In 2011 , 2012 only
- Today
- New search...