That looks way to little, generally speaking. Where are your CONFIG settings ? Where do you handle the analog port settings ? Are there LED's on all 4 PORT's ? Why are you not simply using the pins where the LED(s) actualy are connected ? On 2010-08-10 14:17, David Duffy (AVD) wrote: > I'm having trouble getting started with the 18F45K20 demo board that > came with my PicKit3. > > Having only used PIC12 and PIC16 series before, the PIC18 looks quite > foreign! > > I've set up a new project, modified the 16F46K20 template a little as > there was no template for the 18F45K20. > > Now, my aim is to just light some of the LEDs on the demo board. I'm > using assembler in absolute mode to start with. > > The main program looks like this: > > START > BANKSEL TRISD > movlw 0x00 > movwf PORTA > movwf PORTB > movwf PORTC > movwf PORTD > > BANKSEL PORTD > movlw b'10101010' > movwf PORTA > movwf PORTB > movwf PORTC > movwf PORTD > > GOTO $ > > That produces nothing from the LEDs, so I'm obviously missing > something. Can someone please point me to a working example to flash > the LEDs? Everything on the 'net seems to be in C. > David... > --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .