Joined: 17 May 2004 Posts: 7 Location: Bellingham, wa usa
Posted: Tue Sep 07, 2004 2:54 pm Post subject: mega 128 timer0
i want to use timer0 and its output compare register, however when i try to use:
on compare0 dosomething
the erro code comes back as invalid interrupt
also i noticed that i can't write to the ouput compare register directly using the name that's in the m128.def file, as it comes back with an error.
i have written to the registor directly using the out command and giving the physical address of the register. but i still need to use interrupt from it
Joined: 17 May 2004 Posts: 7 Location: Bellingham, wa usa
Posted: Wed Sep 15, 2004 8:24 pm Post subject:
yep i found that oco for the interrupt and ocro for the output compare registor were what i needed, after scanning the m128 dat file. thanks for the suggestion.
hopefully the next version of bascom will have hardware twi support in it
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum