Posted: Wed Jun 23, 2004 11:14 am Post subject: 2313 with pwm, 1wire and WAITMS
Any clues?
I'm running a temperature control loop on an AT90S2313 which:
a)checks a DS1820 temperature, using WAITMS to produce a 0.5s delay between issuing a request-to-convert instruction and reading the result
b)modifies pwm1a accordingly.
The loop is running at the correct rate (an LED flashes as part of the routine), but the 1wire requests are intermittent.
My query then is, do the 1wire routines use the timer at all, causing a conflict with either the WAITMS or pwm1a functions?
To answer the Q : the 1wire does not use the TIMER.
In general, all statements/functions that use internal hadware(UART, TIMER) mention this 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