Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
17 years ago

Cyclone III AS Configuration

Hello,

I am having some problems getting AS configuration working with my Cyclone III FPGA. I am using an EPCS16 for the configuration chip and the C3 is a EP3C25F324C8N on a custom board. The board has 2 10 pin headers, one that is connected to the JTAG pins on the FPGA and the other which is used to program the AS device. Using Quartus II and a USB Blaster dowload cable I can succesfully program the FPGA over JTAG. I can also program the AS device over the 10 pin header. My problem is trying to get the FPGA to configure itself from the AS device. Probing some pins I have the following sequence of events.

1. nStatus is released and begins to rise since its connected to a 10k pullup.

2. DCLK begins to oscillate.

3. After about 2 DLCK cycles nCSO (connected to AS enable pin) goes low.

I'm assuming this means that the FPGA has entered configuration mode. Now the problem is that for some reason the nCSO line goes high after about 16 DCLK cycles and then I'm guessing an error is detected and thus the nStatus pin goes low. This behavior repeats over and over since the FPGA automatically resets on a configuration error. Any ideas as to the cause of the problem?

Thanks,

Andrew

17 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    To prove my oscilloscope is configured correctly I've used the same probe to measure the output of a 50 MHz crystal oscillator I have on the board. Here is a plot of that output.

    I agree that the rise and fall times are pretty large but that must be from some other capacitance. As I mentioned, my circuit is identical to Figure 10-29 in the Cyclone III handbook. Any ideas what's going wrong?

    http://www.stanford.edu/%7Eadprice/3.bmp

    http://www.alteraforums.com/forum/www.stanford.edu/%7Eadprice/3.bmp
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    May be you have assembled caps of about 470p to 1 nF instead of 10 pF?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Good idea, but no luck. I removed the caps and the signals looked exactly like the previous plot I posted. Correct me if I'm wrong, but DCLK looks ok, it's just the rise time on nCSO and the ASDO lines that look bad, right?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Correct me if I'm wrong, but DCLK looks ok, it's just the rise time on nCSO and the ASDO lines that look bad, right?

    --- Quote End ---

    DCLK may be regarded OK, but it doesn't look like a FPGA output signal, the other signal are beyond acceptable specifications. A hardware engineer should be able to see the reason with the board at his fingertips, but not from a distance.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Well, if anyone still follows this thread, I fixed my problem. The culprit was the clamping diodes (see reference circuit in handbook). I'm not really sure why that fixed it though. Maybe they were backwards, or maybe they were the wrong type of diode. If I get bored I might play around with it.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    From the capacitance estaimation, you seem to have used zener diodes or power rectifiers. Small signal schottky diodes would be correct.