Re: Serial Timing

Bryan Armstrong <bryan.armstrong-6tN4nzCoH/[email protected]>
Newsgroups gmane.comp.hardware.microcontrollers.tini
Message-ID <[email protected]>
Theeraputh Mekathikom wrote:
>    I'm trying to send some voice data out from
> serial4. The voice data must be out for every 125 ns
> (8000Hz). But when I use normal method (i.e.
> OutputStream.write) The output is out continueusly. I
> couldn't control the serial out timing even though I
> call write() every 125 ns. It is appear to send data
> each 50Hz. Is it possible to controll that. Because I
> don't have any buffer at receiver.  

You could set up a native interrupt to send a byte out every 125 
milliseconds.  The TINI serial driver sends back to back bytes as fast 
as firmware and the UART will allow.  You cannot control the interbyte 
spacing.

-- 
--
Bryan Armstrong
bryan.armstrong-6tN4nzCoH/[email protected]


_______________________________________________
TINI mailing list
TINI-6tN4nzCoH/[email protected]
To UNSUBSCRIBE, edit your profile, or see list archives:
http://lists.dalsemi.com/mailman/listinfo/tini
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.