Digineural Posted June 12, 2006 Report Share Posted June 12, 2006 I'm having a little difficulty understanding the importance of some defines in the the MB64e applicationI understand that the following is setting shift registers 5-8 to be used for encoders 1-16.[pre]MIOS_ENC_PIN_TABLE ;; encoders 1-16 ;; SR Pin Mode ENC_ENTRY 5, 0, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 1 ENC_ENTRY 5, 2, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 2 ENC_ENTRY 5, 4, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 3 ENC_ENTRY 5, 6, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 4 ENC_ENTRY 6, 0, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 5 ENC_ENTRY 6, 2, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 6 ENC_ENTRY 6, 4, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 7 ENC_ENTRY 6, 6, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 8 ENC_ENTRY 7, 0, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 9 ENC_ENTRY 7, 2, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 10 ENC_ENTRY 7, 4, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 11 ENC_ENTRY 7, 6, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 12 ENC_ENTRY 8, 0, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 13 ENC_ENTRY 8, 2, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 14 ENC_ENTRY 8, 4, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 15 ENC_ENTRY 8, 6, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 16[/pre]However I'm not quite sure what is being defined here[pre]#define DEFAULT_DIN_SR_PIN_01_08 2#define DEFAULT_DIN_SR_PIN_09_16 3#define DEFAULT_DIN_SR_PIN_17_24 1#define DEFAULT_DIN_SR_PIN_25_32 4#define DEFAULT_DIN_SR_PIN_33_40 8#define DEFAULT_DIN_SR_PIN_41_48 10#define DEFAULT_DIN_SR_PIN_49_56 11#define DEFAULT_DIN_SR_PIN_57_64 12[/pre]Should this defined before the encoders or can this be left out? Please AdviseDan Quote Link to comment Share on other sites More sharing options...
TK. Posted June 12, 2006 Report Share Posted June 12, 2006 Hi Dan,you will find my answer here: http://www.midibox.org/dokuwiki/doku.php?id=midibox64eBest Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
Digineural Posted June 16, 2006 Author Report Share Posted June 16, 2006 I'm having a wee bit of trouble with the encoders still. :-\ My current MB64e (really 16 encoders) is only semi functional as I was able to get only the menu bottons working on the first DINX4 board. Shift registers 2-4 have nothing connected yet. On the second DINX4, I have 16 encoders from SmashTV. I have tried various encoder defines and I cant get them to work at all. I double checked my boards and the voltages and connections are ok. My current setup is:[pre]MIOS_ENC_PIN_TABLE ;; encoders 1-16 ;; SR Pin Mode ENC_ENTRY 5, 0, MIOS_ENC_MODE_DETENTED2 ; V-Pot 1 ENC_ENTRY 5, 2, MIOS_ENC_MODE_DETENTED2 ; V-Pot 2 ENC_ENTRY 5, 4, MIOS_ENC_MODE_DETENTED2 ; V-Pot 3 ENC_ENTRY 5, 6, MIOS_ENC_MODE_DETENTED2 ; V-Pot 4 ENC_ENTRY 6, 0, MIOS_ENC_MODE_DETENTED2 ; V-Pot 5 ENC_ENTRY 6, 2, MIOS_ENC_MODE_DETENTED2 ; V-Pot 6 ENC_ENTRY 6, 4, MIOS_ENC_MODE_DETENTED2 ; V-Pot 7 ENC_ENTRY 6, 6, MIOS_ENC_MODE_DETENTED2 ; V-Pot 8 ENC_ENTRY 7, 0, MIOS_ENC_MODE_DETENTED2 ; V-Pot 9 ENC_ENTRY 7, 2, MIOS_ENC_MODE_DETENTED2 ; V-Pot 10 ENC_ENTRY 7, 4, MIOS_ENC_MODE_DETENTED2 ; V-Pot 11 ENC_ENTRY 7, 6, MIOS_ENC_MODE_DETENTED2 ; V-Pot 12 ENC_ENTRY 8, 0, MIOS_ENC_MODE_DETENTED2 ; V-Pot 13 ENC_ENTRY 8, 2, MIOS_ENC_MODE_DETENTED2 ; V-Pot 14 ENC_ENTRY 8, 4, MIOS_ENC_MODE_DETENTED2 ; V-Pot 15 ENC_ENTRY 8, 6, MIOS_ENC_MODE_DETENTED2 ; V-Pot 16[/pre]Is there something else that I need to do to get them to work? Quote Link to comment Share on other sites More sharing options...
TK. Posted June 16, 2006 Report Share Posted June 16, 2006 Just to be sure: did you already test the encoder and DINX4 module connections?Details can be found here: http://www.midibox.org/dokuwiki/doku.php?id=din_moduleBest Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
Digineural Posted June 16, 2006 Author Report Share Posted June 16, 2006 I'll take a stab at it when I get home from work. Thanks Quote Link to comment Share on other sites More sharing options...
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.