I found the problem:

The clock to the ADC was off. It needs to be switched on using the
correct PCKEN bit.
In the source posted, it looks as if the ADC clock got confused with the
DAC clock: The comment indicates that the ADC clock is switched on where
the DAC clock, but not the ADC clock is switched on.

Philipp

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to