Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
Thread Tools Display Modes
Old 10th May 2008, 10:39 PM   (permalink)
Experienced Member
 
Boncuk is just really niceBoncuk is just really niceBoncuk is just really nice
Send a message via MSN to Boncuk
Question PLD-Programming

Hi everbody,

I have downlaoded a project off a japanese site which involves a PLD (Lattice ispLSI2032/E).

Looking at Lattice Semiconductors I can't find any information concerning programming of that device.

The ISP-connector is an 8-pin box header with 7 pins connected to the PLD.

The signal nets are not labelled in the schematic and I have no idea which signals are used for programming.

Anybody there having experience with PLDs?

Regards

Hans
Boncuk is offline   Reply With Quote
Old 12th May 2008, 03:45 AM   (permalink)
Experienced Member
Blueteeth is on a distinguished road
Default

http://www.fpga.com.cn/lattice/lattice_cable.pdf
http://www.students.tut.fi/~leinone3...spdlckuva2.png
http://elm-chan.org/works/avrx/lattice.png
http://www.students.tut.fi/~leinone3/dcn2692/index.html

I've used the top one, only tested on MACH4A5 (about 6 years ago lol).

You will also need 'ispVM' download software. For which lattice will probably ask you to get a license, but you may be able to request it, just say you're student. As for the whole software, they do a trial version for a few select CPLD's/FPGA's for 6 months. Or possibly for free if its the 'Classic' version, which only supports the older chips like yours.

Lattice are very shadey about their hardware/software, which is why I switched to Xilinx and Altera. Also the LSI2032 is pretty old, I'm not sure its widely available (mature product).

Regards,

Blueteeth
__________________
Inconsistency is the key to flexibility!
Blueteeth is offline   Reply With Quote
Old 12th May 2008, 11:05 AM   (permalink)
Experienced Member
petrv will become famous soon enough
Default

I have experience with PLDs, but not with Lattice, only with Xilinx. Xilinx CPLDs are programmed using JTAG and it is quite easy with PC parallel port. I have seen even Xilinx CPLD JTAG connections directly hooked to the parallel port.
Xilinx itself supports this but they use 74HC125 as a buffer to separate the PLD from the parallel port (Xilinx Parallel cable III). Also Xilinx software (ISE Webpack) is free download.
petrv is online now   Reply With Quote
Old 12th May 2008, 01:07 PM   (permalink)
Experienced Member
 
Boncuk is just really niceBoncuk is just really niceBoncuk is just really nice
Send a message via MSN to Boncuk
Default PLD programming

Hi Blueteeth and petrv,

thank you very much for you reply. Programming via the parallel port is one more problem, since newer mainboards simply don't have it anymore, and so is mine. I already downloaded the buffered 25-Pin parallel port adapter and this is not very clear. The schematic differs a lot from the data sheet of the 74HC244, and of course, there are no pin numbers in the schematic.

To petrv,

since you have experience programming PLDs I would like to know if you could program one for me. I'll try to find an equivalent at Xilinx, send that and the programming code to you. All expenses will be on me.

Kind regards

Hans
Boncuk is offline   Reply With Quote
Old 12th May 2008, 01:33 PM   (permalink)
Experienced Member
petrv will become famous soon enough
Default

Hi,

My motherboard also does not have a parallel port but - why don't you buy a PCI parallel port card ? It is not that expensive. (just no USB adapter, it will not work). You need a true hardware compatible parallel port.

The Xilinx parallel cable uses 74HC125, not 74HC244. Look for example here:

http://toolbox.xilinx.com/docsan/xil...appendixb.html

As for the PLD design - do you have the source (VHDL, Verilog) .... ?

Petr
petrv is online now   Reply With Quote
Old 12th May 2008, 01:41 PM   (permalink)
Experienced Member
Blueteeth is on a distinguished road
Default

Just out of interest, what would this project be? As in, what funciton would the CPLD play?

I ask because, looking at the 2032, its just a 32 MC device, and looks to be similar the MACH4A series, also has different timing specs.
Also, farnell DO stock it: http://uk.farnell.com/3327711/semico...i2032e-110lj44

Of course, Xilinx do very similar devices, as the 32-34 MC is the low end of the CPLD range. Handy little buggeres too.

And do you have the HDL language? or the *,jed* (jedec) file which can be downloaded into the device. The first would require 'fitting' with software (similar to compiling microcontroller code), where-as the JED is like a HEX file, and only requires the download software and parallel port adapter.

If you have access to a parallel port I can reverse-engineer my programming adapter. Just tested it, works like a charm.

Blueteeth
__________________
Inconsistency is the key to flexibility!
Blueteeth is offline   Reply With Quote
Old 12th May 2008, 01:43 PM   (permalink)
Experienced Member
petrv will become famous soon enough
Default

You won't find pin-compatible part but the Xilinx part will probably fit with a very small redesign. If I read the Lattice DS correctly it is a 32-register PLD
so you can try Xilinx XC9536 or XC9572 - both are in PLCC-44 package and pin compatible with each-other. XC9536XL or XC9572XL would be much cheaper but they require 3.3V power (but I/O is 5V tolerant) so if you have there a 3.3V power better use the cheaper 3.3V part (or add a LDO like LD1117-33 and use it anyway).
petrv is online now   Reply With Quote
Old 12th May 2008, 09:04 PM   (permalink)
Experienced Member
 
Boncuk is just really niceBoncuk is just really niceBoncuk is just really nice
Send a message via MSN to Boncuk
Default

Quote:
Originally Posted by Blueteeth
Just out of interest, what would this project be? As in, what funciton would the CPLD play?
It's a 2.4GHz eight digit (LED-display) frequency counter with both, analog and digital inputs. A prescaler divides the high frequencies by 64 and the PLD is used as a general prescaler and to switch functions as time base and frequency and 1/f. There are only few pins occupied on the PLD device. The design is interesting from the point, that most frequency counters have an error of one digit because they don't use signal synchronization, e.g. measuring mains frequency they would display 51Hz instead of 50.

I have never worked with PLDs and therefor I need all the help I can get. The design is very interesting because of parts which are normally not used in digital circuits, e.g. single HC-AND-gate in a SOT23-5 package, saving 7 pins and lots of space.

If you are interested in the article I'll send you all the information via email, including a first layout. The author never made a printed board. He was satisfied with wires.

Regards

Hans
Boncuk is offline   Reply With Quote
Old 12th May 2008, 09:26 PM   (permalink)
Experienced Member
 
Boncuk is just really niceBoncuk is just really niceBoncuk is just really nice
Send a message via MSN to Boncuk
Default

Quote:
Originally Posted by petrv
You won't find pin-compatible part but the Xilinx part will probably fit with a very small redesign. If I read the Lattice DS correctly it is a 32-register PLD
so you can try Xilinx XC9536 or XC9572 - both are in PLCC-44 package and pin compatible with each-other. XC9536XL or XC9572XL would be much cheaper but they require 3.3V power (but I/O is 5V tolerant) so if you have there a 3.3V power better use the cheaper 3.3V part (or add a LDO like LD1117-33 and use it anyway).
Hi petrv,

I found an XC9536-5PC44C, 5 volt PLCC44 package. I guess this would match the Lattice device (32 registers). Having downloaded the data sheet there was no information about the pin layout of it. Where can I find that? (Very strange for a data sheet not containing a pin describtion.) The MCU beeing partly controlled by the PLD is an ATMEL AT90S8515-8J (also PLCC44).

Kind regards

Hans
Boncuk is offline   Reply With Quote
Old 13th May 2008, 05:53 AM   (permalink)
Experienced Member
Blueteeth is on a distinguished road
Default

Yeah Xilinx are also a bit weird (seems all the CPLD manufacturers haven't got the hang of a nice easy to read datasheet). In the datasheet for the XC9536** they do have pin mapping, but its not as easy to read as a nice diagram. Try these:

http://www.geocities.com/leon_heller/xc9536_sch.gif
http://www.megacu.com/images/XC9536_PIN.gif

And if you're using the PLCC package with a socket for through-hole prototyping:

http://www.xiaoming-lab.com/06%20app...iles/fig07.gif

Hope that helps.

Blueteeth
__________________
Inconsistency is the key to flexibility!
Blueteeth is offline   Reply With Quote
Old 13th May 2008, 10:57 AM   (permalink)
Experienced Member
 
Boncuk is just really niceBoncuk is just really niceBoncuk is just really nice
Send a message via MSN to Boncuk
Default PLD programming

Hi Blueteeth,

according to the little information I had until now about JTAG and Power pins the schematic you suggested is obviously the one of a PLCC44 package.

Strange enough, many manufacturers shift the pin numbers by six between PLCC and VQ packages. E.g. TDI is at pin9 of a VQ44 package and it is at pin15 of a PLCC44 package.

Thank you very much for the info. I guess the XC9536-5PC44C is just the right replacement for the Lattice ispLSI2032E. It only takes some comparison to get the proper pins.

One more question just in case I can't get the device programmed. I have an English friend (Chris Shakespeare) who comes here every once in a while to visit his girl. If lives not to far from your home he could pick up the programmed device for me and pay what you charge for your work.

Is it OK for you if I talk to him in this matter?

Kind regards

Hans
Boncuk is offline   Reply With Quote
Old 13th May 2008, 03:29 PM   (permalink)
Experienced Member
petrv will become famous soon enough
Default

I don't think it is practical to ask someone else to program the device (especially in another country) - especially in this case as you are going to do a little redesign - replacing the PLD - so you will need to have a new programming file. Obviously you cannot program Xilinx device with a file for Lattice device. If you have the sources (VHDL, Verilog ....) you can just run the synthesis tool and hope it will work, otherwise unfortunately you'll have to design the logic from the scratch. For each development there at least a few iterations and it would be extremely inpractical to ship the device to another country and back to reprogram it with the new version (after fixing a problem etc).

I assume you don't want to buy the Xilinx USB JTAG adapter ($160) so you can build the simple parallel port adapter with 74HC125 but you will need to buy a PCI parallel port card for your PC if you don't have a parallel port.
The card should not be that expensive (but as I said it must be PCI, not USB)
petrv is online now   Reply With Quote
Old 13th May 2008, 03:40 PM   (permalink)
Experienced Member
 
Blog Entries: 4
blueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to beholdblueroomelectronics is a splendid one to behold
Send a message via Skype™ to blueroomelectronics
Default

Quote:
Originally Posted by petrv
The card should not be that expensive (but as I said it must be PCI, not USB)
That part should be in bold text.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now   Reply With Quote
Old 14th May 2008, 06:50 AM   (permalink)
Experienced Member
 
Boncuk is just really niceBoncuk is just really niceBoncuk is just really nice
Send a message via MSN to Boncuk
Default

Quote:
Originally Posted by petrv
I assume you don't want to buy the Xilinx USB JTAG adapter ($160) so you can build the simple parallel port adapter with 74HC125 but you will need to buy a PCI parallel port card for your PC if you don't have a parallel port.
The card should not be that expensive (but as I said it must be PCI, not USB)
Wow! That's a lot of money for an item I will probably use once. The STK500 (ATMEL) is just 79.70 EURO and blueroomelectronics' Junebug (PICs) is US$ 49.00 (or close to that)

I made the parallel cable adapter already as a board design and a PCI parallel port card will cost 15.00 EURO. The adapter is pretty small considering that all parts are discretes including two 10pin box headers (2.4X2.1inch)

The programming, I guess, must be done anyway. All I have is a list of variables and in/out advices in word.doc format.

Regards

Hans

Last edited by Boncuk; 14th May 2008 at 06:54 AM.
Boncuk is offline   Reply With Quote
Old 14th May 2008, 11:24 AM   (permalink)
Experienced Member
petrv will become famous soon enough
Default

Ok so if you have the PCI parallel port card and built the adapter - not all parts are discretes, 74HC125 is IC not a discrete component. You *must* build the JTAG adapter exactly as specified by Xilinx otherwise it will not be compatible with their software.

So now the next step would be to get the free Xilinx ISE Webpack software. I hope you have a good internet connection, it is a very big download. Just register at www.xilinx.com (free, you just need a working e-mail address) and then download the ISE Webpack for free.

Then you can write the design, build the programming file and program the CPLD using your adapter. I can assure you will use the programming adapter more than one as Mr. Murphy says any design (non-trivial) contains at least one bug ...

Petr
petrv is online now   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
Errors while programming a PIC16F874A Kitt0s Micro Controllers 17 8th March 2008 07:12 PM
Question about Inchworm+ Quan Micro Controllers 54 28th October 2007 12:20 AM
UNIT Committment solution using Dynamic programming arijit18 Electronic Projects 1 18th October 2007 08:27 PM
Programming languages sram General Electronics Chat 9 2nd March 2007 04:14 PM
Good Computer Programming Book ThermalRunaway Chit-Chat 21 16th September 2005 10:05 PM



All times are GMT. The time now is 05:05 PM.


Electronic Circuits  |  Radio Controlled
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.