|
| |
Ñòóäåíòàì > Êóðñîâûå > Ðàçðàáîòêà ìèêðîïðîöåññîðíîãî óñòðîéñòâà öèôðîâîãî ôèëüòðà
Ðàçðàáîòêà ìèêðîïðîöåññîðíîãî óñòðîéñòâà öèôðîâîãî ôèëüòðàÑòðàíèöà: 3/6
Óñòàíîâêà
ïîðòà À íà 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
YK=À21UM1-
- B21YK1 ñ ñîõ-
ðàíåíèåì çíà-
÷åíèÿ
W ® YK1
Âû÷èñëåíèå
A31YN1YK1 =
=A31(YN1+YK1)
Âû÷èñëåíèå
ñ ñîõðàíåíèåì A10UM
çíà÷åíèÿ
3
4
4 6
5
|
|
| |
| |
|