Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

2313 with pwm, 1wire and WAITMS

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive
View previous topic :: View next topic  
Author Message
Dave Cullen

Bascom Member



Joined: 23 Jun 2004
Posts: 5

PostPosted: Wed Jun 23, 2004 11:14 am    Post subject: 2313 with pwm, 1wire and WAITMS Reply with quote

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?

Regards
Dave C
Back to top
View user's profile
Dave Cullen

Bascom Member



Joined: 23 Jun 2004
Posts: 5

PostPosted: Wed Jun 23, 2004 2:51 pm    Post subject: Reply with quote

Sorry for jumping the gun ...

It's not intermittent at all ... it just appears that way on my expensive Tektronix digital 'scope.

My junk, 1980's analogue 'scope shows it to be regular as a metronome!

Thanks if you thought about it.
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 5921
Location: Holland

blank.gif
PostPosted: Fri Jun 25, 2004 11:53 am    Post subject: Reply with quote

HI,

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
Back to top
View user's profile Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    www.mcselec.com Forum Index -> BASCOM-AVR Archive All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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