Plot thickens . I went to my shop today and programmed this simple code to the board and it works fine. I then try and program the same code from my laptop even after uninstalling and reinstalling U2 programming software. Nothing now it won't work. It's got to be some setting that got messed up. I need to be able to program it from my laptop though in the field. Any thoughts?


Code:
DEFINE OSC 8          ' DEFINE OSCILATOR SPEED
OSCCON = %01111000

'---[CAPTURE COMPAIR MODUALS]---------------------------------------------------
CCP1CON = %00000000      
CCP2CON = %00000000
'-------------------------------------------------------------------------------
'---[ANALOG CHANELS TO DIGITAL]-------------------------------------------------
ANSEL0 = %00000000       
ANSEL1 = %00000000       
ADCON0 = %00000000      


MAIN:
SOUND PORTB.5,[100,20]
PAUSE 1000
GOTO MAIN
END