Forum Discussion
programming successful but no function of CPLD
- 3 years ago
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.
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.
how do you observe the counter output? What's the 1 kHz external clock source, sure it's suited as CPLD clock?
- Niko33 years ago
Occasional Contributor
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.
- FvM3 years ago
Super Contributor
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.- Niko32 years ago
Occasional Contributor
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.