Shop OBEX P1 Docs P2 Docs Learn Events
samples — Parallax Forums

samples

I've been working with v6 and waiting for things to settle out... which seems to be happening very nicely.

While the rug-rat is napping, decided to upgrade everything to v7. In five minutes, I couldn't get serial working and my mods for NTSC don't work either.

If you have a simple sample of either of these, I would appreciate it.

Thanks

Rich

Comments

  • Rich
    The PINSETM instruction format has changed as follows
    D/# = %1_DD_MMMMM_BBBB_AAAA_LL_T_PPPPPPPPPPPPP
    is now
    D/# = %BBBB_AAAA_FFF_PPPPPPPPPPPPP_T_D_MMMMM_1
    
    That is probably the cause of your issues

  • Rich
    Here's a sample of my current async tx code
    	baudrate = 3_000_000
    	nco_baud = round(float($1_0000) / (float(sys_clk) / float(baudrate)))
    
    screen_grab	pinsetm	#%1_11110_1,#tx_pin
    		pinsetx	##$8000_0000 | nco_baud << 16 | %1_00000 | 7,#tx_pin
    		setb	dira+tx_pin>>5,#tx_pin
    		loc	ptrb,#@palette
    		mov	adrb,##(264+(384*1024))
    .loop2		rdbyte	adra,ptrb++
    .loop1		pingetz	ptra,#tx_pin wc
    	if_c	jmp	#.loop1
    		pinsety	adra,#tx_pin
    		djnz	adrb,#.loop2
    		ret
    
  • rjo__rjo__ Posts: 2,114
    Thanks Brian
  • rjo__rjo__ Posts: 2,114
    IT would have been easier if I had been looking at the right documentation:)

    Supposedly, I will have time to try this out tonight.

    P2 is looking fabulous.

    I assume that the only issue with the NTSC stuff is setting the NCO correctly.


  • rjo__ wrote: »
    I assume that the only issue with the NTSC stuff is setting the NCO correctly.
    Rich
    Remember the DAC's are set using PINSETM as well. :)

  • rjo__rjo__ Posts: 2,114
    k
Sign In or Register to comment.