Society of Robots - Robot Forum
Software => Software => Topic started by: galannthegreat on May 22, 2009, 04:01:22 PM
-
Can someone give me some pointers on how to set up PWM on a PIC (with the two hardware PWM) using CCS C (yay! I finally got the compiler! ;D), I am looking at examples and they don't really show nicely how to set it up. A PWM snippet of code for servos would be nice... just something that I can get started off of, or even something in psuedo code would be of help. I am using the PIC16F877A @20Mhz.
Thanks in advance (Only if you don't mind), Kurt.
-
Look at the source code on my older robots like Stampy and Fuzzy. They used a PIC16F877, compiled with CCSC, and had PWM.
-
Thanks, this'll help. ;D