What those do is read PORTB, takes the value and turns it into a pin number, then toggles that pin.Code:HIGH PORTB TOGGLE PORTB
As the value of the PORT changes, so does the PIN that's being toggled.
<br>
What those do is read PORTB, takes the value and turns it into a pin number, then toggles that pin.Code:HIGH PORTB TOGGLE PORTB
As the value of the PORT changes, so does the PIN that's being toggled.
<br>
DT
indeed... i replaced portb with portb.0 and it now seems to work...
I used a stopwatch to time the LED and it was slightly over... I timed it 10 times and each one came back within 0.1 second of the same value so i've worked out a preload for TMR1...
I'm going to have a play with your (DT's) instant interupts, i need to use interupts now coz i'm dealing with HS serial coms...
Thanks Darrel
Bookmarks