Hello Unregistered ,
Originally Posted by Bruce Oops..! Looks like this one has A/D on PORTB, so you'll also want to disable that. ANSELH=0 should do the trick. Thanks, now does this code work too! Code: loop: HIGH PORTB.0 HIGH PORTB.1 HIGH PORTB.2 PAUSE 250 LOW PORTB.0 LOW PORTB.1 LOW PORTB.2 PAUSE 250 goto loop END
loop: HIGH PORTB.0 HIGH PORTB.1 HIGH PORTB.2 PAUSE 250 LOW PORTB.0 LOW PORTB.1 LOW PORTB.2 PAUSE 250 goto loop END
Most of the time this approach works fine, but it can cause read-modify-write problems depending on the oscillator speed, and external capacitance present on each pin.
Regards, -Bruce tech at rentron.com http://www.rentron.com
Forum Rules
Bookmarks