ivp wrote: > David, > > 18F don't have banks (yay !!!), so BANKSEL is not needed > =20 Hi Joe, Good news indeed. :-) > Each pin has a PORT register, intended for inputs, and a LAT for > outputs. Writing to PORT should do what you want, although not > all PORTx are bi-directional. Some are input only so it's better to > use LAT for outputs > =20 Gotcha. That makes sense. > That aside, have you set the pins as digital ? I'm not familiar with > that particular 18F but at least some need ADCON1 bits set to > make the default analogue pin digital. Others are controlled with > ANSEL/ANSELH > > Have you selected an oscillator configuration and is the chip running ? > > What do you have in the CONFIG statements ? > > /MCLR ? > =20 I used the supplied template (actually a slightly modified 18F46K20 file=20 as there is no 18F45K20 version) which has the configuration settings=20 laid out quite well. I have set the oscillator for INTIO67, watchdog is off, MCLRE is on, LVP=20 is off. All I have here at home is the PK3, the demo board, MPLAB and a small=20 DMM. Vdd is valid (+3.25V) and the demo board did work (pre-programmed=20 as running LEDs) out of the box. > Do you have the datasheet ? > =20 I do, but the problem is that the 18 series is quite different to what=20 I'm used to. I'm sure I'll get to understand the expanded instruction=20 set in due course, but I'm at the steep end of the curve just now. I'm usually ok with learning new things once I have a known working file=20 to start with. I don't claim to be an expert programmer - PICs are only=20 a small part of my everyday activities. David... --=20 ___________________________________________ David Duffy Audio Visual Devices P/L Unit 8, 10 Hook St, Capalaba 4157 Australia Ph: +61 7 38235717 Fax: +61 7 38234717 Our Web Site: www.audiovisualdevices.com.au ___________________________________________ --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .