10 mhz signal with ctra
tholberton
Posts: 41
I'm trying to drive a 10mhz signal with a counter, and i'm not really getting a response with:
Can anyone explain this to me? I feel like such a newb right now
mov dira,#1 movi ctra,counter_control movs ctra,#1I've read about the frgx and phsx, but I don't understand what that has to do with the output of hte signal.
Can anyone explain this to me? I feel like such a newb right now
Comments
You're nearly there. First issue is, you setup dira for pin 0 (mask, |< 0) but tell the counter to use pin 1 (number). Then you need to give the counter something to work with, i.e. something which can be added to phsx in order to affect the output pin(s). Try this:
001
010
011
100 - toggled on
101
110
111
001 - toggled off
right?
I see what you did there.
Though 0.01Hz might be quite useful in time-lapse applications.