caramoan tour package

caramoan tour package

Author Topic: Watchdog Timer  (Read 4306 times)

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10766
  • Pogi/Ganda Points: 635
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: Watchdog Timer
« Reply #20 on: August 09, 2008, 12:10:42 AM »
gagamit ka ba ng watchdog?
‎"Divide each difficulty into as many parts as is feasible and necessary to resolve it."
- Rene Descartes

"For every difficult problem there is always a simple answer and most of them are wrong."
- Clayton Paul

Philippine Electronics Forum

Re: Watchdog Timer
« Reply #20 on: August 09, 2008, 12:10:42 AM »

Offline mArKhAo

  • Gas Turbine
  • **
  • Posts: 2284
  • Pogi/Ganda Points: 70
  • Gender: Male
  • point and shoot
Re: Watchdog Timer
« Reply #21 on: August 09, 2008, 12:14:30 AM »
gusto q sana po gamitin.. kaso wala aqng maisip.. .hehe. gusto qng gamitin lahat ng function ng mcu.. sa isang ckt.. hnd naman lahat, pero, cguro, basic kada function. :D
cut my heart out, for a souvenir....

Philippine Electronics Forum

Re: Watchdog Timer
« Reply #21 on: August 09, 2008, 12:14:30 AM »

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10766
  • Pogi/Ganda Points: 635
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: Watchdog Timer
« Reply #22 on: August 09, 2008, 12:31:46 AM »
ah. kailangan may output? mas madali kasi gamitin siya sa function niya talaga as Watchdog. hehehe. enable lang tapos reset mo siya every beginning ng loop (or sa ibang timer). hehe.
‎"Divide each difficulty into as many parts as is feasible and necessary to resolve it."
- Rene Descartes

"For every difficult problem there is always a simple answer and most of them are wrong."
- Clayton Paul

Philippine Electronics Forum

Re: Watchdog Timer
« Reply #22 on: August 09, 2008, 12:31:46 AM »

Offline gtxr2.ren

  • Size C Battery
  • *****
  • Posts: 168
  • Pogi/Ganda Points: 8
  • if it can be thought of, it can be done.
Re: Watchdog Timer
« Reply #23 on: August 09, 2008, 01:16:42 PM »
The WDT reset triggers when the CPU locks up. Kung ganun po, paano pa po kaya makaexecute ng "save the system state" instructions ang CPU, when it already hangs up  ???.



WDT timer should first issue a NMI " before it finally resets the device at a specified time period or timeout.. " so ang sagot sa tanong is time-out or after a specified time period had been reached.

Bago mag-reset, mag-iissue siya ng NMI para ung debugger may idea kung saan nanggaling ung error, this can be done in the software via FIFO. May technique para dito.

This can be done in the software program (..also possibly with hardware). Some cpu's doesn't have this internal WDT feature so one must design an external WDT..recommended na i-seperate ang clock para sa WDT independent of that of CPU para magawa nya ung job...WDT are event-triggered anyway.

I suggest to perform round-robin scheduling in multi-tasking for monitoring the health of every modules..pero sa mga small-scale embedded devices like MP3's, cell-phone..i think ndi naman gaano importante and WDT..but for high-end products like automotives, industrial. medical equipments, airplanes, etc..This is indispensible. But I found disturbing that they are not using the PIC as their choice of CPU for reliable embedded products. Give me your opinion..

"The only real valuable thing is intuition."
- Albert Einstein

Philippine Electronics Forum

Re: Watchdog Timer
« Reply #23 on: August 09, 2008, 01:16:42 PM »

Offline Cute_Worm_1983

  • Size D Battery
  • ******
  • Posts: 418
  • Pogi/Ganda Points: 16
  • Gender: Male
Re: Watchdog Timer
« Reply #24 on: August 09, 2008, 01:23:22 PM »
^ malinaw na sakin yung "watchdog timer" kala ko kasi aso nag babantay... nyak  ;D ;D ;D

   pogi point para sa'yo.  :D
I love electronicslab.ph

Philippine Electronics Forum

Re: Watchdog Timer
« Reply #24 on: August 09, 2008, 01:23:22 PM »

Offline gtxr2.ren

  • Size C Battery
  • *****
  • Posts: 168
  • Pogi/Ganda Points: 8
  • if it can be thought of, it can be done.
Re: Watchdog Timer
« Reply #25 on: August 09, 2008, 01:37:37 PM »
No pogi points, remove it..

I didn't join the forum for pogi points..but ONLY to share my point of views and ideas..

This forum is a mixture of professionals and amateurs anyway..

"The only real valuable thing is intuition."
- Albert Einstein

Offline Cute_Worm_1983

  • Size D Battery
  • ******
  • Posts: 418
  • Pogi/Ganda Points: 16
  • Gender: Male
Re: Watchdog Timer
« Reply #26 on: August 09, 2008, 02:01:04 PM »

Kung napapansin ninyo sa mga nicknames ng member. Mayroon nakakalagay na

Pogi/Ganda Points:
Recharge:  <--- Click this to increase the pogi points of a member
Discharge: <--- Click this to decrease the pogi points of a member

When to click the Recharge link:
Kapag natulungan ka ng isang member you have to increase the pogi/ganda points of the member na tumulong sa iyo. Tapos kung nag-post ang member ng idea, resource, or links na masyado kang natulungan dapat bigyan mo din siya ng points.

When to click the Discharge link:
Kapag pasaway ang isang member pwede ninyong bawasan ang pogi points niya.

Notes
Currently, ang pwede lang makapag-modify ng pogi points ay yung mga members with 50 posts or more. Since, may contest dito sa forum that involves the number of posts, hindi counted yung mga forum post dun sa "outside the laboratory" board kasi most of the time non-technical disussion yun.. Pwede lang makapag-modify ng pogi points every 1 hour. Of course, hindi mo pwedeng i-modify ang pogi points ng sarili mong account.
I love electronicslab.ph

Offline gtxr2.ren

  • Size C Battery
  • *****
  • Posts: 168
  • Pogi/Ganda Points: 8
  • if it can be thought of, it can be done.
Re: Watchdog Timer
« Reply #27 on: August 09, 2008, 02:01:36 PM »
^ malinaw na sakin yung "watchdog timer" kala ko kasi aso nag babantay... nyak  ;D ;D ;D

   pogi point para sa'yo.  :D

I hope i did help..If i had an idea then i can share it with others, but if the idea presented or the question is difficult then i cannot answer..I didn't join the forum to earn pogi points anyway, as others do, I join only to share my point of views to a certain and selected topics, not all topics are credible to join with..Discussions anyway can be replied by any person whom we don't know, its a mixture of good advices, elevated opinions and sometimes idiot replies..a mixture.

If u want to acknowledge me, then simple 'tnx' will do.

I hope u understand..so, please remove it.
"The only real valuable thing is intuition."
- Albert Einstein

Offline gtxr2.ren

  • Size C Battery
  • *****
  • Posts: 168
  • Pogi/Ganda Points: 8
  • if it can be thought of, it can be done.
Re: Watchdog Timer
« Reply #28 on: August 09, 2008, 02:15:59 PM »
Kung napapansin ninyo sa mga nicknames ng member. Mayroon nakakalagay na

Pogi/Ganda Points:
Recharge:  <--- Click this to increase the pogi points of a member
Discharge: <--- Click this to decrease the pogi points of a member

When to click the Recharge link:
Kapag natulungan ka ng isang member you have to increase the pogi/ganda points of the member na tumulong sa iyo. Tapos kung nag-post ang member ng idea, resource, or links na masyado kang natulungan dapat bigyan mo din siya ng points.

When to click the Discharge link:
Kapag pasaway ang isang member pwede ninyong bawasan ang pogi points niya.

Notes
Currently, ang pwede lang makapag-modify ng pogi points ay yung mga members with 50 posts or more. Since, may contest dito sa forum that involves the number of posts, hindi counted yung mga forum post dun sa "outside the laboratory" board kasi most of the time non-technical disussion yun.. Pwede lang makapag-modify ng pogi points every 1 hour. Of course, hindi mo pwedeng i-modify ang pogi points ng sarili mong account.

Thanks for this, but i don't care about the contest rules or the promotions that it may have for the most pogi points..Im not interested.

And kung if ever na manalo ako, then i guess ipapamigay ko rin iyan sa iba. Ndi naman ako interesado kahit manalo pa ko ng starter kit.

Much better to donate it with others dun sa mga newbies
so that others may have the opportunity to learn too..para naman makasunod sila sa discussion..Hindi ung sarili lang natin ang iniisip natin and then ipagmamayabang na may experience ako jan..

Knowledge should be shared. As in my case, there are other things which are more important to do..

I hope u understand..remove it please.
"The only real valuable thing is intuition."
- Albert Einstein

Offline 0b00000111

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 6130
  • Pogi/Ganda Points: 398
  • There is no delight in owning anything unshared.
Re: Watchdog Timer
« Reply #29 on: August 10, 2008, 03:13:55 PM »
WDT timer should first issue a NMI " before it finally resets the device at a specified time period or timeout.. " so ang sagot sa tanong is time-out or after a specified time period had been reached.

Bago mag-reset, mag-iissue siya ng NMI para ung debugger may idea kung saan nanggaling ung error, this can be done in the software via FIFO. May technique para dito.

This can be done in the software program (..also possibly with hardware). Some cpu's doesn't have this internal WDT feature so one must design an external WDT..recommended na i-seperate ang clock para sa WDT independent of that of CPU para magawa nya ung job...WDT are event-triggered anyway.

I suggest to perform round-robin scheduling in multi-tasking for monitoring the health of every modules..pero sa mga small-scale embedded devices like MP3's, cell-phone..i think ndi naman gaano importante and WDT..but for high-end products like automotives, industrial. medical equipments, airplanes, etc..This is indispensible. But I found disturbing that they are not using the PIC as their choice of CPU for reliable embedded products. Give me your opinion..



parang nakita ko yata sa mga dsPICs ang ganitong feature... too bad, di ko pa siya fully naeexplore at mapag aralan ng tutok dahil sa dami ng priorities/projects :(
E-Gizmo Mechatronix Central: www.e-gizmo.com

Tel #: (63)(2) 536-3378
Globe +63915-973-7691
Smart +63921-779-0748

Location Map

YM: julie.egizmo  aka Born2BeWired  ;D

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10766
  • Pogi/Ganda Points: 635
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: Watchdog Timer
« Reply #30 on: August 11, 2008, 02:23:52 AM »
hehehe. minsan nakaka-frustrate pag may gusto kang pag-aralan pero hindi mo matutukan dahil sa dami nang ginagawa. minsan tinatamad ka na tuloy. ;D

madalas sa mga high end MCU at DSP nakikita 'tong feature na 'to. kahit 'yung external NMI madalas sa mga high end MCU lang din (though sa MSP430 kahit yung mga entry level merong external NMI).
‎"Divide each difficulty into as many parts as is feasible and necessary to resolve it."
- Rene Descartes

"For every difficult problem there is always a simple answer and most of them are wrong."
- Clayton Paul

Offline ef - el - ay - pee

  • Lead Acid Battery
  • *******
  • Posts: 680
  • Pogi/Ganda Points: 34
  • Gender: Male
  • Regrets, I have a few...
    • The Taste Bytes Food Blog
Re: Watchdog Timer
« Reply #31 on: August 11, 2008, 06:24:04 AM »
napilitan akong aralin ang WDT sa Zilog kasi kelangan kong i-reset ang devboard ko without any human intervention as part of the project i am making (wireless flash loading via SMS), kelangan kasing i-reset pag tapos ng flash load, nakakatakot gumamit ng WDT (O ako lang, parang "use sparingly", eh, pero eventually nairereset ko yung devboard ko without using WDT).
"Engineers are the Oompah-Loompahs of Science" - Dr. Sheldon Lee Cooper

Offline ef - el - ay - pee

  • Lead Acid Battery
  • *******
  • Posts: 680
  • Pogi/Ganda Points: 34
  • Gender: Male
  • Regrets, I have a few...
    • The Taste Bytes Food Blog
Re: Watchdog Timer
« Reply #32 on: August 11, 2008, 06:28:01 AM »
parang walang sense diba, irerecode ko yung Zilog ko via SMS, kung tipong nasa Palawan ako tas biglang "shucks, may mali ata dun sa code ko sa manila" yun, hehehe
"Engineers are the Oompah-Loompahs of Science" - Dr. Sheldon Lee Cooper

Offline maldihtah13

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4674
  • Pogi/Ganda Points: 120
  • Gender: Female
  • Everyday is a learning process so try to learn ;D
    • Blogspot
Re: Watchdog Timer
« Reply #33 on: August 11, 2008, 08:55:31 AM »
Gusto ko sana gamitin ito kya lang di ba pag nareset ung pic simula ulit sya sa pinakauna so kung may rtc ako burado na ulit ung actual time nya at ang rerehistro eh ung default/initial time.

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10766
  • Pogi/Ganda Points: 635
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: Watchdog Timer
« Reply #34 on: August 11, 2008, 08:25:37 PM »
normally talaga kung gagamitin ng ibang function, hindi para sa Reset ang setting. kapag nag-hang naman kasi kailangan ng Reset kaya ginagamit 'yung watchdog. 'yun nga lang sa common MCU, burado lahat nang previous na ginagawa.
‎"Divide each difficulty into as many parts as is feasible and necessary to resolve it."
- Rene Descartes

"For every difficult problem there is always a simple answer and most of them are wrong."
- Clayton Paul

Offline paranz

  • Moderator
  • Nuclear Reactor
  • *****
  • Posts: 4525
  • Pogi/Ganda Points: 177
  • Gender: Male
  • 1/4W resistor specialist
    • RapidSignal Electronics
Re: Watchdog Timer
« Reply #35 on: August 11, 2008, 10:06:18 PM »
Gusto ko sana gamitin ito kya lang di ba pag nareset ung pic simula ulit sya sa pinakauna so kung may rtc ako burado na ulit ung actual time nya at ang rerehistro eh ung default/initial time.

use an external real-time chip, or use the PIC EEPROM memory
PIC16 Programming Tutorial using MPLAB and Hi-Tech C
www.rapidsignalph.com/tutorials/pic16-tutorials

Arduino & gizDuino Tutorials
www.rapidsignalph.com/tutorials/arduino-tutorials

Offline 0b00000111

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 6130
  • Pogi/Ganda Points: 398
  • There is no delight in owning anything unshared.
Re: Watchdog Timer
« Reply #36 on: August 11, 2008, 11:30:26 PM »
hehehe. minsan nakaka-frustrate pag may gusto kang pag-aralan pero hindi mo matutukan dahil sa dami nang ginagawa. minsan tinatamad ka na tuloy. ;D

totoo yan hehehe ;D ;D ;D

nakakatakot gumamit ng WDT (O ako lang, parang "use sparingly", eh, pero eventually nairereset ko yung devboard ko without using WDT).

Hmmm.. ako kasi mas takot akong maglabas ng firmware ng hinde gumagamit ng WDT heheheh... :) :) :) mas malakas ang confidence ko pag may WDT yung firmware ko kaysa sa wala ;D
E-Gizmo Mechatronix Central: www.e-gizmo.com

Tel #: (63)(2) 536-3378
Globe +63915-973-7691
Smart +63921-779-0748

Location Map

YM: julie.egizmo  aka Born2BeWired  ;D

Offline rdpzycho

  • Technical People
  • Solar Power Satellite
  • *****
  • Posts: 10766
  • Pogi/Ganda Points: 635
  • Gender: Male
  • Respect Begets Respect
    • rdpzycho
Re: Watchdog Timer
« Reply #37 on: August 11, 2008, 11:35:02 PM »
sa timer ko linalagay 'yung pag-reset sa WDT para consistent ang timing ng wdt reset. mas gusto ko rin pag may Watchdog. at least pag nag-hang may chances pang maka-recover (though may data loss na).
‎"Divide each difficulty into as many parts as is feasible and necessary to resolve it."
- Rene Descartes

"For every difficult problem there is always a simple answer and most of them are wrong."
- Clayton Paul

Philippine Electronics Forum

Re: Watchdog Timer
« Reply #37 on: August 11, 2008, 11:35:02 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com