Timing question for kuroneko
Cluso99
Posts: 18,069
kuroneko: As the resident expert, i wanted to ask how to best do the following....
I want to generate a clock output with 4 clocks high and 4 clocks low. That is easy enough. Now, I need to have the cog exactly timed to increment a group of output pins (being used to increment an sram address) 2 clocks after the output clock pin goes high. With internal prop timings I may need to make this 1 or 3, but itwill be fixed.
What I am trying to do is log 8 data pins into sram every 8 prop clocks (512KB samples) triggered by a sequence of events.
So the cog once running will be in a 2 instruction loop, being add and djnz.
What I anticipate doing is to inc phsa each 4 clocks withfrqa=$2000-0000. I presume to get the clock offset I will preset phsa. Am I on the right track?
I want to generate a clock output with 4 clocks high and 4 clocks low. That is easy enough. Now, I need to have the cog exactly timed to increment a group of output pins (being used to increment an sram address) 2 clocks after the output clock pin goes high. With internal prop timings I may need to make this 1 or 3, but itwill be fixed.
What I am trying to do is log 8 data pins into sram every 8 prop clocks (512KB samples) triggered by a sequence of events.
So the cog once running will be in a 2 instruction loop, being add and djnz.
What I anticipate doing is to inc phsa each 4 clocks withfrqa=$2000-0000. I presume to get the clock offset I will preset phsa. Am I on the right track?
Comments