Posted: Tue Jun 29, 2004 1:07 pm Post subject: 1wire & interrupts
Hi!
Is that true that 1wire bus will not work with interrupts enabled? I need to use Timer0 interrupt together with 1wire bus and I'm confused.. _________________ Regards
Grzegorz
Yes, as the 1wire does not use system resources like a timer, it means the timing is created by a software loop. This loop may not be interrupted.
So there are 2 options :
- modify the 1 wire code so it uses a timer
- disable the interrupts while using 1wire.
In general, the idea is not to use system resources like timers because they are needed by the user. When a statement uses a system resource, it is mentioned in the help. _________________ Mark
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