The PIC17C42 microcontroller is an excellent choice forcost-effective servo control in embedded applications.Due to its Harvard architecture and RISC features, thePIC17C42 offers excellent computation speed neededfor real-time closed loop servo control. This applicationnote examines the use of the PIC17C42 as a DC brushmotor servo controller. It is shown that a PID (Proportional,Integral, Differential) control calculation can beperformed in less than 200ms (@16 MHz) allowing controlloop sample times in the 2 kHz range. Encoder ratesup to 3 MHz are easily handled by the PIC17C42's highspeed peripherals. Further, the on-chip peripherals allowan absolute minimum cost system to be constructed.
猜您喜欢
评论