because you have to include the password everytime you write the cntl
register.
Al
Darren Logan wrote:
>Hi,
>
>I'm wanting to setup the watchdog, in watchdog mode.
>
>My clock source is 3.68MHz and i'm using ACLK as the watchdog clock
source.
>
>As a simple exercise, I do:
>
>WDTCTL = WDTPW + WDTSSEL + WDTCNTCL;
>
>while(1) {
> WDTCTL |= 8; // clear watchdog
>}
>
>but even in the while loop, the watchdog keeps triggering...
>
>why is the watchdog NOT being cleared in the loop????
>
>
>
>Darren Logan
>
>Development Engineer
>
> <?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office" />
>
>Michell Instruments Ltd main tel: +44(0)1223 434 800
>
>Nuffield Close direct: +44(0)1223 434 854
>
>Cambridge fax: +44(0)1223 434 895
>
>CB4 1SS
>
>
>
> <http://www.michell-instruments.com/>http://www.michell-instruments.com/
>
> <mailto:darrenl@darr...> mailto:darrenl@darr...
>
>
>
>* BS EN ISO9001:2000 registered: Q6284 * Member BCAS
>
>* UKAS accredited: 0179 * Investor in People
>
>
>
>----------------------------The dew point specialists-----------------------
>
>
>
>This communication contains information which is confidential
>
>and may also be privileged. It is for the exclusive use of the intended
>
>recipient(s). If you are not the intended recipient(s), please note
>
>that any distribution, copying or use of this communication or the
>
>information in it is strictly prohibited. If you have received this
>
>communication in error, please notify the sender immediately
>
>and then destroy any copies of it.
>
>
>
>
>
>
>
>
>
>
>
>.
>
>
>Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
>
You are forgeting to use the WDT password when writting to the WDTCTL
register. Try:
WDTCNT |= WDTPW + WDTCNTCL;
Regards,
Fio
----- Original Message -----
From: Darren Logan
To: msp430@msp4...
Sent: Monday, February 13, 2006 7:53 AM
Subject: [msp430] Using the watchdog (IAR)
Hi,
I'm wanting to setup the watchdog, in watchdog mode.
My clock source is 3.68MHz and i'm using ACLK as the watchdog clock
source.
As a simple exercise, I do:
WDTCTL = WDTPW + WDTSSEL + WDTCNTCL;
while(1) {
WDTCTL |= 8; // clear watchdog
}
but even in the while loop, the watchdog keeps triggering...
why is the watchdog NOT being cleared in the loop????
Darren Logan
Development Engineer
<?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office" />
Michell Instruments Ltd main tel: +44(0)1223 434 800
Nuffield Close direct: +44(0)1223 434 854
Cambridge fax: +44(0)1223 434 895
CB4 1SS
<http://www.michell-instruments.com/>http://www.michell-instruments.com/
<mailto:darrenl@darr...> mailto:darrenl@darr...
* BS EN ISO9001:2000 registered: Q6284 * Member BCAS
* UKAS accredited: 0179 * Investor in People
----------------------------The dew point specialists-----------------------
This communication contains information which is confidential
and may also be privileged. It is for the exclusive use of the intended
recipient(s). If you are not the intended recipient(s), please note
that any distribution, copying or use of this communication or the
information in it is strictly prohibited. If you have received this
communication in error, please notify the sender immediately
and then destroy any copies of it.
.
SPONSORED LINKS Computer internet security Computer internet business
Computer internet access
Computer internet privacy securities Computer internet help Texas
instruments
------
.
------
------
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 267.15.6/258 - Release Date: 13/2/2006
Reply by Darren Logan●February 13, 20062006-02-13
Hi,
I'm wanting to setup the watchdog, in watchdog mode.
My clock source is 3.68MHz and i'm using ACLK as the watchdog clock source.
As a simple exercise, I do:
WDTCTL = WDTPW + WDTSSEL + WDTCNTCL;
while(1) {
WDTCTL |= 8; // clear watchdog
}
but even in the while loop, the watchdog keeps triggering...
why is the watchdog NOT being cleared in the loop????
Darren Logan
Development Engineer
<?xml:namespace prefix = o ns =
"urn:schemas-microsoft-com:office:office" />
Michell Instruments Ltd main tel: +44(0)1223 434 800
Nuffield Close direct: +44(0)1223 434 854
Cambridge fax: +44(0)1223 434 895
CB4 1SS
<http://www.michell-instruments.com/>http://www.michell-instruments.com/
<mailto:darrenl@darr...> mailto:darrenl@darr...
* BS EN ISO9001:2000 registered: Q6284 * Member BCAS
* UKAS accredited: 0179 * Investor in People
----------------------------The dew point specialists-----------------------
This communication contains information which is confidential
and may also be privileged. It is for the exclusive use of the intended
recipient(s). If you are not the intended recipient(s), please note
that any distribution, copying or use of this communication or the
information in it is strictly prohibited. If you have received this
communication in error, please notify the sender immediately
and then destroy any copies of it.