Dear Forum Members,
I am using LPC2106 for time attendance application. I have enabled
WATCHDOG at the start of my code. It is working fine. Sometimes I need
to upgrade the application on site. So I have included code to switch
the LPC to ISP mode for programming the flash. This is also working as
LPC switches to ISP mode and programming starts through Flash Magic.
But the watchdog is not OFF, hence it resets the LPC and programming
fails. How to switch OFF the WATCHDOG?? If I do hardware reset, then
WATCHDOG is OFF and then code enables it. But this being software
reset, I am not able to switch OFF the watchdog. Please help me in
this regard. Your earliest help in this regard will be highly
appreciated. Thanks in advance.
Watchdog and ISP
Started by ●April 3, 2007
Reply by ●April 3, 20072007-04-03
You don't mention the specifics of your environment in terms of main
clock
speed and peripheral clock speed, however even with a peripheral clock
running at 60Meg you've still potentially got 71 seconds between Watchdog
time outs if you set the maximum range.
ie: WDTC = 0xFFFFFFFF;
2^32 / 60,000,000 = 71.583...
Is this not sufficient time for you to program your part? (As far as I'm
aware unlike WDMOD, WDTC can be written by software whenever you like and
will be uploaded to the WD timer every time you do a WD feed).
Any help?
Andy
-----Original Message-----
From: l... [mailto:l...]On Behalf Of
ssk2k4
Sent: 03 April 2007 06:37
To: l...
Subject: [lpc2000] Watchdog and ISP
Dear Forum Members,
I am using LPC2106 for time attendance application. I have enabled
WATCHDOG at the start of my code. It is working fine. Sometimes I need
to upgrade the application on site. So I have included code to switch
the LPC to ISP mode for programming the flash. This is also working as
LPC switches to ISP mode and programming starts through Flash Magic.
But the watchdog is not OFF, hence it resets the LPC and programming
fails. How to switch OFF the WATCHDOG?? If I do hardware reset, then
WATCHDOG is OFF and then code enables it. But this being software
reset, I am not able to switch OFF the watchdog. Please help me in
this regard. Your earliest help in this regard will be highly
appreciated. Thanks in advance.
speed and peripheral clock speed, however even with a peripheral clock
running at 60Meg you've still potentially got 71 seconds between Watchdog
time outs if you set the maximum range.
ie: WDTC = 0xFFFFFFFF;
2^32 / 60,000,000 = 71.583...
Is this not sufficient time for you to program your part? (As far as I'm
aware unlike WDMOD, WDTC can be written by software whenever you like and
will be uploaded to the WD timer every time you do a WD feed).
Any help?
Andy
-----Original Message-----
From: l... [mailto:l...]On Behalf Of
ssk2k4
Sent: 03 April 2007 06:37
To: l...
Subject: [lpc2000] Watchdog and ISP
Dear Forum Members,
I am using LPC2106 for time attendance application. I have enabled
WATCHDOG at the start of my code. It is working fine. Sometimes I need
to upgrade the application on site. So I have included code to switch
the LPC to ISP mode for programming the flash. This is also working as
LPC switches to ISP mode and programming starts through Flash Magic.
But the watchdog is not OFF, hence it resets the LPC and programming
fails. How to switch OFF the WATCHDOG?? If I do hardware reset, then
WATCHDOG is OFF and then code enables it. But this being software
reset, I am not able to switch OFF the watchdog. Please help me in
this regard. Your earliest help in this regard will be highly
appreciated. Thanks in advance.
Reply by ●April 3, 20072007-04-03
In fact thinking about it the Watchdog also has a prescaler of 4, so
that'd
give you 286 seconds... surely that must be sufficient?
Andy
-----Original Message-----
From: l... [mailto:l...]On Behalf Of
Andy Berney
Sent: 03 April 2007 09:43
To: l...
Subject: RE: [lpc2000] Watchdog and ISP
You don't mention the specifics of your environment in terms of main clock
speed and peripheral clock speed, however even with a peripheral clock
running at 60Meg you've still potentially got 71 seconds between Watchdog
time outs if you set the maximum range.
ie: WDTC = 0xFFFFFFFF;
2^32 / 60,000,000 = 71.583...
Is this not sufficient time for you to program your part? (As far as I'm
aware unlike WDMOD, WDTC can be written by software whenever you like and
will be uploaded to the WD timer every time you do a WD feed).
Any help?
Andy
-----Original Message-----
From: l... [mailto:l...]On Behalf Of
ssk2k4
Sent: 03 April 2007 06:37
To: l...
Subject: [lpc2000] Watchdog and ISP
Dear Forum Members,
I am using LPC2106 for time attendance application. I have enabled
WATCHDOG at the start of my code. It is working fine. Sometimes I need
to upgrade the application on site. So I have included code to switch
the LPC to ISP mode for programming the flash. This is also working as
LPC switches to ISP mode and programming starts through Flash Magic.
But the watchdog is not OFF, hence it resets the LPC and programming
fails. How to switch OFF the WATCHDOG?? If I do hardware reset, then
WATCHDOG is OFF and then code enables it. But this being software
reset, I am not able to switch OFF the watchdog. Please help me in
this regard. Your earliest help in this regard will be highly
appreciated. Thanks in advance.
give you 286 seconds... surely that must be sufficient?
Andy
-----Original Message-----
From: l... [mailto:l...]On Behalf Of
Andy Berney
Sent: 03 April 2007 09:43
To: l...
Subject: RE: [lpc2000] Watchdog and ISP
You don't mention the specifics of your environment in terms of main clock
speed and peripheral clock speed, however even with a peripheral clock
running at 60Meg you've still potentially got 71 seconds between Watchdog
time outs if you set the maximum range.
ie: WDTC = 0xFFFFFFFF;
2^32 / 60,000,000 = 71.583...
Is this not sufficient time for you to program your part? (As far as I'm
aware unlike WDMOD, WDTC can be written by software whenever you like and
will be uploaded to the WD timer every time you do a WD feed).
Any help?
Andy
-----Original Message-----
From: l... [mailto:l...]On Behalf Of
ssk2k4
Sent: 03 April 2007 06:37
To: l...
Subject: [lpc2000] Watchdog and ISP
Dear Forum Members,
I am using LPC2106 for time attendance application. I have enabled
WATCHDOG at the start of my code. It is working fine. Sometimes I need
to upgrade the application on site. So I have included code to switch
the LPC to ISP mode for programming the flash. This is also working as
LPC switches to ISP mode and programming starts through Flash Magic.
But the watchdog is not OFF, hence it resets the LPC and programming
fails. How to switch OFF the WATCHDOG?? If I do hardware reset, then
WATCHDOG is OFF and then code enables it. But this being software
reset, I am not able to switch OFF the watchdog. Please help me in
this regard. Your earliest help in this regard will be highly
appreciated. Thanks in advance.
Reply by ●April 4, 20072007-04-04
Thanks Andy,
I am using 14.7456 MHz crystal and PCLK at default value.
Also how can i feed watchdog once in ISP mode?? if flash magic takes more 4
mins then what??
Pls. help.
On 4/3/07, Andy Berney wrote:
>
> You don't mention the specifics of your environment in terms of main
> clock
> speed and peripheral clock speed, however even with a peripheral clock
> running at 60Meg you've still potentially got 71 seconds between Watchdog
> time outs if you set the maximum range.
>
> ie: WDTC = 0xFFFFFFFF;
>
> 2^32 / 60,000,000 = 71.583...
>
> Is this not sufficient time for you to program your part? (As far as I'm
> aware unlike WDMOD, WDTC can be written by software whenever you like and
> will be uploaded to the WD timer every time you do a WD feed).
>
> Any help?
>
> Andy
>
> -----Original Message-----
> From: l... [mailto:
> l... ]On Behalf Of
> ssk2k4
> Sent: 03 April 2007 06:37
> To: l...
> Subject: [lpc2000] Watchdog and ISP
>
> Dear Forum Members,
>
> I am using LPC2106 for time attendance application. I have enabled
> WATCHDOG at the start of my code. It is working fine. Sometimes I need
> to upgrade the application on site. So I have included code to switch
> the LPC to ISP mode for programming the flash. This is also working as
> LPC switches to ISP mode and programming starts through Flash Magic.
> But the watchdog is not OFF, hence it resets the LPC and programming
> fails. How to switch OFF the WATCHDOG?? If I do hardware reset, then
> WATCHDOG is OFF and then code enables it. But this being software
> reset, I am not able to switch OFF the watchdog. Please help me in
> this regard. Your earliest help in this regard will be highly
> appreciated. Thanks in advance.
>
>
>
I am using 14.7456 MHz crystal and PCLK at default value.
Also how can i feed watchdog once in ISP mode?? if flash magic takes more 4
mins then what??
Pls. help.
On 4/3/07, Andy Berney wrote:
>
> You don't mention the specifics of your environment in terms of main
> clock
> speed and peripheral clock speed, however even with a peripheral clock
> running at 60Meg you've still potentially got 71 seconds between Watchdog
> time outs if you set the maximum range.
>
> ie: WDTC = 0xFFFFFFFF;
>
> 2^32 / 60,000,000 = 71.583...
>
> Is this not sufficient time for you to program your part? (As far as I'm
> aware unlike WDMOD, WDTC can be written by software whenever you like and
> will be uploaded to the WD timer every time you do a WD feed).
>
> Any help?
>
> Andy
>
> -----Original Message-----
> From: l... [mailto:
> l... ]On Behalf Of
> ssk2k4
> Sent: 03 April 2007 06:37
> To: l...
> Subject: [lpc2000] Watchdog and ISP
>
> Dear Forum Members,
>
> I am using LPC2106 for time attendance application. I have enabled
> WATCHDOG at the start of my code. It is working fine. Sometimes I need
> to upgrade the application on site. So I have included code to switch
> the LPC to ISP mode for programming the flash. This is also working as
> LPC switches to ISP mode and programming starts through Flash Magic.
> But the watchdog is not OFF, hence it resets the LPC and programming
> fails. How to switch OFF the WATCHDOG?? If I do hardware reset, then
> WATCHDOG is OFF and then code enables it. But this being software
> reset, I am not able to switch OFF the watchdog. Please help me in
> this regard. Your earliest help in this regard will be highly
> appreciated. Thanks in advance.
>
>
>