RSS    

   Ðåôåðàò: Ðàçðàáîòêà ìèêðîïðîöåññîðíîãî óñòðîéñòâà öèôðîâîãî ôèëüòðà

          Íà îáðàáîòêó äàííûõ ÀÖÏ òðåáóåòñÿ, êàê óêàçûâàëîñü ðàíåå, âðåìÿ. ×òîáû ïîâûñèòü ýôôåêòèâíîñòü è êà÷åñòâî ñèñòåìû, íåîáõîäèìî âî âðåìÿ ïðîñ÷åòà ÀÖÏ, âìåñòî ïðîñòîÿ è îæèäàíèÿ ñèñòåìîé ðåçóëüòàòà ïðîñ÷åòà, ïðîèçâåñòè âû÷èñëåíèÿ áåç ó÷àñòèÿ òåêóùåãî çíà÷åíèÿ îòñ÷åòà. Âû÷èñëåíèÿ ñ ó÷àñòèåì òåêóùåãî çíà÷åíèÿ îòñ÷åòà äîëæíû ïðîèçâîäèòüñÿ ÷åðåç âðåìÿ, ðàâíîå 10Tad.

          Ðåçóëüòàò âû÷èñëåíèÿ ÀÖÏ áóäåò îáðàáàòûâàòü ïðîãðàììà ïðåðûâàíèÿ. 

          Èñõîäÿ èç âñåõ âûøåïðèâåäåííûõ ñîîáðàæåíèé, ñîñòàâèì îêîí÷àòåëüíûé àëãîðèòì ïðîãðàììû:

       Íà÷àëî                                                                                                          1


                                                                   

                                                                               

   Óñòàíîâêà                                                                                        

   ïîðòà À íà                                                                                                COUNT-1

   ââîä                                                   

                                                                                                                                                               

                                                               

   Óñòàíîâêà                                                                                   äà

    ïîðòà Â íà                                                                                                   Z=0            

    âûâîä                                                               

                                                                                                                                    íåò     

                                                                               6                                                                              

    0x17®W                                                                                              Ñáðîñ ADCON1

                                                                                                                           

                                                                                                               

  W®COUNT                                                                                                 0xC1®W

                                                                                        

 

                                                                                                                     W®ADCON0

  0x0C®W      

                                                                                           

                                                                                                                      Ðàçðåøèòü

                                                                                                                      ïðåðûâàíèå  

    W®FSR                                                                                           ÀÖÏ                    

                                                                                    

                                                                                                                        

                                                                                                                       Ðàçðåøèòü

                                                                                                                       ãëîáàëüíîå

  Ñáðîñ INDF                                                                                     ïðåðûâàíèå                    

                                                                                                    

                                                                                                                  

      FSR + 1                                                                                                    Ïóñê ÀÖÏ

                                                                                                           

                                                                                              

      

                                                                                                                  

            1                                                                                                                  2

            2                                                                                                                     3

               

   Âû÷èñëåíèå

  À11UM1ñ ñîõ-                                                                                         Âû÷èñëåíèå

 ðàíåíèåì  çíà-                                                                                           A32YN2YK2=

 ÷åíèÿ                                                                                                          =A32(YN2+YK2)

                                                                                                                       ñ ñîõðàíåíèåì            

                                                                                                                        çíà÷åíèÿ

  Âû÷èñëåíèå

  B11YN1 ñ ñîõ-

  ðàíåíèåì çíà-                                                                                           Âû÷èñëåíèå

  ÷åíèÿ                                                                                                            B31YL1

  Âû÷èñëåíèå

   Â12YN2                                                            

                                                                                                                               

                                                                                                                               

                                                                                                                      Âû÷èñëåíèåYLL         

                                                                                                                      = A31YN1YK1+           

    Âû÷èñëåíèå                                                                                          + A32YN2YK2-            

YNN=À11UM1-                                                                                        - B31YL1 ñ ñîõ-           

- B11YN1-                                                                                                   ðàíåíèåì çíà-

- Â12YN2 ñ ñîõ-                                                                                         ÷åíèÿ             

ðàíåíèåì çíà-

÷åíèÿ

   Âû÷èñëåíèå                                                                                               YK1 ® W

 A21UM1 ñ ñîõ-

ðàíåíèåì çíà-

÷åíèÿ

   Âû÷èñëåíèå                                                                                                W ® YK2

   B21YK1

                                                                                                                               

Âû÷èñëåíèå                                                                                                   YK ® W    

Ñòðàíèöû: 1, 2, 3, 4, 5, 6


Íîâîñòè


Áûñòðûé ïîèñê

Ãðóïïà âÊîíòàêòå: íîâîñòè

Ïîêà íåò

Íîâîñòè â Twitter è Facebook

                   

Íîâîñòè

© 2010.