Henrik thank you.
The program ran a treat. GPIO.0 blinking away at around a half a second period, GPIO.4 essentially 'on' all the time, very clever.
Nice little project you set up there mackrackit, thanks a lot. I've learned a lot from that namely:
1/ Read the program specification more closely! mackrackit wrote:
2/ How a timed INTERRUPT works and some pitfalls (PAUSE)!But if you do this using pauses to blink the LED the pauses will maybe get in the way (they did. I'm pleased they did though, I've learned from that).
3/ A re-iteration about HIGH / LOW writing to the register everytime they're used. Far better to set the TRISIO register up and write directly to the PORT. I'm starting to appreciate the subtlety of these things, still lots to learn / re-learn though.
Right then, what's next?
Dave
Bookmarks