Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

WRITE A VHDL CODE for the following (+20 point reward)

Status
Not open for further replies.

koolslash

Junior Member level 3
Joined
May 24, 2009
Messages
26
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,467
vhdl code for pulses at 50mhz

*only exact solution will get the reward.
URGENT SOLUTION NEEDED.

Problem: i want to count number of pulses of a DC motor operated at +5v. the clock used in controller was 50MHz. The Design consist of PID (16-bit output,8-bit input and feedback) +PWM.the #of pulses will be feedback so it should be scale to 8-bit. the max. number of pulses is more then 8-bit binary scale.[do verify/prove and provide it]
SO YOU HAVE TO WRITE VHDL CODE FOR THIS PULSE COUNTER, the output will be scale down to 8bits.

[NOTE]: PROVIDE MATHEMATICAL DERIVATIONS. ALSO FOR dc motor max pulses (derived by PWM)

Added after 2 minutes:

No. of counts should be measured in 1sec (then reset the counter and start counting again) and forward the 8-bit value to the PID as 8-bit feedback.
 

what folowing vhdl code represent

CHECK THE FOLLOWING CALCULATIONS IS IT RIGHT:
period = 1/frequency
Period of board = 1/ 50MHz = 20nsec
If period is of 1ms: No of cycles = 1sec / 20nsec = 50,000,000 cycles.
My step delay equation will be: (16-bit input to PWM) (2^16)-1=65536
step delay = No of cycles/ 65536 = 762.9 approx=763

2^10 (10-bits) will cover 763 setps.
now what if i cover it most significant 8bits. How much accuracy i will lost??

CAN I USE IT FOR MY CODING???
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top