ian/visovian, thanks so much. The problem was that i was using the overflow interrupt rather than the output compare as pointed out by both of you. i didnt realise that you needed to specify the interrupt type on the "on compare1a" line. So much frustration. Now fixed. Is there anywhere in the documentation that it explains this better? I found the examples in the documentation rather poor and spent quite some time looking at people's code trying to figure out how the interrupts work in BASCOM. Anyhow, on my way now. Thanks again.
↧