1.1 ¿´ÃŹ·½éÉÜ
´ËÆ÷¼þ¾ßÓÐÁ½¸öǶÈëʽ¿´ÃŹ·ÍâÉ裬¾ßÓа²È«ÐԸߡ¢¶¨Ê±×¼È·¼°Ê¹ÓÃÁé»îµÄÓŵ㡣Á½¸ö¿´ÃŹ·ÍâÉ裨¶ÀÁ¢ºÍ´°¿Ú£©¾ù¿ÉÓÃÓÚ¼ì²â²¢½â¾öÓÉÈí¼þ´íÎóµ¼ÖµĹÊÕÏ£»µ±¼ÆÊýÆ÷´ïµ½¸ø¶¨µÄ³¬Ê±ÖµÊ±£¬´¥·¢Ò»¸öÖжϣ¨½öÊÊÓÃÓÚ´°¿ÚÐÍ¿´ÃŹ·£©»ò²úÉúϵͳ¸´Î»¡£
//£ºCÓïÑÔ¡¢CÓïÑÔѧϰ¡¢CÓïÑÔÅàѵ¡¢MCUѧϰ¡¢PCB½Ì³Ì¡¢PCBѧϰ¡¢Ç¶Èëʽѧϰ¡¢Ç¶ÈëʽÅàѵ¡¢Ç¶Èëʽ½Ì³Ì¡¢Ç¶Èëʽǰ¾°¡¢Ç¶ÈëʽLinux¡¢Linux¿ª·¢¡¢Linuxϵͳ¡¢python¡¢python½Ì³Ì¡¢pythonѧϰ¡¢Python±à³Ì¡¢Python´ýÓö¡¢ÎïÁªÍø¿ª·¢¡¢ÎïÁªÍøÅàѵ¡¢ÎïÁªÍøÖÇÄÜ¿ØÖÆ¡¢ÎïÁªÍøѧϰ¡¢ÐÅÓ¯´ïÅàѵ¡¢ÐÅÓ¯´ïǶÈëʽ £º//
¶ÀÁ¢¿´ÃŹ· (IWDG) ÓÉÆäרÓõÍËÙʱÖÓ (LSI) Çý¶¯£¬Òò´Ë¼´±ãÔÚÖ÷ʱÖÓ·¢Éú¹ÊÕÏʱÈÔÈ»±£³Ö¹¤×÷״̬¡£IWDG ×îÊʺÏÓ¦ÓÃÓÚÄÇЩÐèÒª¿´ÃŹ·×÷Ϊһ¸öÔÚÖ÷³ÌÐòÖ®Í⣬Äܹ»ÍêÈ«¶ÀÁ¢¹¤×÷£¬²¢ÇÒ¶Ôʱ¼ä¾«¶ÈÒªÇó½ÏµÍµÄ³¡ºÏ¡£
¿´ÃŹ·±¾ÖÊÆäʵ¾ÍÊÇÒ»¸ö¶ÀÁ¢µÄ¶¨Ê±Æ÷¡¢¼ÆÊýÆ÷¡£
LSI£ºÊÇÄÚ²¿µÍËÙÕñµ´Æ÷£¬ÎÂƯ±È½Ï´ó£¬Îó²î½Ï´ó¡£
1.1.1 IWDG Ö÷ÒªÌØÐÔ
×ÔÓÉÔËÐеݼõ¼ÆÊýÆ÷
ʱÖÓÓɶÀÁ¢ RC Õñµ´Æ÷Ìṩ£¨¿ÉÔÚ´ý»úºÍֹͣģʽÏÂÔËÐУ©
µ±µÝ¼õ¼ÆÊýÆ÷Öµ´ïµ½ 0x000 ʱ²úÉú¸´Î»£¨Èç¹û¿´ÃŹ·ÒѼ¤»î£©
<!--[if !supportLists]-->1.2 <!--[endif]-->¿´ÃŹ·¿òͼ
<!--[if !supportLists]-->1.1 <!--[endif]-->Ïà¹Ø¼Ä´æÆ÷
<!--[if !supportLists]-->1.1.1 <!--[endif]-->¹Ø¼ü×ּĴæÆ÷ (IWDG_KR)
λ 15:0 KEY[15:0]£º | ¼üÖµ (Key value)£¨Ö»Ð´Î»£¬¶ÁΪ 0000h£© IWDG->KR = 0xAAAA; |
<!--[if !supportLists]-->1.1.1 <!--[endif]-->״̬¼Ä´æÆ÷ (IWDG_SR)
λ 1 RVU£º | ¿´ÃŹ·¼ÆÊýÆ÷ÖØÔØÖµ¸üР(Watchdog counter reload value update) |
λ 0 PVU£º | ¿´ÃŹ·Ô¤·ÖƵÆ÷Öµ¸üР(Watchdog prescaler value update) |
<!--[if !supportLists]-->1.1.1 <!--[endif]-->Ô¤·ÖƵÆ÷¼Ä´æÆ÷ (IWDG_PR)
λ 2:0 PR[2:0]£º | Ô¤·ÖƵÆ÷ (Prescaler divider) |
1.1.1 ÖØÔؼĴæÆ÷ (IWDG_RLR)
λ 11:0 RL[11:0]£º | ¿´ÃŹ·¼ÆÊýÆ÷ÖØÔØÖµ (Watchdog counter reload value) |
¾ÙÀý1£º¼ÙÈç´úÂëʱ¼äΪ20ms£¬¶ÀÁ¢¿´ÃŹ·¶¨Ê±ÉèÖÃΪ¶àÉÙ£¿
ʱ¼äÔö¼Ó50%~200%¡£
ʱÖÓÔ´LSI£º32KHz¡£¶ÔÓ¦µÄÖÜÆÚ 1/32ms¡£
¼ÙÈçÐèÒªÅäÖö¨Ê±Îª50ms¡£
64·ÖƵ£¬µÃµ½1/2KHz¡£ÖØÔØÖµ25¡£µÃµ½50ms¶¨Ê±¡£
32·ÖƵ£¬µÃµ½1KHz¡£ÖØÔØÖµ50¡£µÃµ½50ms¶¨Ê±¡£
16·ÖƵ£¬µÃµ½2KHz¡£ÖØÔØÖµ100¡£µÃµ½50ms¶¨Ê±¡£
8·ÖƵ£¬µÃµ½4KHz¡£ÖØÔØÖµ200¡£µÃµ½50ms¶¨Ê±¡£
4·ÖƵ£¬µÃµ½8KHz¡£ÖØÔØÖµ400¡£µÃµ½50ms¶¨Ê±¡£
¾ßÌåÑ¡Ôñ×éºÏģʽ£¬¸ù¾Ý×Ô¼ºÐèÒª¡£
1.1 ±à³Ì
½âËøIWDG
µÈ´ýÔÊÐí¸üÐÂÖØÔØÖµºÍÔ¤·ÖƵֵ
¸üиüÐÂÖØÔØÖµºÍÔ¤·ÖƵֵ
Æô¶¯¿´ÃŹ·¡£
ÐÅÓ¯´ïרעǶÈëʽ½ÌÓý10¶àÄ꣬ÔÚǶÈëʽÈí¡¢Ó²¼þÅàѵ½ÌÓý·½ÃæÓÐ×Å·áºñµÄ×ÊÔ´ºÍ¾Ñé»ýÀÛ¡£Ë³Ó¦Êг¡ÐèÇ󣬿ªÉèÓÐǶÈëʽÅàѵ¡¢ÎïÁªÍøÅàѵ¡¢ARMÅàѵ¡¢LinuxÅàѵ¡¢È˹¤ÖÇÄÜPythonÅàѵ¡¢JavaÅàѵ¡¢AndroidÅàѵ¡¢µ¥Æ¬»úÅàѵ¡¢Ó²¼þÅàѵ¡¢PCBÅàѵ¡¢µç×ÓÅàѵ¡¢FPGAÅàѵµÈÅàѵ¿Î³Ì£¬Èç¹ûÄãÏë³ÉΪһÃûÊÜÈË×ð¾´µÄit¿ª·¢¹¤³Ìʦ£¬À´ÐÅÓ¯´ï²Î¼ÓitÅàѵ¿Î³Ì£¬Î´À´µÄÄãÒ»¶¨»á¸Ð¼¤ÏÖÔÚµÄÑ¡Ôñ£¡