DavidBanner Posted December 6, 2006 Report Share 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? Quote Link to comment Share on other sites More sharing options...
Jidis Posted December 7, 2006 Report Share 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 Quote Link to comment Share on other sites More sharing options...
DavidBanner Posted December 7, 2006 Author Report Share 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 .... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.