Juel Posted November 18, 2008 Report Share Posted November 18, 2008 I have built a minimal mbfm setup with only opl3 and core module.The problem is that it seemed to be completely silent until I tried it with my oscilloscope (I didn't use it before because it was hiddenvery carefully when we moved last time). (For all measurements and checks below I used the testtone program.) I found the same signal on all outputs and it looked approximately like this:Before providing any data I need to point out that it is a really bad oscilloscope, only 10 MHz so I was astonished that it even could trigger on some of the signals I tested. Also all values I mentionshould are very imprecise and just approximate. The output had a frequency of about 50 kHz and 10 mV peak to peak.The capacitors worked since there was no DC component. I thenfollowed the signal path backwards through the op-amps which seemed to work correct. Now for the interesting part. The right hand side inputs on YAC:s all (except TST1 and TST2) had the same signal, a weaker version of the outputs. I don't know what all the connections are used for but itseems strange that all have the same values. Also everything wascompletely symmetrical over both chips and all channels.On the other side of the YAC:s I found a discrepancy. The DIN, or DOAB and DOCD had different values. Both seemed to be digitaland both had a period of 10 us. The difference was that DOCD hadabout 0.5 us of 5V and the rest 0V, but DOAB had 2 us of -5V :o andthe rest at 0V. Even more interesting is that this didn't change whenis switched chips, therefore it seems that it doesn't depend on the chip.Appart from this SMP1 and SMP2 were identical (I just noticed I forgotto check CLK). Regarding the inputs to the YMF I have checked it with the interconnectiontest and it passed. But still the input looks weird. All connections (except IC#) between PIC and YMF only had a 15 MHz, 10mV peak to peak sinesignal. Could be a disturbance but it was very steady in frequency and form,but sometimes a little pulsating in size (probably because of my lousy oscilloscope as I observed this before). Regarding IC# it was 5V but still with the same small sinewave overlay. Next step is the core module, but as the YMF is directly connected to the PICI can't test the signal path any further. Still I haven't found any problem with it . It swallows any upload nicely without any errors. Powersuppliesfor both modules work flawless. Midi IN/OUT is "responding" as well. Ihaven't checked the oscillator on the core though. I would be very happy if someone has any idea of what is going on.Maybe someone knows what signals should be sent or at what speed.Also the -5V is a mystery to me (I have checked for shortscuts etc. ) andeven more why the final outputs are all the same. If one or both of theYAC:s is broken they should probably not produce the same result, the same applies to the YMF as nothing changed when I switched it. It is also strange that most signals are so very faint.Again I have to point out that every value I have given is very imprecise,I would guess that for small time measurements the error is at least 20%.So I hope this information can be of any use and I would gladly supply more.EOF Quote Link to comment Share on other sites More sharing options...
stryd_one Posted November 19, 2008 Report Share Posted November 19, 2008 Was this chip also one that you salvaged from a junkpile in the rain?Have you triple checked that all measurements match the schematic? does the core work without the FM attached? Quote Link to comment Share on other sites More sharing options...
Juel Posted November 19, 2008 Author Report Share Posted November 19, 2008 Both soundcards where salvaged from the junkyard, and both whereinside computerchassis. Also I never use the junkyard as a source when it has been raining in the last week, except for when I founda commodore 128. That one I found while it was raining, but it workedperfectly after 10 restarts (old hardware is amazing, almost like a rustyold mechanic machine). Actually the only thing i found and tested thatdidn't work was a SCSI harddrive that I took from a pc and used in myamiga. It developed a read/write error quite quickly. Regarding thechips it seems strange that both produce exactly the same result, whichseems to indicate that either both are working or they have the same error.Regarding the second question I am not really sure what you mean, butI have followed the signal path backwards several times with both chips.I'm not sure if I tested the core module alone, but at least I didn't testit with my oscilloscope so I will desolder it asap and come back with info. Quote Link to comment Share on other sites More sharing options...
stryd_one Posted November 19, 2008 Report Share Posted November 19, 2008 Well, at first, you can skip the oscilloscope and just be sure that you can upload apps and send and recieve midi and display text on the lcd and light LEDs. Quote Link to comment Share on other sites More sharing options...
Juel Posted November 19, 2008 Author Report Share Posted November 19, 2008 It swallows any upload nicely without any errors. Powersuppliesfor both modules work flawless. Midi IN/OUT is "responding" as well. But I have desoldered the OPL3 module now so I will test again without it.Last time I only did uploads and it worked well with midi sending in both directions.I also checked with midiox that it was responding during upload. Are there anyother miditests I could do? Also I tested the interconnections without the OPL-module,but the result was the same (except for perhaps a little less noise, 1-5 mV or something)+5V on RC4 (which should connect to IC#) and 0V on the rest. So it could helpif someone know it the PIC sends data continously or just once during the testtoneprogram.Finally it is only a minimal setup so I have neither LCD or LED:s. I want to get thesynth working and try it out before I buy the expensive parts for the CS.Correction: The -5V mentioned above was false, I forgot to switch the scopeto DC mode so the offset was wrong. Sorry Quote Link to comment Share on other sites More sharing options...
stryd_one Posted November 19, 2008 Report Share Posted November 19, 2008 Sorry maybe I should just add, I didn't read the big first post, just wanted to get the basics out of the way.I also checked with midiox that it was responding during upload.You should use MIOS Studio, smart mode. Search for my posts about it, there are about eight trillion :D Quote Link to comment Share on other sites More sharing options...
Juel Posted November 19, 2008 Author Report Share Posted November 19, 2008 You should use MIOS Studio, smart mode. Search for my posts about it, there are about eight trillion :DThat is what I am using. Even without reading the posts ;) But I can add thatI have some problem with running midiox and MIOS studio at the same time.Maybe I have routed wrong with midi yoke, but I don't care at the moment. Itworks fine when midiox is not running. Quote Link to comment Share on other sites More sharing options...
stryd_one Posted November 19, 2008 Report Share Posted November 19, 2008 The point is *how* you use it. Quote Link to comment Share on other sites More sharing options...
Juel Posted November 19, 2008 Author Report Share Posted November 19, 2008 I use it with both smart mode and wait for request.I have now uploaded mios (1.9f) and testtone(1.1d or something).The full logs can be found here:mioshttp://juel.homeip.net/midibox/mios/hex_file_upload_window.txthttp://juel.homeip.net/midibox/mios/midi_monitor_in.txthttp://juel.homeip.net/midibox/mios/midi_monitor_out.txttesttonehttp://juel.homeip.net/midibox/testtone/hex_file_upload_window.txthttp://juel.homeip.net/midibox/testtone/midi_monitor_in.txthttp://juel.homeip.net/midibox/testtone/midi_monitor_out.txtThe only thing to remark is the timestamp [unknown] in the output.I don't know but could it be that there is no midiclock present? I haven't measured the outputs after I uploaded and I haven't gottime to do it now so I will tell you tomorrow. Quote Link to comment Share on other sites More sharing options...
TK. Posted November 19, 2008 Report Share Posted November 19, 2008 This isn't a MIDI or application issue, since the upload works stable.Unfortunately my MBFM resists at the bottom of my 19" stack, therefore I'm not able to quickly do some scope measurements on my MBHP_OPL3 module for comparison with your waveforms. All I can say for now: noise below 10 mV can be safely ignored!With a scope you could check the digital interface first.Use the midibox_fm application instead of testtone for such checks, as testtone configures OPL3 registers only once after startup - so no periodic repetition, hard to measure...Send some >>different<< MIDI notes, so that the frequency registers will be changed.Check with your scope: that D0..D7/A0..A1 are toggling depending on note numberthat WR is toggling mutiple times whenever a note is playedthat RS is permanently 1 (so far I remember...) - it's the low active reset lineNo detailed descriptions required from your side for further analysis - it's only interesting if you see the signals toggling... yes? Then you can safely assume that the core is perfectly working.Btw.: did you already search for older postings where OPL3 modules were debugged. I remember a case where somebody soldered the chips with wrong pin orientation - the pinning can be confusing when you compare schematic with PCB layout, as the SMT chips have to be soldered upside down (-> mirrored pinning)Best Regards, Thorsten. Quote Link to comment Share on other sites More sharing options...
stryd_one Posted November 20, 2008 Report Share Posted November 20, 2008 I use it with both smart mode and wait for request.Good stuff :) You mentioned using it with midi-ox though, perhaps you tried a loopback cable? I'd avoid that in general, but as TK has pointed out, your logs show that all is well in midi land, so your core and midi interface appear to be working ok :) PS: Thanks for the detailed logs, that rocks.The only thing to remark is the timestamp [unknown] in the output.I don't know but could it be that there is no midiclock present? Don't worry about that. The timestamp isn't actually in the midi signal (like clock) it's just a timestamp of when the PC detected that the message had arrived. Good luck with the tests! Quote Link to comment Share on other sites More sharing options...
Juel Posted November 20, 2008 Author Report Share Posted November 20, 2008 PS: Thanks for the detailed logs, that rocks.All information I have given is dedicated to you, since I have noticed that you usuallyremark on that ;). But then it turned out that you haven't read it all anyway :o.(TK seems to think it is enough though.) Well actually it is not true, since I am a mathematician and know exactly what youmean in your troubleshooting guide. If you understand the problem it is already solved.So you need all the info you can get.edit: The info is also useful for other troubleshooters.Ok, back to the topic. I haven't tested the mbfm app yet (currently out of electricitybecause of some maintenance work). But before that I tested the freshly uploadedmios and testtone, and the result was different. Apart from RC4 (RS) being 5V nowalso RC5 (WR) and RB5 (D5) were 5V (the others still 0V). I am not sure what effectsthis will have but I am moving on to mbfm test and then soldering the OPL3 again.Since I have changed between testtone, interconnction and mbfm apps several timesit seems that it could be the mios upload that was corrupted (I don't recall any errormessages though), or it could be that I uploaded with the OPL3 attached before. Still both of the cases seems strange. I'll be back when I have tested mbfm with and without OPL3.PS. Your info was great TK :). Especially about the testtone app. DS. Quote Link to comment Share on other sites More sharing options...
stryd_one Posted November 20, 2008 Report Share Posted November 20, 2008 All information I have given is dedicated to you, since I have noticed that you usuallyremark on that ;).Thanks! Sometimes it may seem that I'm being difficult, but it always leads to a fix.... But then it turned out that you haven't read it all anyway :o.(TK seems to think it is enough though.) TK commented after you posted the logs I asked for. The reason I asked for them first, is simple logic - no point trying to fix your FM module, if the core controlling it, is malfunctioning. I needed to confirm that you had checked that properly, before I spent a great deal of my valuable time reading about your oscilloscope tests. You jumped the gun a bit there, and I don't have time to spend an hour reading about your tests if your core turns out not to be working ;) That's the same reason I asked about the source of the chip. (currently out of electricity because of some maintenance work). Sucks! Hope you're back online soon!But before that I tested the freshly uploaded mios and testtone, and the result was different. Apart from RC4 (RS) being 5V nowThat one would explain your problem. If it was 0V before, you were holding the OPL3 chip in reset state.also RC5 (WR) and RB5 (D5) were 5V (the others still 0V).If WR was stuck low all the time, that was bad. It should change low only when you write to the OPL3Since I have changed between testtone, interconnction and mbfm apps several times it seems that it could be the mios upload that was corrupted (I don't recall any error messages though),Exactly what I wanted to test :) or it could be that I uploaded with the OPL3 attached before. BTW: that cropped text is really annoying when I'm quoting you! Quote Link to comment Share on other sites More sharing options...
Juel Posted November 20, 2008 Author Report Share Posted November 20, 2008 Working!!!! :) :) :)(But noisy, almost like my sidstation.)I guess it must have been the mios after all.A bit strange since I know I would have seenany upload errors. And that the OPL3 modulecould have inflicted on the upload also seemsstrange, especially since I am quite sure thatit was not connected at that time.So after all you were right and it was a software problem. Thanks a lot everyone.Also a great thanks to my supplier Linneberga(the junkyard). I think you can guess where Ifound my oscilloscope ;), in original box, with manuals.I don't think it was even used once. Thanks againJuel Quote Link to comment Share on other sites More sharing options...
stryd_one Posted November 21, 2008 Report Share Posted November 21, 2008 [me=stryd_one]does the "it's working" dance[/me]Every now and then, a MIOS upload goes all OK with no errors, but something "just ain't right"... Sometimes a fresh upload sorts it out. Also a great thanks to my supplier Linneberga(the junkyard). I think you can guess where Ifound my oscilloscope ;), in original box, with manuals.I don't think it was even used once. Free scope? Are you serious?! SCORE!! Quote Link to comment Share on other sites More sharing options...
Juel Posted November 21, 2008 Author Report Share Posted November 21, 2008 [me=Juel]does not know the "it's working" dance, but he was smiling allday and felt rather confident until he hurt his fingers with a screwdriverwhile fixing a broken fan.[/me]FYI that fan is still broken and will forever be. >:( (Not smashed (no hidden anger), but surely disabled. It is also going to be sent back to my "supplier" for further processing. ;))About the scope: It is old (1978) and bad so you can't make any serious measurmentswith it, but it is a great compliment to a dmm (and FREE :)). In fact I suspecteda bad soldering or something until I saw the waveform. Also I could tracethe signal backwards and I was suspecting the PIC in the end, since the output wasquite meager. But I am not sure I would ever have tried to upload the mios again without you guys. :) :) :)Also I updated my second topic, but I don't know how to change the name to"Solved: ..."ThanksJuel Quote Link to comment Share on other sites More sharing options...
stryd_one Posted November 21, 2008 Report Share Posted November 21, 2008 Also I updated my second topic, but I don't know how to change the name to "Solved: ..."You can click the link to modify the first post, and edit the subject there. Oh - everyone has their own "it's working" dance. You can dance however you want, so long as you dance :) Quote Link to comment Share on other sites More sharing options...
Juel Posted November 21, 2008 Author Report Share Posted November 21, 2008 I lost my sense of rhythm in an unfortunate chess accident,but I will just wave a bit then, maybe even stomp a foot. Quote Link to comment Share on other sites More sharing options...
stryd_one Posted November 21, 2008 Report Share Posted November 21, 2008 I lost my sense of rhythm in an unfortunate chess accident,Really? :( Quote Link to comment Share on other sites More sharing options...
Juel Posted November 21, 2008 Author Report Share Posted November 21, 2008 I'm not really sure.Could have been when I listened to my brother playing drums as well.Btw you don't think this thread is getting out of hand. Just asking sinceyou are the moderator. Quote Link to comment Share on other sites More sharing options...
stryd_one Posted November 21, 2008 Report Share Posted November 21, 2008 LMAOI cracked up at the first post but I wasn't sure if it was a joke or not...didn't want to laugh in case you like...lost to a thug and had a rook inserted forcibly into your ear ;DDon't worry about the moderator thing, that's only so I can help out .... As I like to put it: I'm just a janitor, not a boss.I still get the master key for the building though muahahahah :)As for the offtopic thread...no problem; your problem is solved, we're not hijacking, just having fun, noone is getting hurt, etc ... all good! I think a little bit of fun chat makes for a friendly forum :) Quote Link to comment Share on other sites More sharing options...
Juel Posted November 21, 2008 Author Report Share Posted November 21, 2008 lost to a thug and had a rook inserted forcibly into your ear ;DThat was the golf accident, but it didn't include rook, ear or ball. edit: Just removed some stuff that had 30 days archiving period ;). Quote Link to comment Share on other sites More sharing options...
stryd_one Posted November 21, 2008 Report Share Posted November 21, 2008 hahahahah :DKeep doing what youre doing mate. 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.