js Posted November 20, 2004 Report Share Posted November 20, 2004 Last year I godt mid Sid up and running and now id like to extend it with another sid. Also i´d like to make a control panel for it. I like to make a step B version of the control panel with the leds conneted to J5 but with a 2x40 lcd instead og the 2x20 whown on the schematics here: http://www.ucapps.de/midibox_sid_cs/2x20_enc_multi_w_j5.pdfIs the possible without too much programming-knowledge or sould i buy a 2x20 instead?Thank you all for any help! :Djs Quote Link to comment Share on other sites More sharing options...
goyousalukis Posted November 20, 2004 Report Share Posted November 20, 2004 Not too hard. Just change the following, re-assemble and use convert.bat to create the syx.Change this in main.asm#define CS_MENU_DISPLAYED_ITEMS 5    ;; NOTE: if CS_MENU_DISPLAYED_ITEMS > 5, you have to adapt the DIN settings    ;; in cs_menu_io_tables.inc Change it to 10. Change this in cs_menu_io_tables.inc CS_MENU_DIN_TABLE    ;;       Function name       SR#    Pin#    DIN_ENTRY    CS_MENU_BUTTON_Dec,    1,    0    ; only valid if rotary encoder not assigned to these pins    DIN_ENTRY    CS_MENU_BUTTON_Inc,    1,    1    ; (see mios_tables.inc) and CS_MENU_USE_INCDEC_BUTTONS == 1    DIN_ENTRY    CS_MENU_BUTTON_Exec,    1,    2    DIN_ENTRY    CS_MENU_BUTTON_Sel1,    1,    7    DIN_ENTRY    CS_MENU_BUTTON_Sel2,    1,    6    DIN_ENTRY    CS_MENU_BUTTON_Sel3,    1,    5    DIN_ENTRY    CS_MENU_BUTTON_Sel4,    1,    4    DIN_ENTRY    CS_MENU_BUTTON_Sel5,    1,    3    DIN_ENTRY    CS_MENU_BUTTON_Sel6,    0,    0    ; define this if CS_MENU_DISPLAYED_ITEMS > 5    DIN_ENTRY    CS_MENU_BUTTON_Sel7,    0,    0    ; define this if CS_MENU_DISPLAYED_ITEMS > 5    DIN_ENTRY    CS_MENU_BUTTON_Sel8,    0,    0    ; define this if CS_MENU_DISPLAYED_ITEMS > 5    DIN_ENTRY    CS_MENU_BUTTON_Sel9,    0,    0    ; define this if CS_MENU_DISPLAYED_ITEMS > 5    DIN_ENTRY    CS_MENU_BUTTON_Sel10,    0,    0    ; define this if CS_MENU_DISPLAYED_ITEMS > 5Change the last 5 entries to show the shift register and pin number your extra buttons are connected to. Just make sure you don't have a shift register defined twice. Just change unused ones to 0,  0Hope this helpsJustinp.s. I just checked the top one on my sid, and it works for a 2x40 display. I can't check the buttons though. Quote Link to comment Share on other sites More sharing options...
js Posted November 20, 2004 Author Report Share Posted November 20, 2004 Ok, I think I get it. So could assign the last selection buttons to a third Din modules pins like this?:DIN_ENTRY CS_MENU_BUTTON_Sel6, 3, 0 ; DIN_ENTRY CS_MENU_BUTTON_Sel7, 3, 1 ; DIN_ENTRY CS_MENU_BUTTON_Sel8, 3, 2 ; DIN_ENTRY CS_MENU_BUTTON_Sel9, 3, 3 ; DIN_ENTRY CS_MENU_BUTTON_Sel10, 3, 4 ; Hope i got this right :)Thanks alot for your quick and helpful response!!js Quote Link to comment Share on other sites More sharing options...
goyousalukis Posted November 21, 2004 Report Share Posted November 21, 2004 Yep, but you don't have to buy extra DIN modules if you aren't going to use the inputs. If you only need one encoder and 19 buttons, you can use one DIN module. You just have to reassign all the entries so that you don't have the same shift register defined twice.Good LuckJustin Quote Link to comment Share on other sites More sharing options...
js Posted November 21, 2004 Author Report Share Posted November 21, 2004 Ok now I don´t undestand. I thought at it was only possible to connect 8 buttons or 4 encoders to a single Din module? How do toy assign the SR´s to connect more than 8 buttons a DIN module..Thanks alot for your helpjs Quote Link to comment Share on other sites More sharing options...
smashtv Posted November 21, 2004 Report Share Posted November 21, 2004 Ok now I don´t undestand. I thought at it was only possible to connect 8 buttons or 4 encoders to a single Din module? How do toy assign the SR´s to connect more than 8 buttons a DIN module..Thanks alot for your helpjsYour almost there....8 buttons or 4 encoders per shift register, each DIN module has 4 shift registers.Best!Smash Quote Link to comment Share on other sites More sharing options...
js Posted November 22, 2004 Author Report Share Posted November 22, 2004 ok but still not quite there.. Can you connect 32 buttons to a single DIN module? Doesn´t you need a DINx4 like this: http://www.ucapps.de/mbhp/mbhp_dinx4.gif to connect 32 buttons? Thaks for the help and im sorry that im so slow at understanding..... :-[js Quote Link to comment Share on other sites More sharing options...
seppoman Posted November 22, 2004 Report Share Posted November 22, 2004 Hi JS,the DIN_X4 is commonly referenced as "the DIN module" because it´s the only version you can get a PCB for. For a DIN_X1..3 you have to use bread board or etch your own PCB. You can connect 8 buttons or 4 encoders to one shift register (chip), so a DIN_X4 is needed for 32 buttons/16 encoders.Seppoman Quote Link to comment Share on other sites More sharing options...
js Posted November 22, 2004 Author Report Share Posted November 22, 2004 ok, thanks alot!! Then I get it, was beginne to be afraid that I didn´t understand anything at all :)Thanks again!!js 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.