Hello,
Can someone help me with solving the following problem when pogramming my midibox?
I’ve managed to upload the bootstrap and the MIOS-OS. No complaints @ all.
Now I’m trying get upload my application to test if all of my 16 endless rotary encoders are working.
I’ve made the following changes in the mios.tables.inc
;; encoder entry structure
ENC_ENTRY MACRO sr, din_0, mode
dw (mode << 8) | (din_0 + 8*(sr-1))
ENDM
ENC_EOT MACRO
dw 0xffff
ENDM
MIOS_ENC_PIN_TABLE
;; encoders 1-16
;; SR Pin Mode
ENC_ENTRY 1, 0, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 1
ENC_ENTRY 1, 2, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 2
ENC_ENTRY 1, 4, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 3
ENC_ENTRY 1, 6, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 4
ENC_ENTRY 2, 0 MIOS_ENC_MODE_NON_DETENTED ; V-Pot 5
ENC_ENTRY 2, 2, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 6
ENC_ENTRY 2, 4, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 7
ENC_ENTRY 2, 6, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 8
ENC_ENTRY 3, 0, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 9
ENC_ENTRY 3, 2, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 10
ENC_ENTRY 3, 4, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 11
ENC_ENTRY 3, 6, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 12
ENC_ENTRY 4, 0, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 13
ENC_ENTRY 4, 2, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 14
ENC_ENTRY 4, 4, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 15
ENC_ENTRY 4, 6, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 16
;; encoders 17-32
ENC_EOT
ENC_EOT
Now only the first encoder gives a signal in MIOS but the other 15 don’t.
I’ve got a DIN module right @ the CORE @ pin 9 with 16 ALPS encoder to it.
I think my code isn’t ok but I can’t find the problem.
My final design contains 96 buttons, 16 encoders, 17 sliders and 38 leds. Which example from the ucapps-site should I use to re-write.
Is somebody help me programming this thingie?
thanx
echelon