Hi ! I'm glad to see know you ! I'm Nguyen Van Thanh . I'm from Vietnam .I have studied my subjiect for a long time , but so far I haven't known how to write a perfect Code in CCS for my circuit . My subjiect is : " measuring and controlling speed of DC motor , using PIC 16F877 , Encoder and PWM method " _simulate in Proteus .Would you please help me the Code ? I'm grateful to you ! Here are my circuit and Code .