Author Topic: CCS C PWM  (Read 6047 times)

0 Members and 1 Guest are viewing this topic.

Offline galannthegreatTopic starter

  • Supreme Robot
  • *****
  • Posts: 615
  • Helpful? 4
  • Blue-Lensed Blue LEDs?! What?! Impossible!!
CCS C PWM
« 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.

Kurt

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: CCS C PWM
« Reply #1 on: May 30, 2009, 02:09:02 PM »
Look at the source code on my older robots like Stampy and Fuzzy. They used a PIC16F877, compiled with CCSC, and had PWM.

Offline galannthegreatTopic starter

  • Supreme Robot
  • *****
  • Posts: 615
  • Helpful? 4
  • Blue-Lensed Blue LEDs?! What?! Impossible!!
Re: CCS C PWM
« Reply #2 on: May 30, 2009, 08:11:31 PM »
Thanks, this'll help.  ;D
Kurt