CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Search found 26 matches
CCS Forum Index
Author Message
  Topic: ECCP Half-Bridge PWM (Hardware Issue)
marcusayoung

Replies: 3
Views: 8744

PostForum: General CCS C Discussion   Posted: Sun Aug 28, 2011 2:19 pm   Subject: ECCP Half-Bridge PWM (Hardware Issue)
Ah yes!

The LUT has 256 samples, but the PWM register is 10-bits. Looks like i need more values if i want perfect compliments.
  Topic: ECCP Half-Bridge PWM (Hardware Issue)
marcusayoung

Replies: 3
Views: 8744

PostForum: General CCS C Discussion   Posted: Sun Aug 28, 2011 11:01 am   Subject: ECCP Half-Bridge PWM (Hardware Issue)
Hi All,

I'm using a 16F1823 and i'm also seeing this issue with a 16F684.

I've been working with the ECCP/PWM module to generate a sine wave with some external RC filtering. The method is straig ...
  Topic: PWM AMPLITUDE issue (not software related)
marcusayoung

Replies: 2
Views: 3234

PostForum: General CCS C Discussion   Posted: Fri Oct 02, 2009 9:00 pm   Subject: PWM AMPLITUDE issue (not software related)
Hi all,

Sorry this isn't a code question, but i can't turn up much in a search.

I'm using a 12F615 to output a pair of "complimentary" PWM signals on GPIO0 and GPIO2 (these are the def ...
  Topic: Frequency Measuring using IOC
marcusayoung

Replies: 4
Views: 6050

PostForum: General CCS C Discussion   Posted: Wed Sep 23, 2009 10:59 am   Subject: Frequency Measuring using IOC
More info: range of frequencies i am interested in measuring are 8kHz-100kHz.

The constant that gets generated will be used to flash an LED and gets stored in memory each time the frequency changes ...
  Topic: Frequency Measuring using IOC
marcusayoung

Replies: 4
Views: 6050

PostForum: General CCS C Discussion   Posted: Wed Sep 23, 2009 7:08 am   Subject: Frequency Measuring using IOC
Hi Folks,

I'm interested in measuring square wave frequency with a 12F683. I've seen other posts about this using capture on a CCP module, but is there another way with, say, IOC (i'm just thinking ...
  Topic: PIC GPIO inverter
marcusayoung

Replies: 8
Views: 8027

PostForum: General CCS C Discussion   Posted: Fri Aug 07, 2009 1:32 pm   Subject: PIC GPIO inverter
The clock frequency is 8MHz. PWM varies between 9kHz - 100kHz.

I definitely want the compliment output to scale very close to the original, so i would rate the tolerance at +/- 5%.

I think the c ...
  Topic: PIC GPIO inverter
marcusayoung

Replies: 8
Views: 8027

PostForum: General CCS C Discussion   Posted: Fri Aug 07, 2009 7:09 am   Subject: PIC GPIO inverter
Right, this is what i said above. But is this possible to realize with a PIC and extra GPIO?

Thanks
  Topic: PIC GPIO inverter
marcusayoung

Replies: 8
Views: 8027

PostForum: General CCS C Discussion   Posted: Thu Aug 06, 2009 4:21 pm   Subject: PIC GPIO inverter
I'm using a 12F683 to generate a PWM. Is it possible with this one CCP module to generate a complimentary output of the PWM signal on another GPIO (other than the one used to generate the PWM on GPIO2 ...
  Topic: Dual clocks from one PIC12F675
marcusayoung

Replies: 21
Views: 24374

PostForum: General CCS C Discussion   Posted: Mon Jul 20, 2009 11:06 am   Subject: Dual clocks from one PIC12F675
ok, I figured it out. I achieved a 10khz-100khz oscillator with an acceptable resolution.


If that's not satisfactory, then answer this question:
Is generating a frequency the only thing the PIC ...
  Topic: Dual clocks from one PIC12F675
marcusayoung

Replies: 21
Views: 24374

PostForum: General CCS C Discussion   Posted: Thu Jul 16, 2009 3:13 pm   Subject: Dual clocks from one PIC12F675
Ok, i see what you mean.

Is "setup_timer_x()" and "set_pwm1_duty()" simply loading each register associated with the PWM module with the values i'm looking for according to the ...
  Topic: Dual clocks from one PIC12F675
marcusayoung

Replies: 21
Views: 24374

PostForum: General CCS C Discussion   Posted: Thu Jul 16, 2009 2:30 pm   Subject: Dual clocks from one PIC12F675
You need to do some physical tests. I just now programmed a 12F683
to do a 100 KHz square wave, 50% duty cycle, with the PWM module.
I can see the signal on my oscilloscope. However, one problem ...
  Topic: Dual clocks from one PIC12F675
marcusayoung

Replies: 21
Views: 24374

PostForum: General CCS C Discussion   Posted: Wed Jul 08, 2009 3:42 pm   Subject: Dual clocks from one PIC12F675
here is the link to the datasheet:

http://ww1.microchip.com/downloads/en/DeviceDoc/41211D_.pdf

page 1 (under Peripheral features) states: "- 10-bit PWM, max frequency 20 kHz."

But n ...
  Topic: Dual clocks from one PIC12F675
marcusayoung

Replies: 21
Views: 24374

PostForum: General CCS C Discussion   Posted: Wed Jul 08, 2009 7:40 am   Subject: Dual clocks from one PIC12F675
Oops, that was me above ^
  Topic: Dual clocks from one PIC12F675
marcusayoung

Replies: 21
Views: 24374

PostForum: General CCS C Discussion   Posted: Tue Jul 07, 2009 1:40 pm   Subject: Dual clocks from one PIC12F675
The whole goal of the program is to produce the aforementioned variable clock based on one or the other of two registers: the ADC or a TIMERX. I was planning on working out the "one or the other& ...
  Topic: Dual clocks from one PIC12F675
marcusayoung

Replies: 21
Views: 24374

PostForum: General CCS C Discussion   Posted: Tue Jul 07, 2009 12:58 pm   Subject: Dual clocks from one PIC12F675
In a similar question, but now disregarding the 1Hz solution for now...

Is it possible to achieve a variable 10kHz-100kHz (50% duty cycle, amplitude irrelevant) through the use of a potentiometer/A ...
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group