Jump to content

adding stuff to the sid setup?


Recommended Posts

Guest opiumx
Posted

Is it possible to add anything to the sid module and core? I am going to have the simple control unit, but Id like to add 8 pots, is that possible or would I need another core?

Posted

As the buttons and encoders go into a DINX, you would need an AINX for the pots. So you will need another firmware, which also reads out the pots.

You dont need another core, but another firmware.

Guest opiumx
Posted

So I would have to figure out how to program the firmware or wait for a new firmware.... Hmm.... If anyone knows anything about this, or has example code, it would help. Thanks

Posted

Hi,

you could control the CC parameters directly via pots in the following way: in sid_ain.inc you can insert a routine which branches to several routines depending on the moved pot. The routines have to forward the pot value to the CC handler by calling the SID_CCIN_Set routine.

A simple example for one pot only:

USER_AIN_NotifyChange
      ;; get 7-bit value of pot #0
      movlw      0x00
      call      MIOS_AIN_Pin7bitGet
      
      ;; forward value to the CC handler
      
      ;; it expects: CC parameter number in WREG
      ;; CC parameter value in MIOS_PARAMETER1, so:
      
      movwf      MIOS_PARAMETER1      ; save 7-bit value in MIOS_PARAMETER1
      movlw      0x10            ; control CC #10h == Transpose V1/V2/V3
      call      SID_CCIN_Set      ; call function

      return                  ; and exit AIN handler

there are three examples in the download section which describe how more pots can be handled. And maybe one of the next SID firmware release will provide another example...

Best Regards, Thorsten.

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...