Hi,
I can confirm this odd behavior. We have tried hard to find some workaround but
reboot is the only one that really helps. Although the internal A/D conversion
of 7800 is for basic sensing good enough we were forced to choose external A/D
converter (with additional cost and work).
Any hint how to reinitialize the AVR chip without reboot the whole 7800 is
highly appreciated.
Jiri
--- In "MusicalBoredom" <> wrote:
>
> I've been working with the 7800 and using the A/D conversion for a while. The
> majority of the time it works without flaw but if the startup code where the
> sampling is setup via TWI messages is called multiple times after a reboot I
> end up never being able to select the slave device properly and have to do a
> cold reboot to be able to initialize the AVR.
>
> Specifically, I get a 0xF8 response in the TWI status register after writing
> a START|TWSIEN to the TWI control register where I should be getting a START
> response back. After that, I never get ADC sample again. I have confirmed
> this behavior in the example program as well.
>
> Is there some way I can force a reset of the ADC at this point or reset the
> TWI controller? Has anyone else seen this problem and found a solution?
>
> Thanks In advance for your held,
>
> David Maynor
>
------------------------------------
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/
|