Many thanks to everyone who replied to my previous message about the format of PIC18 Assembly code. Ive decided to program in C using C18 for now as Im familiar with C. Ive not used PICs before, as you may recall from my previous messages Im making a part for an antique telephone switch at a museum. Ive built simple circuit using a PIC18F13K50. The circuit diagram at http://www.simple.org/pic18.jpg shows what Ive built. Theres 3 LEDs on port C and a 12MHz crystal on the clock inputs. If I poke a 5v probe into the holes on the chip holder for pins 14,15 & 16 the LEDs light so I know they're OK. Ive writen a simple program using C which sets RC0 high and I would expect the corresponding LED to light. The program compiles OK using C18 in MPLAB and I can export the HEX to a file. Im using a PICKit 2. The PICKit2 software says it can 'see' the PIC chip and seems to upload the hex file to it successfully, however when I put the chip into the circuit the LED doesnt light, and the chip gets VERY hot. I suspect Im doing something wrong with the crystal or not setting the config registers but Im not sure what to set or how. Ive read the datasheet but the section on config registers is confusing me. If anyone can offer any help to get me going Id be most grateful. The C code is below. Thanks Andrew #include void main (void) { TRISC = 0; PORTC = 1; while (1) ; } -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist