Jump to content

bill

Programmer
  • Posts

    386
  • Joined

  • Last visited

Everything posted by bill

  1. Nice, can you upload a photo of the connector too ? It could be nice to extend the scan matrix for that keyboard :)
  2. Hmm, i wish i have one of those ^^ How many keys on the keyboard ?
  3. I want to use Sync24 (or equivalent) as Mastersync. I want try to do a MIOS slave sequencer. It's for live act. Admit that i just want a fat rythm over my gameboy, i think it's more logical and more interesting to give the greyboy the MASTER control over the midi beatbox. (the gb sequence the tempo !!)
  4. Hello I know the possibilitie to sync24 an external device, thanks to Pin D.4 (see clockbox) Now i wonder if it's possible to use that same pin to sync from sync24 (or a gameboy ;) ). I guess it's not possible to read from a DIN (because of the debouncing) How to use Pin D.4 (J14) for reading then ? Maybe using J5 as digital input is a better idea ? Anyone did that allready ? Do i ask for too much questions ? Thanks !!
  5. I did not think about it ! ( i'm still new to ">>" ;) ) i did not think about the compatibily too, but hey, you are definitely right ! I guess it's a newbe behavior : no to see the obvious. Thanks a lot !!!
  6. Wow, so fast ! Thanks :) So, is it a good idea to add it into mios_ain.inc or should i use the function as 'standalone' If i want to add it to MIOS, what changes should i do to the mios_vectors.inc ??? Thanks
  7. do not exist ;) Well, i'm very interested in this function, but as i have allready wrote, i not a asm person. I've located the MIOS_AIN_Pin7bitGet function in src/mios_ain.inc ;; -------------------------------------------------------------------------- ;; FUNCTION: MIOS_AIN_Pin7bitGet ;; C_DECLARATION: unsigned char MIOS_AIN_Pin7bitGet(unsigned char pin) ;; DESCRIPTION: returns 7-bit value of AIN input .... ;; -------------------------------------------------------------------------- MIOS_AIN_Pin7bitGet andlw 0x3f lfsr FSR1, MIOS_AIN_RESULT_L_00 addwf FSR1L, F movff INDF1, MIOS_PARAMETER1 bsf FSR1L, 6 movff INDF1, MIOS_PARAMETER2 ;; note: a multiplication would work faster, but would overwrite PRODL/PRODH rrf MIOS_PARAMETER2, F rrf MIOS_PARAMETER1, F rrf MIOS_PARAMETER2, F rrf MIOS_PARAMETER1, F rrf MIOS_PARAMETER1, W andlw 0x7f movwf MIOS_PARAMETER1 return But i'm dont know how to understand it :-\ Can a clever person tell me what to change ? (i suppose it must be pretty simple) Thanks !!!
  8. :o wow, sound weird, so, do you have another keyboard to test ? else can you borrow one ? How was the c64 working before you opened it ? Try to check with a multimeter the keybaord col3 ???
  9. STupid me !!! ;D I forget to "init MIOS_SRIO_NumberSet();" It's working perfectly 8) Now, i'm pretty interested on doing the algorythm to fill the led_buffer (dec2led and hex2led) then "how to drive 16 chars with another 74hc595" :)
  10. Hello, I have this part done (i allready have my midimon+led display working perfectly) I tried this simple code, with no success, anyone can help me ? (i thought) this code should send the pattern 0x7f to every led-chars, but they are all off :( any idea ? unsigned char led_c=0;//led counter const char led_b[8] = { 0,0,0,0,0,0,0,0,};//led buffer const char led_sr[4] = { 0x88,0x44,0x22,0x11,};//shift register patterns /* ;; LED digit 0 and 4 -> b'10001000' 0x88 ;; LED digit 1 and 5 -> b'01000100' 0x44 ;; LED digit 2 and 6 -> b'00100010' 0x22 ;; LED digit 3 and 7 -> b'00010001' 0x11 */ void SR_Service_Prepare(void) __wparam { //LEDDIGITS_Update MIOS_DOUT_SRSet(1,led_sr[led_c]);//char selection (0123) MIOS_DOUT_SRSet(0,0x7f);//first 4 digits (test pattern) MIOS_DOUT_SRSet(2,0x7f);//next 4 digits (test pattern) led_c++; if(led_c>3)led_c=0; }
  11. Hem, i reply to myslelf, not bcause i'm stupid but because i have some clues, and i dont want you waste your time : I found many interesting informations in the leddigits.inc file, from the midimonV2 application :) I think the most important was : ;; -------------------------------------------------------------------------- ;; FUNCTION: LEDDIGITS_Update ;; DESCRIPTION: This function should be called periodically by ;; USER_SR_Service_Prepare before the DOUT registers will be updated ;; from MIOS ;; ..... ;; -------------------------------------------------------------------------- LEDDIGITS_Update ;; increment LED digit counter, wrap at 4 ;; (0, 1, 2, 3, 0, 1, 2, ...) SET_BSR LEDDIGITS_CTR ; (use bank mechanism so that the registers can be located at addresses >= 0x80) incf LEDDIGITS_CTR, W, BANKED andlw 0x03 movwf LEDDIGITS_CTR, BANKED ;; get shift register pattern for the select line: ;; LED digit 0 and 4 -> b'10001000' ;; LED digit 1 and 5 -> b'01000100' ;; LED digit 2 and 6 -> b'00100010' ;; LED digit 3 and 7 -> b'00010001' I'm on the way to do it working the same way, but without asm.
  12. Thanks, for those who wonder, here is the pin order i found in mm_leddigits.c // a // --- // ! ! // f! g !b // --- // ! ! // e! !c // --- // d h // pin order : habcdefg (from pin0 to pin 7) Finaly, i decided not to use this non multiplexed mode, because over 2 chars, it's a waste of hardware, and for the comfort, i think 3 digits is a minimum to display a 7bit value in decimal, and it could be very nice to display two of those values for ex : c032 127 (i send a CC032 value 127) So, i plan to work on the Midimon Mtc display, (so hardware plans allready exists!), and i have informations in the leddigits.inc file :) http://www.midibox.org/forum/index.php?topic=7156.msg46782#msg46782
  13. Hello, few times ago, i build a midimon http://ucapps.de/midimon.html with it's MTC display (very nice) Now, i'm interested in driving the Display module, with C code. But, I dont know how to start (i still dont understand very well the mutliplexing stuff), so i ask you, as usual ;) I think it could kick ass to see, pattern position, tempo, CC,'s, Hex values etc, on those nice glowing numbers :)
  14. Hello, why do you think your pic is corrupted ? (i think it's not, as long as you can see the MIOS version etc ;) ) Did you try uploading another app ? If you cant, in any case you should not need to reprogram the pic with the burner. Do your pic send an upload request at startup ? Dont hesitate to reupload mios, or apps, even experimental ones, i doubt it's possible to 'fry' the pic, even with very bad code ;)
  15. Ok, i will try to find the time to do a lighter version of the program, because i did so much experiments, that it is very ofuscated, and most part of it is 'useless' in this simple configuration. Just give me few days !
  16. I'm so surprised that there can be different keyboards, that i think : Did you try to rotate 180° the C64 keyboard plug ?
  17. Hello, Is there a documented, or standardised way to connect one 7Seg Display (common cathode) to one 74HC595. (No multiplexing) My question is about Pin reference, so the code i'm going to do could be reused. (Using MIOS_DOUT_SRSet) If no one knows, i will connect that way : Q0 -> A Q1 -> B Q2 -> C Q3 -> D Q4 -> E Q5 -> F Q6 -> G Q7 -> Dot PLease tell me what you think :)
  18. Ok, so you have to re-map the keyboard (boring...), with const char note_map[64][2] = { // 1st value : note - 2nd value : ASCII CODE in variables.h, but i guess you allready dig that one. In SM_NotifyToggle, you should use the 'Debug mode' so you can see wich number has the key you pressed.
  19. Dos you have a bankstick installed ? Maybe it happend when you start the sequencer when the 24lc256 is not installed ? About the pots : Have a look in variables.h at const joy_map You have to set manualy what to send, but basicaly, it was designed for two pots only (a analog joystick to be precise) but you just have to change the length of that array ;) Can you send me a photo of your keyboard, i'm not sure i know wich one you are talking about ??? Do you have 64 keys or more ?
  20. I guess only one chip got a connection problem, or maybe it's a power problem. Did you check for shortcuts around the 'power lines' (dont know the word :/ ) Well, i'm sorry to ask you for this, but, to debug easily, could you change your connection to this : One (two wires) for the power. One (three wires) for the 74hc595 and another one for the 74hc165 (so you can test lines separately, and see wich part do the problem) Then, maybe there is an error on my schematics (honestly, i doubt as mine works fine), but you can compare with this scheme , that is basicaly the same : http://ucapps.de/mbhp/mbhp_scan_matrix1.pdf (or doutx1 and dinx1)
  21. http://www.midibox.org/forum/index.php?topic=6846.msg46571#msg46571
  22. I just had to select the chip, and press "Program" button ;)
  23. Hey, i just tested the winpic800 :) http://perso.wanadoo.es/siscobf/descargas/WinPic800.zip I burned my pics very quickly, and perfectly !! I'm so happy to play with those 18f4620 ;D Dont trash your JDM's !!!!
  24. a shortcut ?? please could you send a photo of your board ?
×
×
  • Create New...