Hi to all.
I am having a problem using the delay_ms function. I am using pcm ver 3.048.
If I have the code delay_ms(10000) , everyting works fine and the delay is about 10s
If I declare a variable : unsigned long int qwerty ,
then have: qwerty = 10000 ;
delay_ms(qwerty);
the delay is only a fraction of a second. Why is this.
I noticed a post saying a later version has a problem with delay_ms function , but this is a much older version.
Any help appreciated.
Cheers
Rob
Gerrit
Joined: 15 Sep 2003 Posts: 58
Posted: Wed Jan 19, 2005 2:56 am
Hi Seegoon,
Look at the manual, 8 bits variable or 16 bit constant.
You have to do a Seegoon_delay_ms(int16 delay)
and make some loop for long delays.
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