Skip to content
campbellsan edited this page Jan 12, 2013 · 1 revision

No need for a waveform for this one.

Use this core to test your newly built Guzunty Pi SB. Although very easy to build (we have not seen a failed board so far), it is good to be able to test that it all works before using it with a project.

This core takes a clock input from the Raspberry Pi GPIO4. It then divides this clock down into different frequencies dividing by powers of 2. We use 8 different powers of 2 and output each on a number of output pins. This produces a square wave output on every pin of the CPLD (except of the clock input of course). There are four groups of 8 pins. Bit 0 of each group divides the input clock by 2^13, up to bit 7 which divides the clock by 2^20. There are a total of 34 IO pins on the CPLD. We test 32 of the pins using the 4 groups of 8 pins, 1 pin is dedicated to the clock input, so we would see no output at all if there were something wrong with this pin. That leaves just one pin remaining, which we test by passing a divide by 2^20 signal to it.

These divisions are selected, together with the input clock frequency, so that the device may be tested with minimal equipment. The slower signals can be seen on a multimeter. The faster ones may be tested using an light emitting diode with series resistor with a value around 90 ohm. If you have an oscilloscope, so much the better. You can check each output has a nice clean square signal output.