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.

INTERGER TO BINARY SCALING(VHDL)

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
binary scaling

if the frequency is 50MHz.
i get approx. 50,000,000 pulses in 1sec.

when i will read it from the sensor then and count them.
then how can i put this huge integer values on 8-bit binary scale.

means: 50,000,000 => '11111111'
00000000 => '00000000'

it works same as ADC. i.e. max volt to full scale reading.

SO ANY IDEA HOW WILL I DO THIS.
 

scaling binary vhdl

just an idea if i've understood the question....


put it in 26 bit register (2^26 is > 50M) and take the Most significant part,

the first 8 bit of the register.


B.
 

vhdl scaling

take the Most significant part
Scales 50e6 to 190 instead of 255. If a better scaling is intended, you need a multiplier. As a more simple solution, adjust the gate time accordingly.
 

scaling in vhdl

Scales 50e6 to 190 instead of 255. If a better scaling is intended, you need a multiplier. As a more simple solution, adjust the gate time accordingly.


can u simplify what u want to say.

actually i have counted the pulses now only wanted to scale the decimal values to 8-bit binary.
i also tried to do using 8-bit flip flop counter (trigger on pulse) but can't count total pulses.

So any simplified and understandable idea of scaling??

I shall be thankful to u.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top