electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » Thomas Henry designs
MTS-100 midi2cv Source Code?
Post new topic   Reply to topic Moderators: Scott Stites
Page 1 of 2 [34 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Goto page: 1, 2 Next
Author Message
andrewF



Joined: Dec 29, 2006
Posts: 1176
Location: australia
Audio files: 4

PostPosted: Thu Jun 07, 2007 7:56 pm    Post subject: MTS-100 midi2cv Source Code? Reply with quote  Mark this post and the followings unread

I bought this kit from Midwest Analog, blew it up, bought a new PIC from Thomas, all worked fine....'til one day i was working on another module and dropped a patchcord just so it shorted the +5 and -15v terminals of my power supply and that was that. By then Midwest no longer existed.
Still have the MTS-100 PCB and now i have a PIC burner, so is there anyway i could get a copy of the source code for this???
thankyou
Back to top
View user's profile Send private message Visit poster's website
philpeery



Joined: Nov 08, 2006
Posts: 137
Location: new jersey, usa

PostPosted: Thu Jun 07, 2007 10:14 pm    Post subject: Reply with quote  Mark this post and the followings unread

Quote:
so is there anyway i could get a copy of the source code for this???


Good question, I would also be interested in getting the source! I actually have one o' these in my setup already (works great, is very handy, and inexpensive to boot), but would really like at least one more! And since the project PDF is availabe from the nuts and volts web site, complete with pcb layout, it's a very doable project. Er, well except for that source code thing.....

If anyone has it, let us know!
Back to top
View user's profile Send private message
Thomas Henry



Joined: Mar 25, 2007
Posts: 298
Location: Southern Minnesota
Audio files: 2

PostPosted: Thu Jun 07, 2007 10:25 pm    Post subject: Re: MTS-100 midi2cv Source Code? Reply with quote  Mark this post and the followings unread

andrewF wrote:

Still have the MTS-100 PCB and now i have a PIC burner, so is there anyway i could get a copy of the source code for this???


I'll dig around on my old 486 machine, find the code and post it. Keep in mind that it's not a PIC processor, but the old, reliable 68705 microprocessor.

Thomas Henry
Back to top
View user's profile Send private message
philpeery



Joined: Nov 08, 2006
Posts: 137
Location: new jersey, usa

PostPosted: Thu Jun 07, 2007 10:50 pm    Post subject: Reply with quote  Mark this post and the followings unread

Does anyone know of a source for the mc68705p3 processor? My searches on mouser and newark came up empty.....
Back to top
View user's profile Send private message
Dan Lavin



Joined: Nov 09, 2006
Posts: 649
Location: Spring Lake, Mi, USA
Audio files: 21

PostPosted: Fri Jun 08, 2007 5:17 am    Post subject: Reply with quote  Mark this post and the followings unread

Phil: I've probably got a couple in my semi box and since I recently trashed my trashed and heavily part-pirated 68705 programmer, it's a safe bet I won't be needing them. I'd happily trade even up for 566's, CA3080's, or anything else that would be useful for TH designs.

On the other hand, redesigning (re-coding) this project for a PIC instead of a 68705 might be a good project for folks on this forum. I'd be willing to help after Bill and I finish the TH Keyboard as long as someone can handle the bulk of the PIC code. I can really use another Midi2CV as my PAIA Midi2CV8 is overkill for most of what I do.
Back to top
View user's profile Send private message
philpeery



Joined: Nov 08, 2006
Posts: 137
Location: new jersey, usa

PostPosted: Fri Jun 08, 2007 5:13 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hey Antman! If you have 2 or 3 laying around that you'd like to unload, I've got TONS of 3080e's that we could swap. I do have some 566's that I might be willing to part with, but I need to look at my list of projects that need them before I know how many I can give up. RIght now, I think I have about 20 or so. I do have a bunch of other chips too, lm394's, lm13600, 13700's, the list is long....

As far as loading the code on the chip, what's involved? I used to have an eprom burner, but I would bet that won't cut it.

Let me know what you'd take in trade!

Thanks and Best Regards,
Phil
Back to top
View user's profile Send private message
Thomas Henry



Joined: Mar 25, 2007
Posts: 298
Location: Southern Minnesota
Audio files: 2

PostPosted: Fri Jun 08, 2007 9:44 pm    Post subject: Reply with quote  Mark this post and the followings unread

Okay, it took a little digging, but I found the source code you guys were asking about. I see by the date that this is the tenth aniversary of the MTS-100!

This is just a text file and can be viewed in any text editor. When I pump it through the cross-assembler, I change the file extension to .asm. Note that the code is heavily documented (as is my wont).

You might also remember that I coded the MIDI serial input by hand. There is no UART on the chip, and yet I was able to get the data in quite reliably. Back when I was a young pup, I used to love doing things like that. But that was in the good old days when 5-to-4 Supreme Court decisions hadn't been invented yet.

Anyway, hope this helps.

Thomas Henry


Mts100.txt
 Description:
MTS-100 Source Code (read in any text editor)

Download (listen)
 Filename:  Mts100.txt
 Filesize:  19.3 KB
 Downloaded:  873 Time(s)

Back to top
View user's profile Send private message
andrewF



Joined: Dec 29, 2006
Posts: 1176
Location: australia
Audio files: 4

PostPosted: Fri Jun 08, 2007 11:41 pm    Post subject: Reply with quote  Mark this post and the followings unread

wonderful - thankyou
nothing wrong with well-documented code.

I think i can get access to a 68705 burner at uni, seems to be at lot of 68xxx stuff there.
a bloke on ebay has plenty of chips buy-it-now $3.50
Back to top
View user's profile Send private message Visit poster's website
philpeery



Joined: Nov 08, 2006
Posts: 137
Location: new jersey, usa

PostPosted: Sat Jun 09, 2007 7:39 am    Post subject: Reply with quote  Mark this post and the followings unread

Quote:
a bloke on ebay has plenty of chips buy-it-now $3.50


I saw those, and was thinking about ordering a few. They are MC689705U3's, and the mta-100 doc states a MC68705P3 part number. Is there a significant difference between the P3 and U3 rev's, or is it usable?

Phil
Back to top
View user's profile Send private message
Dan Lavin



Joined: Nov 09, 2006
Posts: 649
Location: Spring Lake, Mi, USA
Audio files: 21

PostPosted: Sun Jun 10, 2007 2:53 pm    Post subject: Reply with quote  Mark this post and the followings unread

Phil:
I have 1 of the P3 and 2 of the U3's. The U's are a 40 pin expanded version, the P3's are 28 pins. I also have a P3 driving a TH Midi to Trigger for the past 15 years or so. But that's off limits until I update it! Anyway, the burn process is to burn a 2716 with the source code, then slap a 68705 and the 2716 into the burner and flip a couple switches and wait for a green and yellow LED to do their thing. The burner consists of a 4040, a couple 2N2222's, a 1N4742 zener (12V), a 1N4748A zener (22v), a 5 volt regulated power supply, 24V xformer, 1MHz Xtal, 11caps, 10 resistors, 5 diodes.
So basically you have to build one project to do another. I hate when that happens and it happens more than I like to admit around my house!

The following articles outline details:
1. 68705 Microcontroller by TH in Radio Electronics Magazine Sep 89
2. Part 2 of above Oct 89
3. The One Chip "Midi Computer" Meet the 68705 by TH, Electronic Musician April 89
4. 68705 Microcontroller Programmer by Brian Beard Electronics Now Jan 94
I'd be willing to throw in these articles and the Motorola data sheet if you're still interested. The P3 does have a window cover so I'm not sure what nonsense is programmed on there. You'd need to slap it into a Eprom eraser. I'd trade even up for 3080's. Email me your address off forum at lavins49456 (AT) yahoo.com if you're still interested.

On the other hand, I think I'll wait for some ambitious soul to port this code over into a Pic. Blue Hell, you out there?!
Back to top
View user's profile Send private message
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24493
Location: The Netherlands, Enschede
Audio files: 298
G2 patch files: 320

PostPosted: Sun Jun 10, 2007 3:50 pm    Post subject: Reply with quote  Mark this post and the followings unread

antman49443 wrote:
Blue Hell, you out there?!


Yes, in here actually Very Happy

I'm confused a bit, is this still the same keyboard we are talking about ? Probably, it's in the same thread Laughing I did have a look at the 68705 code, just enough to see that it was documented ...

Coincidentally I just finished the legalization / license (GNU GPL) stuff on my x4th compiler (and a sort of a manual as well and some demo code) and made it web accessible. Hope there are not too many typos in it.

Actually it has a MIDI project example, a modified version of the software I used for my Noodle Radio. Very basic actually using a rotary encoder and a pot to send out two different MIDI CCs to control the radio (in it's non-internet version as I showed it at the electro-music 2005 festival). (And it has not been tested on hardware after the modifications were made Shocked )

Making x4th publishable and public was step one for the possible midification of the TH keyboard as done by Bill and you.

Next step will be to make a MIDI SYSEX front end for the flash loader.

edit : made links working again.

_________________
Jan
also .. could someone please turn down the thermostat a bit.
Posted Image, might have been reduced in size. Click Image to view fullscreen.

Last edited by blue hell on Fri Dec 07, 2007 8:29 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
Dan Lavin



Joined: Nov 09, 2006
Posts: 649
Location: Spring Lake, Mi, USA
Audio files: 21

PostPosted: Sun Jun 10, 2007 4:26 pm    Post subject: Reply with quote  Mark this post and the followings unread

BH:
Sorry to throw you the curve ball there. No, the MTS-100 is a Midi to KBD CV/Pitch Bend/Gate/Trigger circuit/program that TH did back with Midwest Analog Products.

I'll check out your project example, etc. when I have some down time this week and see if it'll help. I'd definitely want to finish the keyboard before tackling another forum project, though.
Back to top
View user's profile Send private message
blue hell
Site Admin


Joined: Apr 03, 2004
Posts: 24493
Location: The Netherlands, Enschede
Audio files: 298
G2 patch files: 320

PostPosted: Sun Jun 10, 2007 5:02 pm    Post subject: Reply with quote  Mark this post and the followings unread

Ah, OK, that deconfuses me enough fttb.
_________________
Jan
also .. could someone please turn down the thermostat a bit.
Posted Image, might have been reduced in size. Click Image to view fullscreen.
Back to top
View user's profile Send private message Visit poster's website
Trumpet1



Joined: Aug 02, 2007
Posts: 10
Location: Long Beach, CA

PostPosted: Thu Aug 09, 2007 2:33 pm    Post subject: MTS-100 souce code - AVR might be better Reply with quote  Mark this post and the followings unread

I did a custom MIDI->CV adapter recently based using an AVR micro (easier to write code for than PIC - my opinion). I was going from the MIDI message spec and took some shortcuts. It works, but sometimes locks up or picks the wrong voice if multiple keys are pressed - that sort of thing.

I'd like to improve my AVR logic. If by chance TH has a flowchart, or state diagram, or if anyone has developed one from his original source, I'd be interested. Otherwise I will try to port the PIC code to AVR from the source listing.

Plus, in general, look at the AVR for your controller needs. It has a relatively small instruction set, a small set of packages to learn (mainly just pick the number of I/Os and A/Ds you want onboard, etc.) compared with the innumerable PICs. Cheap homemade programmers, etc.
Back to top
View user's profile Send private message
Dan Lavin



Joined: Nov 09, 2006
Posts: 649
Location: Spring Lake, Mi, USA
Audio files: 21

PostPosted: Fri Aug 10, 2007 8:00 am    Post subject: Reply with quote  Mark this post and the followings unread

Trumpet1,

Try PM'ing philpeery. I traded all my 68705 articles and chips on this to him for a number of analog chips. He's a nice guy. I'm sure he'll be willing to assist you.
Back to top
View user's profile Send private message
Thomas Henry



Joined: Mar 25, 2007
Posts: 298
Location: Southern Minnesota
Audio files: 2

PostPosted: Tue Aug 14, 2007 2:42 pm    Post subject: Reply with quote  Mark this post and the followings unread

Have I got a deal for you (he said as he furtively pulled his trench coat aside).

While cleaning the basement, I came across (70) MTS-100 MIDI-to-Synth and (32) ADV-MIDI printed circuit boards. These are nicely done, single-sided and tinned, but not silk-screened. Both are 4" by 6" in size.

I don't need money for these (apart from possibly the shipping, since we're talking several pounds of boards here), but would be glad to trade all of them for anything interesting. For example, I sure could use some 24VCT/smallish transformers or some tempcos.

But I'm open to just about any type of trade. Any takers?

Also, did you notice in the last Jameco catalog of a month ago or so that they stock the 68705. Seems to me it was around $25, which isn't much more than what I was paying some dozen years ago.

And this'll blow you away; they were stocking the NE566 (but at a fairly exorbitant price if I recall).

Thomas Henry

Last edited by Thomas Henry on Tue Aug 14, 2007 3:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
Thomas Henry



Joined: Mar 25, 2007
Posts: 298
Location: Southern Minnesota
Audio files: 2

PostPosted: Tue Aug 14, 2007 2:45 pm    Post subject: Re: MTS-100 souce code - AVR might be better Reply with quote  Mark this post and the followings unread

Trumpet1 wrote:

I'd like to improve my AVR logic. If by chance TH has a flowchart, or state diagram, or if anyone has developed one from his original source, I'd be interested. Otherwise I will try to port the PIC code to AVR from the source listing.


Sorry, I long ago trashed the pseudo-code for this. However, the source code is heavily documented and could probably guide you. It really isn't all that complex.

Thomas Henry
Back to top
View user's profile Send private message
philpeery



Joined: Nov 08, 2006
Posts: 137
Location: new jersey, usa

PostPosted: Tue Aug 14, 2007 4:18 pm    Post subject: MTS and ADV midi boards... Reply with quote  Mark this post and the followings unread

Hi Thomas!

I have some 24vct transformers and both 1k and 2k tempco's, how many are you looking for? PM me if someone hasn't beat me to the punch!

Phil
Back to top
View user's profile Send private message
Trumpet1



Joined: Aug 02, 2007
Posts: 10
Location: Long Beach, CA

PostPosted: Wed Aug 15, 2007 11:06 am    Post subject: Re: MTS-100 souce code - AVR might be better Reply with quote  Mark this post and the followings unread

[quote="Thomas Henry"]
Trumpet1 wrote:

... the source code is heavily documented and could probably guide you...
Thomas Henry


After looking at the source, I believe you are right. I'll give it a try, anyway. Thanks -David
Back to top
View user's profile Send private message
etaoin



Joined: Jun 30, 2005
Posts: 761
Location: Utrecht, NL

PostPosted: Thu Aug 16, 2007 12:15 am    Post subject: Reply with quote  Mark this post and the followings unread

Quote:

While cleaning the basement, I came across (70) MTS-100 MIDI-to-Synth and (32) ADV-MIDI printed circuit boards. These are nicely done, single-sided and tinned, but not silk-screened. Both are 4" by 6" in size.


I don't know to whom these are going, but I assume he or she isn't going to use all 70, so if possible I'd like one or two MTS-100 boards and an ADV-MIDI board. I'll pay shipping, of course. Please.

_________________
http://www.casia.org/modular/
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
factus10



Joined: Jun 20, 2007
Posts: 158
Location: Buffalo, NY

PostPosted: Fri Apr 11, 2008 10:38 am    Post subject: Reply with quote  Mark this post and the followings unread

[redacted for jolly-roger-ist behavior]

See Thomas' comment below. No need to help those who help themselves Wink

_________________
Nothing succeeds like excess.

Last edited by factus10 on Fri Apr 11, 2008 11:26 am; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website
Thomas Henry



Joined: Mar 25, 2007
Posts: 298
Location: Southern Minnesota
Audio files: 2

PostPosted: Fri Apr 11, 2008 11:21 am    Post subject: Reply with quote  Mark this post and the followings unread

I'm surprised his Web site doesn't sport the Jolly Roger as a banner.

Beware, his PCB had/has nothing to do with me.

Thomas Henry
Back to top
View user's profile Send private message
etaoin



Joined: Jun 30, 2005
Posts: 761
Location: Utrecht, NL

PostPosted: Thu Apr 17, 2008 11:38 am    Post subject: Reply with quote  Mark this post and the followings unread

I'm getting an MTS-100 and ADV-MIDI board through Phil. Anyone know if the ADV-MIDI schematics are available anywhere? I have already found the source code on archive.org (so no need for TH to go through old disks this time Wink )
_________________
http://www.casia.org/modular/
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
philpeery



Joined: Nov 08, 2006
Posts: 137
Location: new jersey, usa

PostPosted: Thu Apr 17, 2008 3:38 pm    Post subject: Reply with quote  Mark this post and the followings unread

Hi Etaoin,

I may be able to help you out with docs too. Sit tight!

Phil
Back to top
View user's profile Send private message
etaoin



Joined: Jun 30, 2005
Posts: 761
Location: Utrecht, NL

PostPosted: Thu May 01, 2008 5:11 am    Post subject: Reply with quote  Mark this post and the followings unread

Okay, I probably managed to get my hands on some 68705P3's (not sure until they arrive). Now on to programming them. I can erase and burn 2716's, so I'd like to opt for the programmer from the datasheet. However, 1 MHz crystals seem to be becoming obsolete. Mousers asks $13+ for them (and that's without shipping to EU). So still looking for that at a more reasonably price.

Also, does anyone have a cross-compiler? The code is small enough to compile by hand if necessary, but I'd rather use a compiler.

[edit]
Okay, I found a cross-compiler for the Amiga, and since I still have an Amiga, it might work.

_________________
http://www.casia.org/modular/
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic Moderators: Scott Stites
Page 1 of 2 [34 Posts]
View unread posts
View new posts in the last week
Goto page: 1, 2 Next
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » Thomas Henry designs
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use