Re: Direct access to the UART?



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)


.



Relevant Pages

  • Re: Direct access to the UART?
    ... (have already one dll running using hardware intr 11 doing some ... You may set-up the UART for the needed speed using the 16550 driver ... new character in the rx FIFO or when a character has been received. ... (l'indirizzo di reply di questo messaggio non è ...
    (microsoft.public.windowsce.platbuilder)
  • Re: UARTS that generate an interrupt if bit 9 = 1 ? (for RS485 protocol)
    ... > non-zero 9th bit indicates that the character is a control character. ... do in a microprocessor UART -- it just isn't done in the PC UART:(. ...
    (comp.arch.embedded)
  • Re: Got UART Working!!! need syntax help with using ascii/buffer scheduling.
    ... composition techniques you know and love. ... after the clock edge. ... in the UART that says "send a character". ...
    (comp.arch.fpga)
  • REVIEW/ACRA: Superfreaks # 9-13
    ... So, I finally got around to reading last month's batch of SUPERFREAKS, ... hard on Martin for the transparency of some of his character analogues. ... Now, during this, we get a personal B-plot with goofy Edward courting ... And that's control. ...
    (rec.arts.comics.creative)
  • Re: wide screen text mode?
    ... Is there a reason it *must* be DOS text mode? ... attribute color control. ... With a script or a long novel, each character can be assigned a custom ... pasted 4 such screens together to get a screen that is 1212x800. ...
    (comp.os.msdos.programmer)

Loading