DavidBanner Posted December 6, 2006 Report Posted December 6, 2006 Hi,I'm running a pot direct to the core and I'm also using apps such as ain64_din128_dout128_v2_0I've got all the unused AINs grounded.When I move the pot I get the correct readings, however I'm getting the readings on multiple ins.I'm assuming this is because in have no AINX4 connected, so it's expecting a multiplexer response rather than a single pot. Am I correct?
Jidis Posted December 7, 2006 Report Posted December 7, 2006 Hi,Did you make the call for MIOS_AIN_UnMuxed (I'm usually in assembler)?If it isn't in that app, I guess you'd need to add something like call MIOS_AIN_UnMuxedto your main.asm or somewhere. You can see it in the USER_Init code in apps like the MB64, but there it uses an "if/else" because they have that DEFAULT_MUX_ENABLED user pref. I think all you'd need is that one call, but make sure you've got your number of pots or whatever else you need set correctly as well.Hope that helps,George
DavidBanner Posted December 7, 2006 Author Report Posted December 7, 2006 Hey George,Thanks for the reply - it also covered my next question!!I'm still testing all the hardward at the moment (long story) - I'll have a look through the code and set the UnMuxed ....
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now