FakeSheep WROTE:i still can't work with it...any sample can let me refer?
or suggest me any other assembler or IDE etc?(ASM based pls, I'm suck in C, yet)
bcoz seems like no much body are using MPLAB...
it is quite sad that no much body can help with my problem and i can't even control a LED blinking
i stuck at situation like now for a long time
Is not that no one using MPLAB IDE, there is many using MPLAB IDE, but the real problem is not much people using Assembly. Most of us use C Language. For PIC18F we are using MPLAB C18 C Compiler from Microchip.
FakeSheep WROTE:Bro, it is build successful and works in simulating, but my PIC still doesn't work @@
i use PIC18f4550, program/verify with Microchip USB HID Bootloader v2.6, is it matter?
with 40 pins PIC, pin 20 to anode of LED, cathode of LED connect to ground(Vss) right
If you have try with sample code from Cytron and LED blinks, this at least indicate the hardware is working, the basic portion is working. 5V, Oscillator, LED connections are correct. So left your code. As far as I know, if you are using bootloader, normally the configuration bits cannot be changed. It will follow the configuration bits from the bootloader firmware, which in your case is HID bootloader. Since you have bootloader, please do not start your code in the 1st 4K byte, because the bootloader itself have taken up that space. You need to start your code from ORG 0x1000 (for reset vector). Focus on initializing the TRISx and PORTx for the LED.