jrp Posted August 19, 2008 Report Share Posted August 19, 2008 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.txtLED_GROUP2 EQU (((11 -1)<<3)+ 2) ; assigned to pin 2 due to DUO LEDLED_GROUP3 EQU (((11 -1)<<3)+ 4) ; assigned to pin 4 due to DUO LEDLED_GROUP4 EQU (((11 -1)<<3)+ 6) ; assigned to pin 6 due to DUO LEDI 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, 4DIN_ENTRY SEQ_BUTTON_Fast, 4, 5DIN_ENTRY SEQ_BUTTON_All, 4, 6After that D4,5,6 will not be definened any more. Done?Thanks, Jens Quote Link to comment Share on other sites More sharing options...
jrp Posted August 27, 2008 Author Report Share Posted August 27, 2008 Looks like i solved this one myself, wasn´t that hard. If there is a button in the design that i don´t use than i just set it to sr 0.Still not sure why the track group leds are supposed to be dual colour. Quote Link to comment Share on other sites More sharing options...
TK. Posted August 27, 2008 Report Share Posted August 27, 2008 I connected dual colour LEDs to the DOUT register, but only use the green LEDs.Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
nuke Posted May 22, 2009 Report Share Posted May 22, 2009 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 learnevery day a bit more ;) Quote Link to comment Share on other sites More sharing options...
TK. Posted May 22, 2009 Report Share Posted May 22, 2009 Open the setup_mbseq_v3.asm file, and change following lines:LED_GROUP1 EQU (((11 -1)<<3)+ 0) ; OPTIONAL! see CHANGELOG.txtLED_GROUP2 EQU (((11 -1)<<3)+ 2) ; assigned to pin 2 due to DUO LEDLED_GROUP3 EQU (((11 -1)<<3)+ 4) ; assigned to pin 4 due to DUO LEDLED_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.txtLED_GROUP2 EQU (((11 -1)<<3)+ 1) ; assigned to pin 1 for nuke's HWLED_GROUP3 EQU (((11 -1)<<3)+ 2) ; assigned to pin 2 for nuke's HWLED_GROUP4 EQU (((11 -1)<<3)+ 3) ; assigned to pin 3 for nuke's HWthereareafter build a new .hex file and upload itBest Regards, Thorstem. Quote Link to comment Share on other sites More sharing options...
nuke Posted May 25, 2009 Report Share Posted May 25, 2009 hey thanx a lot...but...did this allready...somehowin 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 DINsshould 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... ;) Quote Link to comment Share on other sites More sharing options...
TK. Posted May 25, 2009 Report Share Posted May 25, 2009 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_listBest Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
nuke Posted May 26, 2009 Report Share Posted May 26, 2009 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 ;)) 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.