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?
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.
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
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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now