Sign in

username:

password:



Not a member?

Search 68hc12



Search tips

Subscribe to 68hc12



68hc12 by Keywords

68HC1 | 812A4 | 9S12DP256 | Bootloader | CodeWarrior | D60A | Debugger | DP256 | ECT | EEPROM | EVB | Flash | HC1 | HCS12 | I2C | IAR | ICC1 | Interrupts | LCD | M68KIT912DP256 | MC9S12DP256 | MC9S12DP256B | Metrowerks | Motor | MSCAN | Multilink | PLL | Quadrature | SDI | SPI | Transceiver | XFC

Ads

Discussion Groups

Discussion Groups | 68HC12 | Delay between each transmission of RS232

Join our technical discussions about Freescale Microcontrollers: M68HC12. (Freescale Semiconductor is a Subsidiary of Motorola).

Delay between each transmission of RS232 - ly_haw - Jan 10 10:20:03 2008

Hi,

May I know how long a delay needed between each transmission by using
RS232? Beside that, how can I determine the delay period?

Thanks,.

yeehaw



(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )


RE : Delay between each transmission of RS232 - laloui derafa - Jan 10 10:39:59 2008

hello,
whos period? do you ask about baud rate?

ly_haw a =E9crit :
Hi,

May I know how long a delay needed between each transmission by using=20
RS232? Beside that, how can I determine the delay period?

Thanks,.

yeehaw

=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20

=20=20=20=20=20=20=20=20=20=20=20=20=20
---------------------------------
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Ma=
il=20

[Non-text portions of this message have been removed]

=20

=20


(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: RE : Delay between each transmission of RS232 - ly_haw - Jan 10 10:51:58 2008

Hi,

For RS232 transmission, is that we need to have a delay for each byte
we transfer? If yes, then how long should the delay be?

Thanks for reply.

yeehaw



(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

RE : Re: RE : Delay between each transmission of RS232 - laloui derafa - Jan 10 11:19:25 2008

Hi,
=20=20=20
The delay of transmission of the character is the ratio between the chara=
cter length and the bauderate in bits/sec.
=20=20=20
Sincerely yours.
=20=20=20
=20=20

ly_haw a =E9crit :
Hi,

For RS232 transmission, is that we need to have a delay for each byte=20
we transfer? If yes, then how long should the delay be?

Thanks for reply.

yeehaw

=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20

=20=20=20=20=20=20=20=20=20=20=20=20=20
---------------------------------
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Ma=
il=20

[Non-text portions of this message have been removed]

=20

=20


(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

RE: RE : Delay between each transmission of RS232 - jpdi - Jan 10 11:36:08 2008

No specific problem for RS-232... It's very easy.

It's a asynchronous protocol, so the receiver wait for
- a start bit (always one start bit, low),=20
- then 8 (or 9) bits of datas,=20
- then 1 or 2 stop bits (high).

When 9 bits of datas, this can be parity, or a 9th bit of data for other
usage.

Typically, when the receiver detect start bit (low), it waits for 1/2 bit
duration, then read 8 bits, waiting for each 1 bit duration, then wait 1 or
2 stops bits (high).
Because the receiver waits for start bit, it re-synchronies each byte.=20

If the stop bits aren=92t present, there is a frame error.

The configuration tells you all you need.
I explain :
For example 8 bits, 1 stop bit, that means :
1 bit LOW (the start bit)
8 bits of data
1 bit HIGH (the start bit)
1 bit LOW (the start bit)
8 bits of data
1 bit HIGH (the start bit)
.../...

That means here 10 bits transmitted for a byte.
So the delay between each byte is done with start and stop bits.

Of course, if the receiver have many things to do between 2 bytes, and isn'=
t
ready to receive, you will loss datas.=20
What is your receiver ?
At what speed do you want to work (baudrate) ?

Hope I've respond to your question.

Joel
> -----Message d'origine-----
> De=A0: 6...@yahoogroups.com [mailto:6...@yahoogroups.com] De la part =
de
> ly_haw
> Envoy=E9=A0: jeudi 10 janvier 2008 16:50
> =C0=A0: 6...@yahoogroups.com
> Objet=A0: Re: RE : [68HC12] Delay between each transmission of RS232
>=20
> Hi,
>=20
> For RS232 transmission, is that we need to have a delay for each byte
> we transfer? If yes, then how long should the delay be?
>=20
> Thanks for reply.
>=20
> yeehaw
>=20
>=20
>=20
>=20
>
=20


(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: RE : Delay between each transmission of RS232 - Benny - Jan 10 12:42:23 2008

Yeehaw, you don't have to create any delay, the communication is handled
by the MPU, you just have to monitor the status registers
Benny
------------------------------------------------------------------------
*RTS development Ltd
**
*
------------------------------------------------------------------------
ly_haw wrote:
> Hi,
>
> For RS232 transmission, is that we need to have a delay for each byte
> we transfer? If yes, then how long should the delay be?
>
> Thanks for reply.
>
> yeehaw
>
>
>



(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

RE: RE : Delay between each transmission of RS232 - jpdi - Jan 10 13:29:27 2008

Sorry, a litte mistake between start and stop...
Text below is OK.

Joel

> -----Message d'origine-----
> De=A0: 6...@yahoogroups.com [mailto:6...@yahoogroups.com] De la part =
de
> jpdi
> Envoy=E9=A0: jeudi 10 janvier 2008 17:24
> =C0=A0: 6...@yahoogroups.com
> Objet=A0: RE: RE : [68HC12] Delay between each transmission of RS232
>=20
> No specific problem for RS-232... It's very easy.
>=20
> It's a asynchronous protocol, so the receiver wait for
> - a start bit (always one start bit, low),
> - then 8 (or 9) bits of datas,
> - then 1 or 2 stop bits (high).
>=20
> When 9 bits of datas, this can be parity, or a 9th bit of data for other
> usage.
>=20
> Typically, when the receiver detect start bit (low), it waits for 1/2 bit
> duration, then read 8 bits, waiting for each 1 bit duration, then wait 1
> or
> 2 stops bits (high).
> Because the receiver waits for start bit, it re-synchronies each byte.
>=20
> If the stop bits aren=92t present, there is a frame error.
>=20
> The configuration tells you all you need.
> I explain :
> For example 8 bits, 1 stop bit, that means :
> 1 bit LOW (the START bit)
> 8 bits of data
> 1 bit HIGH (the STOP bit)
> 1 bit LOW (the START bit)
> 8 bits of data
> 1 bit HIGH (the STOP bit)
> .../...
>=20
> That means here 10 bits transmitted for a byte.
> So the delay between each byte is done with start and stop bits.
>=20
> Of course, if the receiver have many things to do between 2 bytes, and
> isn't
> ready to receive, you will loss datas.
> What is your receiver ?
> At what speed do you want to work (baudrate) ?
>=20
> Hope I've respond to your question.
>=20
> Joel
>=20
>=20
> > -----Message d'origine-----
> > De=A0: 6...@yahoogroups.com [mailto:6...@yahoogroups.com] De la par=
t
> de
> > ly_haw
> > Envoy=E9=A0: jeudi 10 janvier 2008 16:50
> > =C0=A0: 6...@yahoogroups.com
> > Objet=A0: Re: RE : [68HC12] Delay between each transmission of RS232
> >
> > Hi,
> >
> > For RS232 transmission, is that we need to have a delay for each byte
> > we transfer? If yes, then how long should the delay be?
> >
> > Thanks for reply.
> >
> > yeehaw
> >
> >
> >
> >
> >
=20


(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )

Re: Delay between each transmission of RS232 - theobee00 - Jan 10 20:36:13 2008

--- In 6...@yahoogroups.com, "ly_haw" wrote:
>
> Hi,
>
> May I know how long a delay needed between each transmission by using
> RS232? Beside that, how can I determine the delay period?

Few loose ends here, assuming you use modern gear, the actual serial protocol is handled by the hardware, you just have to watch the flags.

The problem is that when you have a heap of undetermined subs going around you might not be back in time to empty the latch if you are polling and lose the character.

That's why you normally handle RS232 in an interupt routine and a stash them in a circular buffer, that way you have a good chance to catch a transmission string without losing characters.

Especially when talking to MS shutters it is prudent not to assume it won't send another dozen characters after you send it an Xoff.

There are some worked routines in the files area here if you need them.
Cheers,

Theo



(You need to be a member of 68hc12 -- send a blank email to 68hc12-subscribe@yahoogroups.com )