Is it a good idea to use a usb-serial adapter for PPS? Yes, it is.
Hans Petter Selasky
hps at selasky.org
Tue Aug 20 11:50:58 UTC 2019
On 2019-08-20 13:38, Per Hedeland wrote:
>
> I'm sorry, I'm afraid I still don't really understand... The question,
> at least in my mind, was whether polling was done in a "strictly
> periodic" fashion, at most once per 125 us for USB 2.0 - or whether
> the host controller would poll "as fast as it could", which could
> result in a *much* higher polling rate.
That depends on the endpoint type. INTERRUPT endpoints poll regularly,
one time, every 125 us for example, when a job is queued. BULK endpoints
poll all the time, depending a bit on the HC in use.
Anyways, the computer is not notified of the completion before the HC is
generating an interrupt. This usually happens at some fixed point in
time. I.E. multiple completions can be joined into one HC interrupt. It
is the completion interrupt which notifies the software about the PPS event.
--HPS
More information about the freebsd-arm
mailing list