Recent content by EugP

  1. E

    Maginutude and Phase Angle for Nyquist Plots

    Magnitude and Phase Angle for Nyquist Plots Homework Statement The assignment is to draw a Nyquist Plot of a certain transfer function. The problem is that I can't figure out how they got the angle for the plot. G(s) = \frac{k(s+2)}{(s+1)(s-3)} Homework Equations...
  2. E

    How to divide a 24MHz clock to get 1kHz (in Verilog)

    Well the module "freq_divider" is an instance in my top level file. Maybe I defined it wrong or something, because in my simulations, the signals don't do anything. Here is the new frequency divider and top level modules (I tried cleaning up the top level as much as possible, because most of the...
  3. E

    How to divide a 24MHz clock to get 1kHz (in Verilog)

    Oh no no I changed the counter size as well (naturally) to 15 bits.
  4. E

    How to divide a 24MHz clock to get 1kHz (in Verilog)

    My clock input is now 24MHz, and the current_q == 1302, I have counter == 24000.
  5. E

    How to divide a 24MHz clock to get 1kHz (in Verilog)

    Yup. Here is the code I wrote last summer: module freq_divider( clk, //Clock 50 MHz reset_n, //Active low reset divided_frequency, //Divided frequency new_freq, current_q //Current value ); input clk; input reset_n; output divided_frequency; output [11:0] current_q...
  6. E

    How to divide a 24MHz clock to get 1kHz (in Verilog)

    Thanks everyone for the replies. negitron - it makes sense to me, but I don't know how to implement it Fenn - I'm trying to use the FPGA on the development board, but thank you anyway, I might use that for some other project. berkeman - I've looked at a bunch of Verilog tutorials, but I can't...
  7. E

    How to divide a 24MHz clock to get 1kHz (in Verilog)

    Hey guys, I'm using the Altera Cyclone II FPGA Development Board, with the goal of controlling a relay. I need to divide 24MHz to get 1kHz, but I don't know how to write the code for it. I know one way to divide it, would be to have a 10bit counter, which will allow me to divide it by 1k...
  8. E

    How Can I Convert Binary to Decimal?

    I'm trying to figure out how to convert from decimal to binary. I've read a few explanations but I still don't understand. Could someone please help? The method I've read about invloved dividing the number you want to convert, by 2 each time, and looking at the remainder.
  9. E

    What Are the Quantum Numbers and Properties of an Electron in a 3D Box?

    Homework Statement An electron is confined in a box where a = 60nm, b = 20nm, c = 35nm. For each of the first four quantum levels above the ground state give: a) The quantum numbers b) The speed of an electron trapped at that level c) The wavelength of light needed to excite an electron...
  10. E

    Calculating Stokes's Theorem on a Triangular Contour

    Actually yes, and I'm stuck on that too. Also, I thought I figured out how to finish the first part, but it's not working out. Here's what I'm getting: \oint \bold{E} \cdot d\bold{l} = \oint_0^1 xy dx + \oint_0^1 -x^2-2y^2 dy + \oint_c^a \bold{E}_{ca} \cdot d\bold{l} but I don't know...
  11. E

    Calculating Stokes's Theorem on a Triangular Contour

    Alright I got it. Thanks for all the help guys.
  12. E

    Calculating Stokes's Theorem on a Triangular Contour

    Awsome. So now that I set it up, I have \oint_a^b xy d\bold{l}, but I don't know l, or am I missing something obvious?
  13. E

    Calculating Stokes's Theorem on a Triangular Contour

    Thanks for the quick reply. I have 2 questions: 1) Shouldn't the integral from a to b, be \oint_a^b \bold{E}_{ab} \cdot \hat x d\bold{l} since ab is horizontal? 2) I'm not sure what to put for \bold{E}_{ab}. Should it be the component that acts only in the direction of ab, in other words...
  14. E

    Calculating Stokes's Theorem on a Triangular Contour

    Homework Statement For the vector field \bold{E} = \bold{ \hat x} (xy) - \bold{ \hat y} (x^2 + 2y^2), calculate the following: \oint \bold{E} \cdot d\bold{l} around the triangular contour shown. I don't have a scanner at the moment so I will explain the drawing. The picture is a right...
  15. E

    Drift Velocity, TCR, and Atomic/ Weight Percentages

    Homework Statement I'm taking a metrials class, and there are 2 questions I'm not sure how to do. I would see the professor first, but he refuses helping students until the assignments is submitted. 1) A circular tungsten (W) wire that is 0.1m long and 1mm in diameter has 9V dropped across...
Back
Top