David Duffy (AVD) wrote: >> Writing values to the port registers isn't going to have any effect >> until you set the pins to outputs. At the very least this means >> clearing the TRIS bits, but may also require disabling analog >> peripherals associated with the pins of interest. Just writing 0 >> then some value to the port registers has no chance of producing a >> visible result without making pins outputs. > > This is probably where I'm missing something. The structure of the > ports is obviously different to what I'm used to. Not really. The TRIS and PORT registers work just like on a PIC 16. The PIC 18 also has LAT registers, but you can still use the PORT register as you did before. > I did read the data > sheet, but have not yet got a grip on how the port really work. Again, ignore LAT and they work just like on a PIC 16. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .