Forum Discussion

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

Frequency variation in Quartus II with block diagram programming

Hi guys,

I am facing problem in varying frequency of a square wave signal in block diagram way of programming. Find the schematic of the block diagram in the Attachment. Pls suggest the necessary modifications to have a frequency of (40 khz) in the circuit.

--

Sumanta Kumar Show

Research Scholar

E&E Dept.

NITK Surathkal

Karnataka, India

5 Replies

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

    I am able to generate square wave signal having frequency of (4.8 kHz). But I need to increase it to (40 kHz). Please suggest me the change needed to do in the Block diagram programming.

    --

    with regards

    Sumanta Kumar Show

    Research Scholar

    E&E Dept.

    NITK Surathkal

    Karnataka, India
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hey Guys,

    Please have some response if you are familiar with the same problem of increasing frequency in FPGA as i have already mentioned. Its very urgent for me. Thanks in advance.

    --- Quote Start ---

    I am able to generate square wave signal having frequency of (4.8 kHz). But I need to increase it to (40 kHz). Please suggest me the change needed to do in the Block diagram programming.

    --

    with regards

    Sumanta Kumar Show

    Research Scholar

    E&E Dept.

    NITK Surathkal

    Karnataka, India

    --- Quote End ---

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

    Did you review the blurred picture in your post? How can you expect an answer referring to it?

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

    --- Quote Start ---

    Did you review the blurred picture in your post? How can you expect an answer referring to it?

    --- Quote End ---

    I will explain the logic which is given in the picture.

    Actually I need to generate a square wave output (0 - 10) volts in Block diagram programming. The schematic of the description is as below:

    1) The Internal clock is used to generate the Ramp signal.

    2) The Ramp is compared with a constant to generate square wave signal.

    3) Pin settings are done for 11 outputs of the DAC.

    My Cyclone II Altera chip (EP2C70F672C8) has Internal clock frequency of (400 MHz) which is able to produce a square wave output of (12 kHz) max. But I need (40 kHz) square wave signal.

    Pls provide with your suggestions for the above problem.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Dividing 400 MHz by 10000 (ramp counting from 0 to 9999) will achieve the intended frequency.