At 03:00 PM 2/24/03 -0800, Andre Abelian wrote: >// Port Init >void port_init(void){ > TRISB=0; // set portb output > TRISA=1; // set portc all input > PORTB=0; // make sure all leds off > } Not an answer to your question, but perhaps an observation: you have written above: TRISA=1. As far as I can tell, all that does is make pin RA1 an input; the rest of the pins in port A are outputs. Other words, what you have written to TRISA is b'00000001'. Or maybe I grok C even less than I thought. dwayne -- Dwayne Reid Trinity Electronics Systems Ltd Edmonton, AB, CANADA (780) 489-3199 voice (780) 487-6397 fax Celebrating 19 years of Engineering Innovation (1984 - 2003) .-. .-. .-. .-. .-. .-. .-. .-. .-. .- `-' `-' `-' `-' `-' `-' `-' `-' `-' Do NOT send unsolicited commercial email to this email address. This message neither grants consent to receive unsolicited commercial email nor is intended to solicit commercial email. -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body