Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Avisos
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
21615 Discusiones

programming successful but no function of CPLD

Niko3
Nuevo Colaborador I
3.075 Vistas

Hi, I am quite new with CPLD design and hope to get help here.

For test purposes and learning I made a simple schematic with an external clock of 1 kHz, a 4bit counter (74161) and a BCD to 7 segment decoder (7448). All 4 outputs from counter and 7 outputs from decoder are available on pins of the CPLD.

I programmed a MAX300 EPM3064ATC44 on a self made board with a USB Blaster Rev. c. Quartus II programmer reported 100% successful programming and verification. But the counter outputs don't look like binary counting. They are totally confused.

I also programmed the same schematic to a MAXII EPM240T100 on a test board from ebay. Again programming was successful but counter outputs are confused.

 

The USB Blaster is a clone from ebay. It contains a STM32FEB but no output driver for level conversion. Both boards, my self made one and the board from ebay, are powered with 3.3 V and also VCC_IO for both chips is 3.3 V. Therefore level conversion is not necessary.

The board from ebay was delivered programmed with a blinking example. Therefore the chip should be ok.

 

What could have happened that after successful programming the chips don't work as expected?

 

A picture of the ebay board and USB Blaster ist attached.

0 kudos
1 Solución
FvM
Colaborador Distinguido II
2.970 Vistas

Hi,
which series resistor value? Clock edge may be too slow and cause multiple transitions. As you say it's a self designed board, insufficient power supply bypassing and ground bounce can cause irregular CPLD behaviour.

Ver la solución en mensaje original publicado

8 Respuestas
FvM
Colaborador Distinguido II
3.061 Vistas

Hi,
I suspect your code in the first place.

Niko3
Nuevo Colaborador I
3.056 Vistas

I didn't write code. I used the block editor to design the schematic, see attachment (for EPM240).

I also made a simulation which showed correct waveforms.

FvM
Colaborador Distinguido II
3.030 Vistas
Hi,
how do you observe the counter output? What's the 1 kHz external clock source, sure it's suited as CPLD clock?
Niko3
Nuevo Colaborador I
3.025 Vistas

I use a DSO/state analyzer. It has a 5V  1 kHz clock output. The 5V output is scaled down to 2.8V with a serial resistor and a zener diode.

Five channels of the state analyzer show the clock input and the 4 counter outputs which are connected to pins of the CPLD.

FvM
Colaborador Distinguido II
2.971 Vistas

Hi,
which series resistor value? Clock edge may be too slow and cause multiple transitions. As you say it's a self designed board, insufficient power supply bypassing and ground bounce can cause irregular CPLD behaviour.

Niko3
Nuevo Colaborador I
2.869 Vistas

Thank you FvM for your tips.

It really was a too slow clock slope. After many tests with varying conditions I had a look on the clock slope with high time resolution, see the attachment. The yellow track is the rising edge of original 1 kHz clock and the red one is after an inverter. With the improved slope my circuit works fine.

NurAiman_M_Intel
Empleados
2.963 Vistas

Hi,


May I know from where did you purchase the MAX3000? Is it from Intel authorized distributor?

MAX3000 were obsolete back in 2018.


Additionally, you can also refer to below page for MAX3000:


https://www.intel.com/content/www/us/en/support/programmable/support-resources/devices/max-3000-support.html


Regards,

Aiman


NurAiman_M_Intel
Empleados
2.846 Vistas

I’m glad that your question has been addressed, I now transition this thread to community support. If you have a new question, feel free to open a new thread to get the support from Intel experts. Otherwise, the community users will continue to help you on this thread. Thank you.


Responder