serial out

J

john

Hi,

I am using clk of frequency 10Mhz to read 4 bytes of data from a
SRAM. I am moving the data into buffer byte by byte and then, I need
to serial out the data at clock rate of 2Mhz. I want to synchronize
the whole operation.
I am using state machine to read the SRAM, then after clock the 3
bytes into the buffer, I am generating a strobe signal form the state
machine to turn on the counter running at the 2Mhz frequncy. I got
2Mhz clock by dividing the 10Mhz clock. But I am getting the correct
data. Can anybody advice me the correct algorithm

Thanks
John
 
M

Mike Treseler

john said:
I am using clk of frequency 10Mhz to read 4 bytes of data from a
SRAM. I am moving the data into buffer byte by byte and then, I need
to serial out the data at clock rate of 2Mhz. I want to synchronize
the whole operation.
I am using state machine to read the SRAM, then after clock the 3
bytes into the buffer, I am generating a strobe signal form the state
machine to turn on the counter running at the 2Mhz frequncy. I got
2Mhz clock by dividing the 10Mhz clock.

Read up on clock enables to start with:
http://groups.google.com/groups/search?q=vhdl+clock+enable&scoring=d
See some related examples here:
http://home.comcast.net/~mike_treseler/

-- Mike Treseler
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top