Jump to content

MB64e Encoders


Digineural

Recommended Posts

I'm having a little difficulty understanding the importance of some defines in the the MB64e application

I 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 Advise

Dan

Link to comment
Share on other sites

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?

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