Continue to Site

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
 

Correct (when data are coming continuously).
But if the UART has buffer capability, MCU can service it less often .
Regards

Z
 
one bit takes 1/9600 s= 0.00014 s
8+1+1=10 bits takes 10x1/9600=1.04 ms
so you'r rigth !
 
u r writ what controller u r using ?
 
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.
 
if a sw UART is used, then it will take some processor time and probably a dedicated timer.
 
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
 

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
 

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

Back
Top