Forums

JTAG Opcodes for Altera MAX7000S

Started by Patrik February 24, 2004
Hi,

I try to program a JTAG chain with a MAX7064S and a MAX7032S via JTAG with 
a microcontroller. The problem is, that I couldn't find the JTAG opcodes 
for ISP. Is there any documentation about it?

Thanks,
Patrik
Patrik <pclad.adr@firemail.de> wrote in message news:<opr3vqbzylhr4cxo@news.t-online.de>...
> Hi, > > I try to program a JTAG chain with a MAX7064S and a MAX7032S via JTAG with > a microcontroller. The problem is, that I couldn't find the JTAG opcodes > for ISP. Is there any documentation about it? > > Thanks, > Patrik
Hi Patrik, The way to program the MAX 7000S is by using Jam. Jam is a language for manipulating the JTAG chain - you can actually use it to do pretty much anything JTAG related, but it's optimized for programming CPLDs. The advantage is that the process of programming through JTAG is somewhat complicated, and this makes it quite easy. The basic idea is like this: 1. You use Quartus II (or MAX+PLUS II) to make the Jam file after compilation. 2. Altera supplies source code for the "Jam Player". You compile this for your microprocessor. 3. You load the Jam file into your system memory. 4. The microprocessor runs the Jam player, which reads the Jam file, and executes it. While executing, it manipulates the JTAG pins on the MAX device to program it. The Jam player can also verify the programming. There's a lot more detail behind this, so there's info on the Altera web site. This page has all the Jam downloads: https://www.altera.com/support/software/download/programming/jam/jam-index.jsp This app note gives general info about ISP (In-System Programming) for CPLDs. http://www.altera.com/literature/an/an095.pdf This app note gives more details about using Jam for ISP. http://www.altera.com/literature/an/an122.pdf Happy Programming! Greg Steinke gregs@altera.com Altera Corporation
Hi Greg,

the problem is, that I have to program the devices with a microcontroler, 
not an embedded Processor. Therefor I cannot use the JAM language, because 
the JAM Interpreter wouldn't compile on an microcontroler (maybe a ATMEL, 
it's not decisioned, yet).

Thanks,
Patrik
Patrik <pclad.adr@firemail.de> wrote in message news:<opr3znynuohr4cxo@news.t-online.de>...
> Hi Greg, > > the problem is, that I have to program the devices with a microcontroler, > not an embedded Processor. Therefor I cannot use the JAM language, because > the JAM Interpreter wouldn't compile on an microcontroler (maybe a ATMEL, > it's not decisioned, yet). > > Thanks, > Patrik
Hi Patrik, Altera has developed a Jam solution (include code) for the 8051 microcontroller, which is one of the Atmel options. This is documented in App Note 111, Embedded Programming using the 8051 and Jam Byte-Code. http://www.altera.com/literature/an/an111.pdf The source code is available on: https://www.altera.com/support/software/download/programming/jam/dnl-8051_player.jsp It took some optimization to get this to go into the 8051, but it does work and is easy to use after this optimization was complete. Sincerely, Greg Steinke gregs@altera.com Altera Corporation