View previous topic :: View next topic |
Author |
Message |
seegoon
Joined: 19 Jan 2005 Posts: 8
|
delay_ms problems |
Posted: Wed Jan 19, 2005 2:51 am |
|
|
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.
Gerrit |
|
|
seegoon
Joined: 19 Jan 2005 Posts: 8
|
|
Posted: Wed Jan 19, 2005 3:18 am |
|
|
Thanks. RTFM duh!! |
|
|
|