Guest opiumx Posted May 8, 2003 Report Posted May 8, 2003 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? Quote
pay_c Posted May 8, 2003 Report Posted May 8, 2003 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. Quote
Guest opiumx Posted May 8, 2003 Report Posted May 8, 2003 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 Quote
TK. Posted May 10, 2003 Report Posted May 10, 2003 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. Quote
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.