Cluso99 wrote: »
Seems like touching the P2 chip has nothing to do with cooling the chip. Perhaps it is either capacitance or grounding related.
potatohead wrote: »
Where is this area?
Tubular wrote: »
@dgately, try DIV = 2 and MUL = 25 (still gives 250 MHz dot clock)
Rayman wrote: »
ozpropdev's mistake on oscillator made me check my own code...
Seems I had _XOSC set wrong in the VGA demo's I posted.
I'm surprised it works with _XOSC=%01, but it did...
Changed to _XOSC=%10 now...
Rayman wrote: »
Here's the V32i VG 640x480x8bpp example adapted for real P2.
Clock set to 250 MHz.
Looks very solid.
I think the changes originated from ozpropdev…
P4=vsync, P0=hsync, P1..P3 are RGB...
_XTALFREQ = 20_000_000 ' crystal frequency
_XDIV = 2 ' crystal divider to give 10MHz
_XMUL = 25 ' crystal / div * mul
_XDIVP = 1 ' crystal / div * mul /divp to give _CLKFREQ (1,2,4..30)
_XOSC = %01 'OSC ' %00=OFF, %01=OSC, %10=15pF, %11=30pF
_XSEL = %11 'XI+PLL ' %00=rcfast(20+MHz), %01=rcslow(~20KHz), %10=XI(5ms), %11=XI+PLL(10ms)
_XPPPP = ((_XDIVP>>1) + 15) & $F ' 1->15, 2->0, 4->1, 6->2...30->14
_SETFREQ = 1<<24 + (_XDIV-1)<<18 + (_XMUL-1)<<8 + _XPPPP<<4 + _XOSC<<2
_ENAFREQ = _SETFREQ + _XSEL ' %0000_000e_dddddd_mmmmmmmmmm_pppp_cc_ss ' enable oscillator
'Serial functions for data logging
rx_pin = 63
tx_pin = 62
baud_rate = 115_200
clock_freq = _XTALFREQ / _XDIV * _XMUL / _XDIVP
' SmartSerial hello world program
' just repeats "hello, world!" over and over
oscmode = $010c3f04
freq = 160_000_000
baud = 2_000_000 ' default baud rate for loadp2 / spin2gui
ser.start(63, 62, 0, baud) ' P2 serial default pins
ser.str(string("Hello, world!", 13, 10))
pilot0315 wrote: »
I will look at them, thanks. I assume I can run these in spin2gui or one of the other gui's that I have seen in the forums.
Btw in Cluso's P2ES-EVAL-Demo-002 for P2-ES v32i Silicon I am looking at stuff like this:
I have been scanning the P2 documentation searching for these $fcf3e4. They do not come up. Some clarification please.