Author Topic: ispMACH with Voltage Level Translation .vs. ATF1502AS  (Read 2094 times)

0 Members and 1 Guest are viewing this topic.

Offline NivagSwerdnaTopic starter

  • Super Contributor
  • ***
  • Posts: 2495
  • Country: gb
ispMACH with Voltage Level Translation .vs. ATF1502AS
« on: April 17, 2018, 11:15:34 am »
Recently I have been playing (I am a hobbyist) with replacing failed custom logic from 1980s Arcade machines.  These devices operate primarily on 5V TTL logic (with some +12 and -5V thrown in for the crusty DRAMs)...

For the simple customs they are replaceable with around 5-10 74 series chips so a custom board is possible (although the physical constraints vary in the target boards)... it would seem that a FPGA is an overkill for many of these scenarios.

I am not familiar with CPLDs but thought I might have a look... I seem to have two obvious routes..

ATF1502AS which is 5V technology and looking rather dated.  The development tool on the Microchip site suggests I need a Parallel Port on my PC... which I don't have anymore!

ispMACH from Lattice looks much more modern but would require voltage translation (and sufficient current drive to meet the TTL fan-out specs)... LSF0108?

Any opinions?

Thanks in advance
 

Offline bgm

  • Supporter
  • ****
  • Posts: 56
  • Country: au
Re: ispMACH with Voltage Level Translation .vs. ATF1502AS
« Reply #1 on: April 17, 2018, 01:00:36 pm »
Recently I have been playing (I am a hobbyist) with replacing failed custom logic from 1980s Arcade machines.  These devices operate primarily on 5V TTL logic (with some +12 and -5V thrown in for the crusty DRAMs)...
For the simple customs they are replaceable with around 5-10 74 series chips so a custom board is possible (although the physical constraints vary in the target boards)... it would seem that a FPGA is an overkill for many of these scenarios.
I am not familiar with CPLDs but thought I might have a look... I seem to have two obvious routes..
ATF1502AS which is 5V technology and looking rather dated.  The development tool on the Microchip site suggests I need a Parallel Port on my PC... which I don't have anymore!
ispMACH from Lattice looks much more modern but would require voltage translation (and sufficient current drive to meet the TTL fan-out specs)... LSF0108?
Any opinions?

Four parts to this question so I'll answer each in turn. 

The Devices

In regard to native 5v CPLDs .... really the Atmel devices are now the only game left in town.  The ATF1508 is still available (though it isn't cheap) but it is quite a nice device. 

The other other choice is the Lattice ispMACH 4000V.  These aren't native 5v parts (they're 3.3v) but they are 5v tolerant and will interface to most 5v logic without having to resort to level shifters. 

The Development Software

For the Atmel parts, if you want to stay with free, then you are stuck with using the Atmel version of WinCUPL.  Upside it's free.  Downside ... well .. yeah... it's not a big step up from PALASM. 

You really want to be working with a modern HDL where possible.  VHDL or Verilog, and for the Atmel parts, while the software to support Verilog does exist ... you are putting your hand in your pocket big time for that - it ain't free. 

For the Lattice parts, things a *little* better.  For the isp4000V devices, you will be using ispLever which is getting pretty dated now, but does at least have a Verilog compiler in it. 

Don't expect the latest and greatest Verilog though - if you are, then you will be disappointed.  The software, while not exactly modern is functional and works well enough.  Upside ... it's free. 

Programming the devices

Both the Atmel and the Lattice parts are now ISP, so providing your design is wired correctly you can just break out the JTAG headers appropriately with the appropriate software. 

I personally have a stand-alone programmer that I create the JED (aka bitstream) files for the design and then use that to write my CPLDs (because I work with a *lot* of CPLDs that predate ISP and JTAG) so not a big deal for me. 

For you though, it is probably easier to spring for a $40 USB Lattice JTAG programmer on eBay that is supported by ispLever. 

Other than that, that's it. 

As a device, I actually *like* the Atmel part (I used them a *lot*).  They're robust, they work, and in the case of the 1508, they come in a PLCC84 package which is really nice for socketing via through-hole socket, so board development isn't particularly wasteful (excluding the PLCC sockets, which if you buy one off you typically get ripped off on). 

For SMD, then your choices are Lattice or the Atmel (nee Microchip now) parts. 

For the DEV environment though, ispLever beats CUBEL hands down for what I do - even if it is done via the ancient ispLever software. 

Level Shifters

Generally, I prefer to *not* use level shifters unless I can use them as a type of buffer as well.  There are a few reasons for this but the biggest one I've found is that the automatic ones typically do not have a lot of 'drive'.  This may (or may not) be an issue depending on what you are trying to do.  Most of the current generation FPGAs are now all 2.5v and lower. 

You can directly interface 3.3v to a 5v bus if you use a zener to clamp the input on the pins to 3.3v.  You don't have to worry about the output as 3.3v is above the bottom margin for high in a 5v system (this is greatly simplified). 

My $0.02 so take it for what its worth ...

Other than that, good luck. 
« Last Edit: April 17, 2018, 01:57:07 pm by bgm »
/BGM
"Forward to the past!"
 
The following users thanked this post: NivagSwerdna

Offline NivagSwerdnaTopic starter

  • Super Contributor
  • ***
  • Posts: 2495
  • Country: gb
Re: ispMACH with Voltage Level Translation .vs. ATF1502AS
« Reply #2 on: April 17, 2018, 02:23:05 pm »
Awesome response bgm.  Thank you for taking the time to write that.

It's a hard decision... I could buy a job lot of ATF150x which would probably do me but I know that at some point it is a dead end.
 

Offline coromonadalix

  • Super Contributor
  • ***
  • Posts: 5884
  • Country: ca
Re: ispMACH with Voltage Level Translation .vs. ATF1502AS
« Reply #3 on: April 17, 2018, 10:07:15 pm »
for atf1502 or 1504  you have kanda usb adapters they dont cost a fortune 60$ usd, we work with them at my job, and you have the programing software included ..

https://www.kanda.com/products/Kanda/ATDH1150USB-K.html
 

Offline obiwanjacobi

  • Frequent Contributor
  • **
  • Posts: 988
  • Country: nl
  • What's this yippee-yayoh pin you talk about!?
    • Marctronix Blog
Re: ispMACH with Voltage Level Translation .vs. ATF1502AS
« Reply #4 on: April 18, 2018, 07:21:38 am »
Put the 5-10 74-series logic on a small SMD board that fits/adapts to the original spot/socket?

Hopefully a dual load (both sides of the PCB) will make it small enough to be able to fit the physical restrictions in the various models, you talked about...?

[2c]
Arduino Template Library | Zalt Z80 Computer
Wrong code should not compile!
 

Offline NivagSwerdnaTopic starter

  • Super Contributor
  • ***
  • Posts: 2495
  • Country: gb
Re: ispMACH with Voltage Level Translation .vs. ATF1502AS
« Reply #5 on: April 18, 2018, 10:05:25 am »
Put the 5-10 74-series logic on a small SMD board that fits/adapts to the original spot/socket?
A definite possibility however I think the $ cost would be greater.
 

Offline obiwanjacobi

  • Frequent Contributor
  • **
  • Posts: 988
  • Country: nl
  • What's this yippee-yayoh pin you talk about!?
    • Marctronix Blog
Re: ispMACH with Voltage Level Translation .vs. ATF1502AS
« Reply #6 on: April 18, 2018, 10:29:15 am »
[..] (I am a hobbyist) [..]

How many do you need to make?
Arduino Template Library | Zalt Z80 Computer
Wrong code should not compile!
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf