> and this seems to be where the problems start. I either get pulses on all portB > pins (flat tops with narrow long V drops to Vdd) and nothing on portA or only > RA3 will give me any pulses out and RB is zero. At the moment it seems only to Have you checked what your watchdog timer is doing? Cheers -- Kalle Pihlajasaari kalle@data.co.za Interface Products Box 15775, Doornfontein, 2028, South Africa +27 (11) 402-7750 Fax: +27 (11) 402-7751