Jump to content

Track group Leds are dual coulor? 2 more questions on changing din/out pinning


jrp
 Share

Recommended Posts

Hi Forum!

Finally i really have time to work on my seq, finally i´m getting somewhere.

Right now i´m soldering buttons and leds.

To match to my hardware i have decidet to use my own definition for the buttons and leds.

First of all: I can´t programm and i feel it´s really great how the setup.asm file is commented. Think i have understood almost everything, only few questions remain (sorry if these are answered elswhere, i didn´t really find it here or in the wiki):

LED_GROUP1 EQU (((11  -1)<<3)+    0) ; OPTIONAL! see CHANGELOG.txt

LED_GROUP2 EQU (((11  -1)<<3)+    2) ; assigned to pin 2 due to DUO LED

LED_GROUP3 EQU (((11  -1)<<3)+    4) ; assigned to pin 4 due to DUO LED

LED_GROUP4 EQU (((11  -1)<<3)+    6) ; assigned to pin 6 due to DUO LED

I thought the track group buttons are normal leds. Really confused now.

Next thing, If for example i change the dout pinning so that the play led is on pin 1 of shift register nr5 than this will of course interact witch the definition for the bpm display.

What do i do? Simply this?

; === BPM digits ===

;

; set to 1 or 2 to enable the 3 optional BPM digits

;    0: BPM digits disabled

;    1: digits with common cathode

;    2: digits with common anode

#define DEFAULT_BPM_DIGITS_ENABLED 0

;

; define the shift register to which the segments are connected (0=disabled)

#define DEFAULT_BPM_DIGITS_SEGMENTS 0

; define the shift register to which the common pins (cathodes or anodes) are connected (0=disabled)

#define DEFAULT_BPM_DIGITS_COMMON 0

;

3rd question:

If a din pin that has a function in the original design will be unused in my setup, what do i have to do?

Eg, in my design pin D4,5,6 of register 4 will be unused.

I will adjust this entry to my need anyway:

DIN_ENTRY SEQ_BUTTON_Solo, 4, 4

DIN_ENTRY SEQ_BUTTON_Fast, 4, 5

DIN_ENTRY SEQ_BUTTON_All, 4, 6

After that D4,5,6 will not be definened any more. Done?

Thanks, Jens

Link to comment
Share on other sites

  • 8 months later...

hi TK, i got the same "issue" with the dual color setup...i tried to use normal leds, they are reacting very strange, like , when i switch to track 3 then 3 leds lit up, T4-> 2 lit up...

is there a way and a "how to" to change the behaviour of the pinnings , so that they will behave like all other leds?...just to put single ones on there?...since im no programmer, but i learn

every day a bit more ;)

Link to comment
Share on other sites

Open the setup_mbseq_v3.asm file, and change following lines:


LED_GROUP1      EQU     (((11   -1)<<3)+    0) ; OPTIONAL! see CHANGELOG.txt
LED_GROUP2      EQU     (((11   -1)<<3)+    2) ; assigned to pin 2 due to DUO LED
LED_GROUP3      EQU     (((11   -1)<<3)+    4) ; assigned to pin 4 due to DUO LED
LED_GROUP4      EQU     (((11   -1)<<3)+    6) ; assigned to pin 6 due to DUO LED
[/code] to:
[code]
LED_GROUP1      EQU     (((11   -1)<<3)+    0) ; OPTIONAL! see CHANGELOG.txt
LED_GROUP2      EQU     (((11   -1)<<3)+    1) ; assigned to pin 1 for nuke's HW
LED_GROUP3      EQU     (((11   -1)<<3)+    2) ; assigned to pin 2 for nuke's HW
LED_GROUP4      EQU     (((11   -1)<<3)+    3) ; assigned to pin 3 for nuke's HW

thereareafter build a new .hex file and upload it

Best Regards, Thorstem.

Link to comment
Share on other sites

hey thanx a lot...but...did this allready...somehow

in my setup.asm it looks like (5 is the last Dout SR in my chain):

LED_GROUP1      EQU    (((5  -1)<<3)+    7) ;

LED_GROUP2      EQU    (((5  -1)<<3)+    0) ;

LED_GROUP3      EQU    (((5  -1)<<3)+    5) ;

LED_GROUP4      EQU    (((5  -1)<<3)+    6) ;

LED_TRACK1      EQU    (((5  -1)<<3)+    2) ;

LED_TRACK2      EQU    (((5  -1)<<3)+    1) ;

LED_TRACK3      EQU    (((5  -1)<<3)+    3) ;

LED_TRACK4      EQU    (((5  -1)<<3)+    4) ;

...due to my pcb layout...so i guess it must be something else...

what does the max SR (1-16) meant to do?...since i got 17 SRs in total...5 DOUTs and 12 DINs

should it be 12 ´cause the longest chain is 12? or 17 (in total)?

maybe its only a terminition thing...i´ll go try it out...post you afterwards... ;)

Link to comment
Share on other sites

There are two shift register (SR) chains, one for "DIN SRs" (each MBHP_DINX4 module is stuffed with 4 SRs), and one for the "DOUT SRs" (each MBHP_DOUTX4 module is stuffed with 4 SRs). Sometimes they are also called SRIO chains (Shift Register Input/Output chains)

SRs are counted from 1, the first SR is the register which is directly connected to the core.

Hope this helps. Here a table which could help even more to determine the SR and pin number:

http://www.midibox.org/dokuwiki/doku.php?id=home:mbhp:module:din_dout_pin_list

Best Regards, Thorsten.

Link to comment
Share on other sites

heya...there was something wrong with my pcb...maybe terminition or so...did a new one, assembled it all and now it works as aspected...yoohoo...thank u very much for great support from your side on this...next time i´ll better check triple ;))

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

×
×
  • Create New...