Jump to content

ain_example1 wrong pot


Guest Fractal

Recommended Posts

Guest Fractal

Hi,

 I am building a midibox (18F452), now I have the core and one AIN with 16 pots.

 I have burned the bootloader, then I uploaded the MIOSv1.6 and all worked OK, it sends and recive Syex menssages.

 Then I upload the ain_example1 and it worked, but instead of reading pot 0 it is reading pot 7.

 I have checked the wiring and also I modified the ain_example1 to send the pot number too and it send 0.

 Could somebody help me  to know what I am doing wrong ??

Thanks

Link to comment
Share on other sites

Guest Fractal

Well, welll, well

I have found it, it was the application ain_example1.

This part, as it says I don't have to use de AIN modules, so I can connect the pots directly to the core module.

      ;; don't use the AIN 4051 multiplexers
      call      MIOS_AIN_UnMuxed
I have change it to
      ;; using AIN module with 4051 multiplexers
      call      MIOS_AIN_Muxed

and all worked smoothly.

Sorry for this silly question, I would try to read more carefully the next time.

Thanks

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...
×
×
  • Create New...