Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Where CCP is use in PIC controllers

Status
Not open for further replies.

mayyur

Newbie level 3
Joined
Mar 31, 2010
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
chico
Activity points
1,305
ccp and pwm

where ccp is use in pic controllers
 

Re: ccp and pwm

HI mayyur
I think this file can help for you about CCP and PWM mode of CCP
 

ccp and pwm

Hi mayyur,
CCP stands for capture/compare/pulse width modulation. It is used for capturing input pulses, comparing output pulses, or for PWM (the most common application is PWM). This is an example for PWM:
Code:
program PWM_16F877A
'PWM with PIC16F877A
'Frequency of PWM: 5kHz
'Duty Cycle: 50%
'Language: BASIC
'Compiler: mikroBASIC PRO for PIC v3.20
'Programmer: Syed Tahmid Mahbub

main:
     PWM1_Init(5000) 'Initialize PWM (using CCP module) at 5kHz
     PWM1_Set_Duty(128) 'Set duty cycle at 50%
     PWM1_Start()
     while true
     wend
end.

Hope this helps.
Tahmid.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top