Jump to content

AIN direct to core


DavidBanner
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...