Hello,
> We looked at the Marvell PDF documents from the TS-7800 page, and
> compared them to the source in ts7800ctl.c. We obviously are missing at
> least one key component to understanding because we weren't able to find
> anything in the sample source that seemed to match the documentation,
> except the string "TWSI" that appears in a few places. But, even it the
> source is accessing the Marvell, and we could figure out how to use set
> the timers to generate an interrupt that we could catch, it looks like
> the example functions for start/stop/read/write are WAY to 'sloppy' (in
> time) for use in setting a sub-millisecond timer, since they ignorantly
> use usleep(1) and usleep(100) all over the place when we all know that
> those may take as long as usleep(10000) (and any after the first almost
> certainly will take that long).
The ts7800ctl code only touches the TWSI(aka I2C) registers in the
Marvell. Timing is not critical for the code that uses the usleeps as
the ADC samples are buffered in RAM(in the FPGA). I've recently reworked
the ADC code and written more verbose documentation on the ADCs. If your
interested you can find my work in progress here
ftp://ftp.embeddedarm.com/tmp/7800_adc_update/. I'm not sure this
updated code will help you access the timers in the Marvell chip, but I
believe the document will help you to understand what the ts7800ctl code
does with regard to interfacing with the Marvell chip(e.g. it only uses
the TWSI bus to send and receive commands to a microcontroller).
--
Best Regards,
________________________________________________________________
Eddie Dawydiuk, Technologic Systems | voice: (480) 837-5200
16610 East Laser Drive Suite 10 | fax: (480) 837-5300
Fountain Hills, AZ 85268 | web: www.embeddedARM.com
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/ts-7000/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/ts-7000/join
(Yahoo! ID required)
<*> To change settings via email:
<*> To unsubscribe from this group, send an email to:
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|