Do you have a spare, unused chip to test? I recall that few months ago had damaged a dsPIC and it worked well but for some functions, then I used a new, fresh chip and it magically worked.. no bugs, only damaged chip. Maybe worth a try! ;) At 01.47 2011.10.25, you wrote: >Disassembly (I had checked the .lst file) is correct. My pickit2 is =20 >not supported for debugging this chip from MPLAB, but that might've =20 >been helpful. > >Cheers, >-Neil. > > > >Quoting Electron : > >> >> Have you checked the disassembly? Maybe a compiler bug? >> >> >> At 22.50 2011.10.24, you wrote: >>>> MainLoop: >>>> movlw B'00100000' >>>> movwf PORTA ; LED column on >>> >>> movwf LATA >>> >>>> movf PORTA,W ; Read all port-A inputs >>>> movwf PORTC ; Show on LED segments. >>> >>> movwf LATC >>> >>>> MainLoopDone: >>>> goto MainLoop >>>> >>>> end >>> >>> -- >>> http://www.piclist.com PIC/SX FAQ & list archive >>> View/change your membership options at >>> http://mailman.mit.edu/mailman/listinfo/piclist >> >> -- >> http://www.piclist.com PIC/SX FAQ & list archive >> View/change your membership options at >> http://mailman.mit.edu/mailman/listinfo/piclist >> > > > >--=20 >http://www.piclist.com PIC/SX FAQ & list archive >View/change your membership options at >http://mailman.mit.edu/mailman/listinfo/piclist --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .