In SX Microcontrollers, SX/B Compiler and SX-Key Tool, djh82uk wrote: hmm if I try to program the below code with or without the TrisA = nothing happens, no error box pops up as usual or anything, just "SX/B Error" in the bottom of the application. [quote="Somebody"] DEVICE sx48, OSC4MHZ IRC_CAL IRC_SLOW FREQ 4_000_000 PROGRAM Start duty var byte cntr var byte __TRISA CON __TRIS 'TRIS_A = $00 Start: duty = 255 DO FOR cntr = 0 TO 255 ' sweep through angles duty = duty - 1 PWM RA, duty, 50 ' charge RC network NEXT low ra.0 pause 10000 LOOP[/quote] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=201629#m201905 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)