P2 equivalent of P1 PLL counter modes?
Roy Eltham
Posts: 3,000
in Propeller 2
We have the equivalent of most of the P1 counter modes on P2 via smartpin modes/settings.
However, it appears we don't have anything that works like the P1 PLL counter modes. This was used on P1 to do things like output frequencies up to 128Mhz (above sysclock), and with less jitter and mode precision on frequency selection.
On P2, using NCO_Frequency mode, you can hit higher frequencies than P1 could with regular NCO mode, but things start being problematic if you go above sysclock/8 and really go bad above sysclock/2. At least with my testing.
Am I missing something? I know my analyzer is a factor above a certain point because it can only sample at 500Msps for logic analyzer mode (thus quantizing everything to 2ns steps), but I'm accounting for that I believe.
Also, what is the actual physical pin transition time?
However, it appears we don't have anything that works like the P1 PLL counter modes. This was used on P1 to do things like output frequencies up to 128Mhz (above sysclock), and with less jitter and mode precision on frequency selection.
On P2, using NCO_Frequency mode, you can hit higher frequencies than P1 could with regular NCO mode, but things start being problematic if you go above sysclock/8 and really go bad above sysclock/2. At least with my testing.
Am I missing something? I know my analyzer is a factor above a certain point because it can only sample at 500Msps for logic analyzer mode (thus quantizing everything to 2ns steps), but I'm accounting for that I believe.
Also, what is the actual physical pin transition time?
Comments
If you need better than NCO with a higher sysclk can deliver, then some external generator is needed.
The Si5351A is a possible next step ?
The P2 version just won't be as capable as the P1 version in this case.
@cgracey Do you have any comments on this? Is there way to get better precision and less jitter at higher frequencies when using NCO_Frequency mode? Or perhaps some other mode?
EDIT: Maybe there are fancy filters, that could be added externally, to reshape the dither into something cleaner, dunno.
For my needs, it's fine. I was just checking to make sure I didn't miss something, and it sounds like I didn't.
This doesn't mean the P2 isn't cool. For example, check out the goertzel demo. It just means it's not 100% backward compatible.