I see. I agree with you that it is better to enable the boost converter PWM after the USB enumeration, i.e., to un-comment the following three lines of codes. ; call VppInit ; Initiate Vpp PWM ; call VppOff ; Turn Vpp off ; call VppHigh ; Set Vpp to 13v (when it's turned on) Regards, Xiaofan ;*************************************************************** ;Version 2.02 Main movlw .30 ; delay 16 uS to wait for USB to reset movwf W_save ; SIE before initializing registers decfsz W_save,f ; W_save is merely a convienient register goto $-1 ; to use for the delay counter. ... pagesel InitUSB call InitUSB ; Initialize USB communication. ; call VppInit ; Initiate Vpp PWM ; call VppOff ; Turn Vpp off ; call VppHigh ; Set Vpp to 13v (when it's turned on) call VddOn ; Turn Vdd on call InitCommandTable call PopInit ; Initialize Popbyte variables call TxInit ; Initialize transmit variables MainLoop call ServiceUSB ; see if there are any USB tokens to process ... ;*************************************************************** ;Version 1: Main ... pagesel InitUSB call InitUSB ; Initialize USB communication. pagesel VppInit call VppInit ; Initiate Vpp PWM call VppOff ; Turn Vpp off call VppHigh ; Set Vpp to 13v (when it's turned on) call VddOn ; Turn Vdd on call PopInit ; Initialize Popbyte variables call TxInit ; Initialize transmit variables MainLoop call ServiceUSB ; see if there are any USB tokens to process ... -----Original Message----- From: WH Tan [mailto:tanwh@notes.src.global.sharp.co.jp] Sent: Thursday, July 14, 2005 5:38 PM To: Microcontroller discussion list - Public. Subject: RE: [PIC] PICKIT 2 (was PICKit1 & PIC18F2550) No. Surely I didn't mean that. You can't do the programming with those lines commented out. What I mean is somewhere 10+ lines after the label 'Main'. If I remember correctly, I saw in earlier version source it's not commented out. Best regards, WH Tan -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist