goyousalukis Posted August 19, 2003 Report Share Posted August 19, 2003 Hello, usually I figure out the problem 5 minutes after I post, but here goes:I built a Magic Midi Delay on my breadboard with 8 non-detented encoders and one detented encoders. The only code I changed is the pin assignments for the encoders. When I first turn it on, I get all kinds of jitter, with the screen going back and forth between the transpose and BPM menus. After about 30 seconds, the jitter stops and everything works perfect. I have tested the encoders with the enc_3 test and they work great. Is there any other code I have to change?In the Main.Asm file I have:#define USE_POTS 0So I shouldn't have any problem with the AIN pins - correct? I have tried grounding RA0-3,5 and RE 0-2, but this doesn't help. I have also tried the Midibox TC and it works fine too. Any ideas?ThanksJustin Quote Link to comment Share on other sites More sharing options...
TK. Posted August 20, 2003 Report Share Posted August 20, 2003 Hi Justin,open the "mmd_din.inc" file and write a return instruction below USER_DIN_NotifyToggle - this disables the buttons functions - does it help?Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
goyousalukis Posted August 20, 2003 Author Report Share Posted August 20, 2003 No, this doesn't help. Here is the only code I changed:MIOS_ENC_PIN_TABLE ;; encoders 1-16 ;; SR Pin Mode ENC_ENTRY 1, 0, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 1 ENC_ENTRY 1, 2, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 2 ENC_ENTRY 1, 4, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 3 ENC_ENTRY 1, 6, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 4 ENC_ENTRY 2, 0, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 5 ENC_ENTRY 2, 2, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 6 ENC_ENTRY 2, 4, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 7 ENC_ENTRY 2, 6, MIOS_ENC_MODE_NON_DETENTED ; V-Pot 8 ENC_ENTRY 3, 0, MIOS_ENC_MODE_DETENTED ; Jog-WheelMaybe I made a mistake?Justin Quote Link to comment Share on other sites More sharing options...
TK. Posted August 21, 2003 Report Share Posted August 21, 2003 The table should be ok, so I guess that either your modification hasn't been assembled/uploaded correctly, or the DIN chain isn't terminated.To check the software: open "mmd_display.inc" and change some characters in TEXT_DLY_0, TEXT_TRANSP_0, TEXT_CHN_0, TEXT_CFG_0 --- just to ensure that the modified code has been uploadedTo check the hardware: ensure that the SER input of the last 74HC165 is terminated with a 10k pull-up resistor. You could also upload the ain64_din128_dout128 application to check if there are floating pins (open inputs)Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
goyousalukis Posted August 21, 2003 Author Report Share Posted August 21, 2003 Thanks for your help Thorsten - you hit the nail on the head. I had some 1k resistors in place of the 10k's. I guess I can't trust my bag of 10k resistors from mouser. It doesn't help that I am halfway color-blind either!Thanks AgainJustin Quote Link to comment Share on other sites More sharing options...
goyousalukis Posted August 21, 2003 Author Report Share Posted August 21, 2003 Ok, that wasn't the problem!I switched to another DIN module, after testing all the resistors with my mutimeter, and it behaves the same.I have tried the AIN64 program and it works fine.I switched some of the text like you said and it shows up after assembling, converting and sysexing.I'll keep searching!Justin 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.