This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

10 MHz running counter

Since my hardware isn't going to be ready until after my software is more or less complete, I need to be able to simulate certain hardware elements.

One of the elements I need to simulate is effectively a 10MHz free running counter.  I've looked at the GP timers, and I don't see how I will be able to make such a thing.  As I understand it, my system clock is going to be 26MHz, and that's what the GP timers use as their time base.  Since the divisors only appear to be 2, 4, 8, and 16, the closest I can get to a free running counter at 10MHz is 26 MHz / 2 = 13 MHz.

Can you make any suggestions (cascading timers, perhaps?) as to how I can get to 10MHz?

Thanks in advance,

Matt Gessner

 

  • Hi Matt,

    One way of simulating a 10MHz clock would be to use the McBSP clock (in case you don't need to for anything else) which can be programmet to hit 9,6 MHz. I can't remember if you can make it run (and just causing underrun all the time) without supplying it data? In case not, you might need to setup a DMA channel to send dummy data to the McBSP for keeping the clock going...

    Another (and much easier way :-) I think would be to get a 10Mhz oscillator like http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=XC1068CT-ND and thereby avoid all SW impact :-) I think it might need doing a little soldering anyway while waiting for you real HW to get ready?

    Best regards - Good luck
      Søren