Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How long one charector will take in 9600baud ?

Status
Not open for further replies.

ScrewDriver

Newbie level 4
Joined
Jul 27, 2007
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
INDIA
Activity points
1,322
hello

How long it will take for one byte ( 1 start bit, No parity,1 stop bit) in 9600 baud?

As far as I understand it is (from some searches in google)
9600/(8+1+1) = 960 bytes/ second

So one byte will take 1000/960 ~ 1 millisecond.

So if interrupt enabled for serial port in a MCU and data is coming in 9600 baud ,serial interrupt will appear in 1 millisecond gap.

is this correct?
Thanks

SD
 

zorro

Advanced Member level 4
Joined
Sep 6, 2001
Messages
1,131
Helped
357
Reputation
712
Reaction score
298
Trophy points
1,363
Location
Argentina
Activity points
8,907
Correct (when data are coming continuously).
But if the UART has buffer capability, MCU can service it less often .
Regards

Z
 
Joined
Sep 3, 2007
Messages
853
Helped
66
Reputation
132
Reaction score
16
Trophy points
1,298
Activity points
0
one bit takes 1/9600 s= 0.00014 s
8+1+1=10 bits takes 10x1/9600=1.04 ms
so you'r rigth !
 

drbizzarow

Advanced Member level 1
Joined
May 24, 2006
Messages
416
Helped
25
Reputation
50
Reaction score
15
Trophy points
1,298
Activity points
3,653
u r writ what controller u r using ?
 

penoy_balut

Full Member level 2
Joined
Sep 8, 2007
Messages
148
Helped
26
Reputation
52
Reaction score
10
Trophy points
1,298
Activity points
1,943
Wrong.

USART has independent Receive Shift Register, when reception is complete it will then notify the processor by setting RCIF, if interrupt is enabled, it is the interrupt service routine that takes processor time not the serial data reception.
 

funnynypd

Banned
Joined
May 9, 2007
Messages
437
Helped
48
Reputation
100
Reaction score
25
Trophy points
1,308
Location
USA & Canada
Activity points
0
if a sw UART is used, then it will take some processor time and probably a dedicated timer.
 

ScrewDriver

Newbie level 4
Joined
Jul 27, 2007
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
INDIA
Activity points
1,322
penoy_balut said:
Wrong.

USART has independent Receive Shift Register, when reception is complete it will then notify the processor by setting RCIF, if interrupt is enabled, it is the interrupt service routine that takes processor time not the serial data reception.


My intention is to know the time available for the ISR to read data and then for the other routines to process it before the next one arrives in a hardware serial port peripheral.

it is 1 ms in 9600 baud !

SD
 

penoy_balut

Full Member level 2
Joined
Sep 8, 2007
Messages
148
Helped
26
Reputation
52
Reaction score
10
Trophy points
1,298
Activity points
1,943
of course 9600 baud is approx. 1 ms but it does not mean it will take 1 ms of your processor time (even a sw uart will not) or you only have 1 ms to process data, it depends on your programming style
 

sami123qa

Newbie level 4
Joined
Aug 21, 2005
Messages
6
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,313
8 bit for the character and 2 for starting and finish bits the total is 10

sense in 1 second 9600 bit can be transfered ,in ?? can 10 bit transfer
10/9600= 0.00104 sec
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top