Say I got a NTSC color reference xtal
potatohead
Posts: 10,261
in Propeller 2
What do I need to do to run an evaluation board from that crystal?
Just a swap in? Is there a particular kind?
I just got hold of a great CRT that needs alignment and calibration. It is way better than the old Atari computer I normally use for this task.
Thought I might just make a set of P2 programs to get this done. It's output will be more than good enough.
I am asking because I remember some discussion about xtals and P2, but can't quite remember it. On my P1 boards, I would just drop the new one in, setup and go.
Maybe that's true for the eval boards as well?
Just a swap in? Is there a particular kind?
I just got hold of a great CRT that needs alignment and calibration. It is way better than the old Atari computer I normally use for this task.
Thought I might just make a set of P2 programs to get this done. It's output will be more than good enough.
I am asking because I remember some discussion about xtals and P2, but can't quite remember it. On my P1 boards, I would just drop the new one in, setup and go.
Maybe that's true for the eval boards as well?
Comments
I just did a compile check and if you set _clkfreq to 3_579_545 * 64, you get 229,090,909 Hz, which is only 29 Hz above the target 229,090,880 Hz. That's an error of only 0.127ppm, which is much better than the base crystal accuracy.
So, maybe there's no need to use that colorburst crystal.
The lower MHz one would likely need 30pF pin C selected.
Why would it not ?
It's a CMOS inverter oscillator, and those are good for 3~24MHz on most MCUs
The PLL has plenty of scope on the dividers.
Usually, a new design would pick a higher MHz because they are smaller and cheaper.
Good point, if that operating point is good enough.
20MHz / 11 is a high enough PFD to have low jitter.
20MHz * 126 / 11 = 64 * NTSC colour burst exactly.
Update: just tried it. Looks pretty clean. S-Video has no real artifacts except some foreground and background colour combinations don't look good together. Composite is stable colour but has a little bit of crawl on the character edges with some colour combinations. This might be normal too. The picture below is the composite output from my driver with these settings on a Dell monitor. I wonder how it looks on a decent CRT monitor? @potatohead would you like a binary with this test inside it? If so, it is attached below. It outputs the s-video on pins 0,1 and CVBS on pin 2 of a P2-EVAL with the A/V breakout board fitted on pins 0-7.
And here's the s-video version:
20MHz * 315 / 22 = 80 * NTSC colour burst exactly.
Try displaying some checkerboards and vertical stripes - those will cause solid artifact colors when the pixel clock is a multiple of the color carrier. (Proper NTSC encoder chips filter put the luma through a 3.58 MHz notch filter to avoid this. You could do that with the S-Video output on the prop, too, to get higher quality composite.)
229.0909MHz = 20MHz * 126 / 11, divided by 16
257.7272MHz = 20MHz * 567 / 44, divided by 18
286.3636MHz = 20MHz * 315 / 22, divided by 20
257.7272MHz could output 640x480 HDMI using increased blanking (818 pixels/line).
Is that a real issue with XFRQ? Anyway, I thought I'd post those frequencies to save others calculating them.