Author |
Message |
Topic: Pwm on Pic18f24k22 |
brood
Replies: 4
Views: 8941
|
Forum: General CCS C Discussion Posted: Wed Oct 26, 2011 5:25 am Subject: Pwm on Pic18f24k22 |
I got it to work using the following code:
#include <18F24k22.h>
#device ADC=10
#fuses INTRC_IO,NOPROTECT,BROWNOUT,BORV45,NOWDT,PUT,NOSTVREN,NOFCMEN,MCLR,NOIESO
#use delay(clock=640000 ... |
Topic: Pwm on Pic18f24k22 |
brood
Replies: 4
Views: 8941
|
Forum: General CCS C Discussion Posted: Tue Oct 25, 2011 3:14 am Subject: Pwm on Pic18f24k22 |
Hi PCM,
I've tried that but it doesn't work. Please see the following taken from the datasheet:
14.3.2 SETUP FOR PWM OPERATION
The following steps should be taken when configuring the CCP ... |
Topic: Pwm on Pic18f24k22 |
brood
Replies: 4
Views: 8941
|
Forum: General CCS C Discussion Posted: Mon Oct 24, 2011 10:38 am Subject: Pwm on Pic18f24k22 |
Hi All,
I'm having problems with the pwm to work the pic. It seems that I need to specify the timer the pwm has to use according to the datasheet eg. timer2, 4 or 6 and I cant seem to find how to s ... |
Topic: Pic16F1824 |
brood
Replies: 1
Views: 4287
|
Forum: General CCS C Discussion Posted: Tue Aug 24, 2010 3:15 am Subject: Pic16F1824 |
Hi,
I want to use the PIC16F1824 for a new design but I can't find the device file... How do I go about creating one?
Thanks |
Topic: 6-bit resolution from a 10-bit ADC |
brood
Replies: 2
Views: 4492
|
Forum: General CCS C Discussion Posted: Mon Sep 24, 2007 9:17 am Subject: 6-bit resolution from a 10-bit ADC |
Thank you very much that solved it |
Topic: 6-bit resolution from a 10-bit ADC |
brood
Replies: 2
Views: 4492
|
Forum: General CCS C Discussion Posted: Mon Sep 24, 2007 9:02 am Subject: 6-bit resolution from a 10-bit ADC |
Hi,
What would be the best way to go about obtaining a 6-bit resolution from a 10-bit adc? Would bit shifting be the best? and if so how would i go about it?
My code is as follows at the moment ... |
Topic: Software Pwm |
brood
Replies: 9
Views: 106043
|
Forum: Code Library Posted: Tue Mar 13, 2007 9:26 am Subject: Software Pwm |
Hello all,
Here is an example program I wrote for a PIC16F917 to create a 100Hz pwm signal with 256 duty cycle steps. it utilizes a interrupt that occurs every 25.8kHz to check for the duty cycle ... |
Topic: Passing data using pointers on a pic16f917 |
brood
Replies: 3
Views: 4916
|
Forum: General CCS C Discussion Posted: Tue Jan 30, 2007 5:27 am Subject: Passing data using pointers on a pic16f917 |
Is there another way of doing the above without creating huge arrays in the ram? Because the PIC16F917 doesn't have enough ram to accomplish that.
Thank you in advance |
Topic: how to output a 16bit value to two 8 bit ports |
brood
Replies: 5
Views: 8271
|
Forum: General CCS C Discussion Posted: Sun Jan 28, 2007 3:30 pm Subject: how to output a 16bit value to two 8 bit ports |
Thank you for all the replies it solved lots of problems that I had. Everything is up and running now. I used make8() in the end and passed two 8bit values to my output function.
 |
Topic: Passing data using pointers on a pic16f917 |
brood
Replies: 3
Views: 4916
|
Forum: General CCS C Discussion Posted: Sun Jan 28, 2007 7:41 am Subject: Passing data using pointers on a pic16f917 |
Hi
I'm working on a mechanically scanned display. my problem is that when i look through the string and point to the constant array the out put i get is wrong. my display function was tested separ ... |
Topic: how to output a 16bit value to two 8 bit ports |
brood
Replies: 5
Views: 8271
|
Forum: General CCS C Discussion Posted: Tue Jan 23, 2007 9:01 am Subject: how to output a 16bit value to two 8 bit ports |
I think that might just do the trick
Thank you very much  |
Topic: how to output a 16bit value to two 8 bit ports |
brood
Replies: 5
Views: 8271
|
Forum: General CCS C Discussion Posted: Tue Jan 23, 2007 8:23 am Subject: how to output a 16bit value to two 8 bit ports |
Hi
I would like to know if its possible to output a 16bit value to two 8 bit ports and how to do it. The pic that I'm using is: pic16f917
My aim is to control 16 led's connected to port A and po ... |
|