Title: ? SOC (System On A Chip)?????
1???????????????
????????? ???
2? ? ? ? ????? ????????? ? ?? ? ?????? ?
?????? ? SOC (System On A Chip)????? ?
?????? ?????????????? ? ??(?????????????????????
??) ? ????(????PID???????) ? ????
3????
- ?MCS-51, MCS-96???
- ??Intel????CPU????I/O???PWM???????
- ?????????????
- MCS????????????????????,??
- ????????????? ?
- ?????????????,????????????
- ???????? (Programmable Logic Device, PLD )
- ? IC?????????????????,?????????
- ??????,????????????IC (?TTL, COMS) ?
- ???PLD??PROM?PAL?PLA?FPGA,?FPGA?????
- ?? ?
- ?FPGA?????????????????????I/O???
- ??
4???? (?)
- ???????? (DSP)
- ????????????????IC ?
- ??????,?????????CPU?ALU???????
- ??I/O port???????????,???????????
- ?????16???16??????????????/????
- ???????????????????/?????????
- ?????????????DMA??? ?
- ???DSP??????????????,????????
- CNC????????? ?
-
- ????????????
- ??FPGA?DSP?????????Matlab-Simulink?LabView
- ??????????????????
5???? (?)
- ?????? (Embedded PC)
- ???????????????PC,???????PC??,?
- ???????????????????? ?
- ??????????????????,?????DSP???
- ??????????,??????????????????
-
6???????(FPGA)
??? ??????? ??????? ? SOC (System On A
Chip)????? ???????
7PWM???????
8??????(Pulse Width Modulation)
9??????
?????????????,???????????????,????????????????????
??????????
10?????
?????????????????,?????????????
??(NOT Gate)
11??(AND Gate)
??(OR Gate)
12???(NAND Gate)
???(NOR Gate)
13????(XOR Gate)
?????(XNOR Gate)
14?????????(SOP)
- gt???????
- gt??????
15??????????
16?????
???????????,??????????????,???????????????????????
?????????
??????
17??????
??????
18??????
19?????
????1????
20?????1????
21?????1????(?)
22????????
23Example
???
24????????
????????? ???????????? ??????????????? ???????
????????????? ? ??????????????????????????,???
??????????????? ??????????
?????????????????????
25????????(?)
??????????????? ???????????????,????????????????
???????? ????????????? ?????????????,??????????
26Example
????????????????A?40?B?25?C?20?D?15,???????,?
???????????50???(??????)?
27???
28?????
29?????
30??????????
??????
31???
32??????
- ??????????????????????(???),?????????????????????
??????????????????????????????????????????????????
??????????
33????
- ???????????????????????(FF????????)??,????????????
(Q, ),????????,??????????????????????? - ??
- RS???
- JK???
- T???
- D???
34RS???
- RS??????????????(??PR?CLR????,?CK???????),?????PR?
CLR?CK?S?R - PR(??)??????,??Q????????
- CLR(??)??????,??Q???????
- CK(??)????????,?????(R,S)??????Q??
- ?RS??????(R,S) (1,1)????????????Q?,?????JK??????
?????
35JK???
- JK???????????????(??PR?CLR????,?CK???????)
- JK??????RS????????????,????????????(Qn)???,?????RS
????????
36T???
- T???????????????(??PR?CLR????,?CK???????)
- ??????JK???????J?K??????
37D???
- D???????????????(??PR?CLR????,?CK???????)
- D?????????JK????????K?????????????J??????
38 ????????
- ?????????????(????),????????????,???????????????
? - ????????????????
- ????????????(Qn)??????(Qn1)???????Q??,????
??????(CK)???????,?????????????????Q?????????(Qn)
,????(CK)?????????Q??????????(Qn1)???????????????
???(Qn)??????(Qn1)???????? - ??????????????
- ?????????????,?????????????????????
39????????(?)
- ????????????1?????X,2?JK???JKAJKB,?1????2??????(
A,JA,KA)(B,JB,KB),?J,KCLR????,CK?????,???????
40????????(?)
- ???????JK????,?????????,?????????????????????(A,B
) ,??????X?,???X1?,(A,B)?(0,0),(0,1),(1,0),(1,1)
????X0?,(A,B)?????
41 ??????
?????????????????????,?????????????,???????????,?
???????? ??????????????(Qn)???????(Qn1)???,????
?????????,?????????????????????????
????RS????JK????D????T??????????,???X???????(1)???
?(0)???
42??????(?)
RS???????
JK???????
D???????
T???????
43 ????????
- ??????????????????????,?????????????????,?????????
??????????????????????,????????????,?????????????
?? - ???????(???)
- ???????,??????(???)?????????????????
- ?????????
- ????(???)????????,????????(Qn)???????(Qn1)???
?????? - ??????????
- ??????????????????,?????????????????????
- ?????????????
- ???????????????????????
44 ???????? (?)
- ???????,??XAn ?Bn????,?X??(An,Bn)?????(An1,Bn1),
??????????
???? ???? ???? ????? ?????
X An Bn An1 Bn1
0 0 0 0 0
0 0 1 0 1
0 1 0 1 0
0 1 1 1 1
1 0 0 0 1
1 0 1 1 0
1 1 0 1 1
1 1 1 0 0
45 ???????? (?)
- ?JK??????????????????(JA,KA,JB,KB)???,???????????,
??????????,??????(???)??????,?????????????(???) ?
46 ???????? (?)
47???
- ???????????,???????????????,????????????2?,???????
????-??????-??4??
48???(?)
- ????????
- ?????????????????,??????3???????,??3?JK???????????
??,???????????3???????,??3?JK??????????????,?????
??
49SOC(system on a chip)?????
- SOC?????
- ?????????
- PID???
50SOC ??????(??CPU)
51SOC ??????
52?????????
53???????
54(No Transcript)
55PID ???
PID ????????
56????????
57????????
- ????(Schematic Editor)
- ??????(HDL Editor)
- ????(State Machine Editor)
58??
- ??????(Schematic Editor)
- ?? I/O ??(HDL Editor)
- ??????(PWM)????
59??????????????
- ? ????????????????
- ? ????
- ? ??????
60??????????????
- ????????????
- ????????
- ????????
61???
- ??????????,?????????????????????,?????????????????
????? - ????????,?????????????
62?????(4???3???)
A B C D
1 1 1 1 1
2 1 2 2 2
3 1 3 3 3
4 2 1 2 3
5 2 2 3 1
6 2 3 1 2
7 3 1 3 2
8 3 2 2 3
9 3 3 1 1
63??????
- ??????????????????????????
- ???????????????????????
- S/N????????/???
64Signal to Noise Ratio
- ?????SN?
- ?????SN?
- ?????SN?
65???????
- ????????????????????????????????????????,?????????
????????????????????,???????????????
66????????
67??????
- ?????
- ?????
- ?????
68?????(1)
69?????(2)
- ??????????????
- ? ? ??????,??????????,???????????????
70?????(3)
- ??????????????,????????????????,??????
71?????
- ?????????????,????????????
- ?????????????????????????????????????
72????????????????
- ????
- ????
73????(1)
74????(2)
- ?????????????????????,???????????????
- ????????(4.1)???????
- ?????(4.2)?????????
- ???(4.3)?????,?????????????
75????(3)
- ???????PID????????????????,??????????????????PID??
???? - PID?????discrete-time???????
76??????????????
Kp Ki Kd ????? S/N? ???? S/N?
1 0.2 0.2 0.2 5.79 24.75 0.84 1.51
2 0.2 1.2 1.2 11.35 18.90 0.05 26.02
3 0.2 2.2 2.2 11.14 19.06 0.32 9.90
4 1.2 0.2 1.2 1.95 34.2 0.75 2.50
5 1.2 1.2 2.2 11.15 19.05 0.12 18.42
6 1.2 2.2 0.2 11.59 18.72 0.29 10.75
7 2.2 0.2 2.2 0.65 43.74 0.65 3.74
8 2.2 1.2 1.2 11.14 19.06 0.01 33.98
9 2.2 2.2 0.2 9.82 20.16 0.33 9.63
77?????????????
78??????
- ??? ???????
- Kp5?Ki7?Kd4 Kp8.7?Ki4.6?Kd5.2
- ????0.0546 ????0.008
79???????
- ??? ???????
- Kp15?Ki1?Kd7
Kp14.3?Ki1?Kd6.8 - ?????1.56 ?????1.15
80??????
- ?????????????????????????????????
- ?Borland C Builder 5.0??????????
81????
- ????
- ??????????????
- ???????
82Thank You !