Author |
Message |
Topic: PWM for PIC16F648A |
killer_fighting
Replies: 8
Views: 11755
|
Forum: General CCS C Discussion Posted: Sat Feb 25, 2012 3:44 pm Subject: PWM for PIC16F648A |
#include <16F648A.h>
#fuses NOWDT, NOPROTECT, BROWNOUT, NOPUT, NOLVP,INTRC,NOCPD,NOMCLR
#use delay(clock = 4000000)
void main()
{
output_low(PIN_B3); ... |
Topic: PWM for PIC16F648A |
killer_fighting
Replies: 8
Views: 11755
|
Forum: General CCS C Discussion Posted: Sat Feb 25, 2012 6:59 am Subject: PWM for PIC16F648A |
Hi guys,
I found out the problem already! My programming is okay, but there is problem for my PIC fuses. Thanks. |
Topic: PWM for PIC16F648A |
killer_fighting
Replies: 8
Views: 11755
|
Forum: General CCS C Discussion Posted: Fri Feb 24, 2012 7:06 am Subject: PWM for PIC16F648A |
I changed the PIC already. And I have checked there's 5v in the PIC. However, there is zero voltage at CCP1 pin. How can I get the correct PWM duty cycle? |
Topic: PWM for PIC16F648A |
killer_fighting
Replies: 8
Views: 11755
|
Forum: General CCS C Discussion Posted: Fri Feb 24, 2012 5:58 am Subject: Re: PWM |
Post a SHORT section of compilable code which shows the problem. I.e. less that a screen-full with your version No.
You are making us second guess at the cause. From your code it should be obvious. ... |
Topic: PWM for PIC16F648A |
killer_fighting
Replies: 8
Views: 11755
|
Forum: General CCS C Discussion Posted: Fri Feb 24, 2012 5:42 am Subject: PWM for PIC16F648A |
I am currently using PIC16F648A. I have succeeded to build my programming code. However, I can't detect any signal from pin B3 (ccp1) directly from my probe. Maybe I know what is the reason that this ... |
Topic: PWM on 16F877 |
killer_fighting
Replies: 27
Views: 162575
|
Forum: General CCS C Discussion Posted: Thu Feb 23, 2012 3:29 am Subject: PWM on 16F877 |
So I should write like that, right? Please refer to the bold part.
#include <16F648A.h>
#fuses XT, NOWDT, NOPROTECT, BROWNOUT, PUT, NOLVP
#use delay(clock = 4000000)
main()
{
outp ... |
Topic: PWM on 16F877 |
killer_fighting
Replies: 27
Views: 162575
|
Forum: General CCS C Discussion Posted: Thu Feb 23, 2012 2:19 am Subject: PWM on 16F877 |
I am sorry. I am using PIC16F648A and my oscillator frequency is 4MHz. I would like to generate a 25 kHz PWM signal. |
Topic: PWM on 16F877 |
killer_fighting
Replies: 27
Views: 162575
|
Forum: General CCS C Discussion Posted: Wed Feb 22, 2012 3:56 pm Subject: PWM on 16F877 |
I am using PIC16F848A and I want to get 25kHz through PWM. How can I do that? |
|