Jump to content

mess

Programmer
  • Posts

    141
  • Joined

  • Last visited

Everything posted by mess

  1. Hello, I'm looking for suggestions to draw lcd layouts like the midibox tutorials or the application development page on the wiki any suggestions? Michaël
  2. ok I understand now, thank you very much for your time :)
  3. Hello, could someone explain to me the difference between MK_SET_OBJ and MK_ADD_OBJ in makefile.spec used for generating the makefile? mostly I use something like this MK_SET_OBJ pic18f452.c main.c MK_ADD_OBJ myfile1.c myfile2.c wich does the trick but I'd like to now why :) bye, Michaël
  4. ever since I saw the clockbox example I wanted to build a drum seq so it's gonna be a drumseq :D you can read some information on my first attempt here: http://www.midibox.org/forum/index.php?topic=6980.msg45082#msg45082 the new design is based on some of the suggestions in the "when will come the trseq" thread feature list: 32 step 8 track drum seq, each step has trig/acc/roll 16 patterns, will be expanded when seq is up and running patterns are saved on a bankstick simple UI: lcd: displaying [bpm pat trknr (edited par)] 32 step buttons + stepleds, leds are dual color to display trig/acc all functions are accessed with a stepkey + shift combination pattern selection: stepkey + pattern button track select/mute: stepkey + track button rotary encoder for modifying parameters some pics of the seq: picture to show the size (it's reeaally compact ;D) matrix wiring mess:
  5. I've managed to get this to work :) I'm using one dout to drive both matrices and a din/dout for buttons/leds modifications to scan matrix example: in main.c: ... //second shiftregister drives the leds #define LEDOUT 1 ... void LM_SetRow(){ MIOS_DOUT_SRSet(LEDOUT,ledtest[sm_col]); } ///////////////////////////////////////////////////////////////////////////// // This function is called by MIOS before the shift register are loaded ///////////////////////////////////////////////////////////////////////////// void SR_Service_Prepare(void) __wparam { // call the Scan Matrix Driver SM_PrepareCol(); // call the Led Matrix Driver LM_SetRow(); } ... in sm_simple.asm: ... global _sm_button_column global _sm_button_row global _sm_button_value global _sm_col ;; import lables extern _SM_NotifyToggle ; ========================================================================== accessram udata ; (no access ram required, these variables can be located anywhere) _sm_button_column res 1 ; exported to C, therefore an "_" has been added _sm_button_row res 1 _sm_button_value res 1 _sm_col res 1 ... SM_PrepareCol ;; select next DOUT register ;; (current column + 1) & 0x07 SET_BSR sm_selected_column incf sm_selected_column, W, BANKED ; (* see note below) andlw 0x07 ;_sm_col is used by LM_SetRow() movwf _sm_col call MIOS_HLP_GetBitANDMask ; (inverted 1 of 8 code) ... and finally in sm_simple.h: ... extern unsigned char sm_button_value; extern unsigned char sm_col; ... I don't think this is the most efficient way to do this but it works for me :) Michaël
  6. I allready looked at that page but none of the links provide the combination of buttons and leds (correct me if I'm wrong ???) in the meantime I've build the button/led matrix with two DOUT registers for the leds and seperate DIN/DOUT registers for the button matrix (driven by sm_example code) so I just have to modify the SID ledmatrix example and add a C style header for the asm functions...
  7. mess

    Covox

    thanks for the example, nice bit of lofi crunch :) I'm going to try this as soon as my seq is finished...
  8. I agree with AC, nice work on the wiki :D
  9. Hi Is it possible to integrate the led matrix driver (from sidmatrix test) with the C scanmatrix example? I want to drive 64 leds and 32 buttons using a DINX1 and a DOUTX2 Michaël
  10. It wasn't my intention to rush you with anything, take your time I wouldn't want to miss it now that I'm used to it :D
  11. mess

    Covox

    I think that all the code for this is allready in the analog toolbox code, it uses the same waveform generation technique as the avrsyn only avrsyn is written in asm and it has a 24bit fasor (better frequency resolution) right now the analog toolbox lfo is updated each millisecond so max output frequency is 1000/2 = 500Hz don't know how high you could set the update freq ??? so suppose the highest note you need is 2kHz, you will need 4kHz -> 1/4000 = 0.25mS -> 0.25mS/100nS = 2500 cycles -> MIOS_TIMER_Init(0,2500); do you think this is correct? Do you have an example of that sound? I'm too young to know how an amiga sounds :)
  12. Hi Meeshka, I've been using this version for some time now, it works great :D just one question, everytime I start MIOS studio I have to reconnect my midi devices (XP, midisport 2x2) is this normal behaviour? bye, Michaël
  13. nice enclosure :D The routing diagram is a nice touch ;D how does the modded Dr Quack sound with the sid? bye, Michael
  14. mess

    Covox

    Hi Bill The analog toolbox is made to generate analog control voltages for modular synth modules (like analog filters, voltages...) it stores a 8 bit sine wavetable for converting a saw->sine (see map.c) About that Covox DAC, have you seen: http://www.ucapps.de/mbhp_aout_lc.html What do you think of a avrsyn for sound generation and a mios engine for modulation, presets,control surface... :D bye, Michaël
  15. when mios reboots because your tick() routine takes too long so that mios can't reset the watchdog in time you know CPU load is too high ;D
  16. Hi, have you added the extra C libary for pointers: http://www.ucapps.de/mios/mios_libsdcc_v2_5_0.zip? bye, Michael
  17. Hi Stryd I probably *should* format my pc and change my drive letter to C:\ but I rather spend some time on my midibox project than reinstalling everything from scratch ::) Hi Michael, I did try to compile the standard clockbox project from e:\clockbox same results... the Z drive is a network drive mapped to my midibox directory, I did the same on the other pc (mapped to same dir on my pc) and it works fine the really strange thing is: C mapped to e:\data\electronics\midibox doesn't work [any drive letter] mapped to e:\data\electronics\midibox\firstdseq (->project dir) works fine thank you for your help, Michaël
  18. Thanks Thorsten, I will post the diagrams together with my code when everything is finished... don't expect too much from it , I just want to make a basic drumseq for my micromodular :) Thanks Jaicen, I'm using a core module, a Dinx4 module and 3/4 of a Doutx4 module so it's all standard pcbs... I could use some good suggestions on the user interface and stuff like that, will post more on that after my exams... I sure will try this program, I'm using eagle for drawing pcbs at school and I don't like it that much :) for this project I will use Xcircuit so that the diagrams have the same look as the MB ones Michaël
  19. Old topic, but I still have this (still compiling on girlfriend's pc :P) I have a problem with the make macros when I compile a c project everything works fine on my girlfriends computer (even when I compile the source files from my own pc over network) but on my computer I allways get the same errors (see below) error message: Makefile generated. Makefile.bat generated. Assembling MIOS SDCC wrapper ========================================================================== Compiling iohandler.c: No such file or directory ERROR! I can make it work on my computer if I manually edit the makefile.bat file and add the absolute paths to the source file after running the the make: I've replaced this echo ========================================================================== echo Compiling dseq.c sdcc -S -mpic16 -p18F452 --fstack --fommit-frame-pointer --optimize-goto --optimize-cmp --disable-warning 85 --obanksel=2 -pleave-reset-vector -DDEBUG_MODE=0 dseq.c -o _output\dseq.asm if errorlevel 1 goto end_error perl tools\fixasm.pl _output\dseq.asm if errorlevel 1 goto end_error gpasm -c _output\dseq.asm -o _output\dseq.o if errorlevel 1 goto end_error with this (I've added the absolute path to c source file) echo ========================================================================== echo Compiling dseq.c sdcc -S -mpic16 -p18F452 --fstack --fommit-frame-pointer --optimize-goto --optimize-cmp --disable-warning 85 --obanksel=2 -pleave-reset-vector -DDEBUG_MODE=0 Z:\firstdseq\dseq.c -o _output\dseq.asm if errorlevel 1 goto end_error perl tools\fixasm.pl _output\dseq.asm if errorlevel 1 goto end_error gpasm -c _output\dseq.asm -o _output\dseq.o if errorlevel 1 goto end_error and so on for each c file... can I modify the mkmk.pl script to add the absolute path so I don't have to do this manually?
  20. Thank you Thorsten, I've just installed the precompiled windows version of Xcircuit, could you please give me the xcircuit files of a din/dout connection diagrams like the ones of MB_SEQ? Michaël
  21. Hi Thomas, Maybe this helps: //set edit cursor MIOS_LCD_CursorSet(position_to_set_cursor); MIOS_LCD_Cmd(0x0E); //hide cursor MIOS_LCD_Cmd(0x0C); for more commands for a HD44780 display see: http://www.geocities.com/dinceraydin/lcd/commands.htm Michaël
  22. Hello, I know the schematics and pcbs are done in eagle, but I want to draw something like this: http://www.ucapps.de/midibox_seq/mbseq_din_v2.pdf about my project, I'm building a simple drum sequencer based on the clockbox example specs: -8 drumtracks with 32 steps -each step has note on/off, accent on/off,(roll on/off) -16 patterns (nr of patterns will be increased) -patterns are stored on a bankstick -loading/saving of patterns is possible when seq is running user interface: -20x2 lcd -5 softbuttons + menu/ok button + encoder -16 step buttons/leds -8 dedicated buttons with play/pause, stop, menu shortcuts status: -seq is running with 16 steps with user interface -currently there's only one loop length, note division for all tracks -I'm able to run the seq with 32 steps but due to performance issues the running led when seq is playing has to be disabled :( there's still a lot of work to do, I've written all the code in C to test the concept without losing much time in code optimalisation next week when my exams are done I will have more time to work on the code, maybe some of you could help me with some C/ASM optimalisation this is only my second C project so I expect there's a lot of room for improvement ;D here's a picture of my testsetup:
  23. Hello, I'm wondering what program TK uses for drawing the interconnection diagrams for the midibox projects? I want to document my c drumseq project and if possible I want the led/button wiring diagrams to be consistent with the official MB projects.. Thank you, Michaël
  24. hi maybe you could use these for radio transmitting: http://www.microchip.com/ParamChartSearch/chart.aspx?branchID=1201&mid=&lang=en&pageId=76
  25. Hi Thorsten, Yesterday I tried installing the compiler etc on my girlfriends computer, everything works as expected... I will try again on my computer after I finish my exams bye, Michaël
×
×
  • Create New...