Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Capturing 8 bit data on 10 mhz square wave

  1. #1
    Banned
    Join Date
    May 2014
    Location
    hyderabad,india
    Posts
    1

    Capturing 8 bit data on 10 mhz square wave

    hello friends,
    i am doing a project in which i have to sample 8 bit parallel data on positive edge of 10 mhz clk.i used attachinterrupt() function on the clk pin,but i am unable to capture the every clk data.it is working with frequency less than 1 mhz. can anyone give me few pointers?

    Thanks & Regards,
    abhilash v

  2. #2
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    5,679
    Yes: this is not possible without external additional Hardware like RAM.
    We have 48MHz F_BUS, so only 4 cycles to capture the data at 10MHz.

    The easiest is, to buy a cheap logic analysator :-)

  3. #3
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,544
    You might be able to keep up with 10 MHz using a tightly coded loop that polls the input pin, reads an 8 bit GPIO register and writes to a buffer. Maybe. Timing would be very tight, since 10 MHz is only 9 cycles.

    The easy (but expensive) way to build this sort of project involves a FIFO memory chip. Here's one example:

    http://www.cypress.com/?mpn=CY7C4261V-15JXC

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •