Re: Direct access to the UART?
- From: "Ole" <ole@xxxxxxxxxx>
- Date: Fri, 11 Aug 2006 12:53:27 +0200
I understand why you are curious to know why I'm looking for such a complex
solution :-) - the reason is that I have to sync to different devices - one
of them which I can control and the other which is absolutely out of my
control: 2000 characters are send to me each second without any kind of
handshaking etc.
Thank you very much for your time and help - it is highly appreciated. I
will take a closer look at your suggestion and try it out.
Best regards
Ole
"Valter Minute" <v_a_l_t_e_r.m_i_n_u_t_e@xxxxxxxxxxxxx> wrote in message
news:Xns981C5FCBD9A83VALTERMINUTE@xxxxxxxxxxxxxxxx
"Ole" <ole@xxxxxxxxxx> wrote in
news:OsCWiqKvGHA.1808@xxxxxxxxxxxxxxxxxxxx:
[...]
I've been thinking of creating the IST and ISR in a normal dll
(have already one dll running using hardware intr 11 doing some
ISA bus readings and writings - work fine).
You need 2 DLLS, one for the IST (a streaming I/O driver could be a
good solution) and one for the ISR that will be loaded by the kernel
(you need to set the K attribute in your bib file IIRC).
You can load it using LoadIntChainHandler and exchange data using
KernelLibIoControl. If you need to keep jitter under 10us check that
your platform can activate a very high priority IST (0?) within this
time range using ILTIMING. If you use this clock to collect data or
something like that you may do the collection and buffering inside
the ISR, returning SYSINTR_NOP, and process the data inside an IST
that is called (by returning the correct SYSINTR) only when a full
buffer is available.
The idea of
configuring the UART to generate an interrupt sounds great, but is
there any code example available that handle on that?
I don't think so, since usually people that use UARTs care about the
data :)
You may set-up the UART for the needed speed using the 16550 driver
as sample, then you can set it up to generate an IRQ when there is a
new character in the rx FIFO or when a character has been received.
May I ask why you choosed such a complex way to receive a clock?
(feel free to reply "mind you own businness") :)
--
Valter Minute
(the reply address of this message is invalid)
(l'indirizzo di reply di questo messaggio non è valido)
.
- References:
- Direct access to the UART?
- From: Ole
- Re: Direct access to the UART?
- From: Valter Minute
- Re: Direct access to the UART?
- From: Ole
- Re: Direct access to the UART?
- From: Valter Minute
- Re: Direct access to the UART?
- From: Ole
- Re: Direct access to the UART?
- From: Valter Minute
- Direct access to the UART?
- Prev by Date: Exception due to IssueIsocTransfer function
- Next by Date: Re: Exception due to IssueIsocTransfer function
- Previous by thread: Re: Direct access to the UART?
- Next by thread: Re: Direct access to the UART?
- Index(es):
Relevant Pages
|
Loading