Jump to content

Recommended Posts

Posted

Hi,

I'm running a pot direct to the core  and I'm also using apps such as ain64_din128_dout128_v2_0

I'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?

Posted

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_UnMuxed

to 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...