Author |
Message |
Topic: 12F1822 PWM problem |
ads
Replies: 34
Views: 92579
|
Forum: General CCS C Discussion Posted: Mon May 25, 2020 5:22 pm Subject: 12F1822 PWM problem |
Thanks a lot for all your comments. It works with 'traditional' way . |
Topic: 12F1822 PWM problem |
ads
Replies: 34
Views: 92579
|
Forum: General CCS C Discussion Posted: Sun May 24, 2020 12:30 pm Subject: 12F1822 PWM problem |
Hi. Sorry for late reply. My compiler version is 5.008 and I found it if I write the code as
#use pwm (PWM1, FREQUENCY = 38KHz, DUTY = 25)
(by deleting last command which is PWM_OFF then it ... |
Topic: Finding Declaration of a Function |
ads
Replies: 19
Views: 80771
|
Forum: General CCS C Discussion Posted: Mon May 18, 2020 9:40 am Subject: Finding Declaration of a Function |
The CCS built in functions provide a simplified way to set up the PIC peripherals so that getting code running is quicker.
These functions do not work in XC8. If you want to use XC8 you will need to ... |
Topic: Finding Declaration of a Function |
ads
Replies: 19
Views: 80771
|
Forum: General CCS C Discussion Posted: Mon May 18, 2020 8:36 am Subject: Finding Declaration of a Function |
Actually what I want is to write codes in an another compiler. To do this, I need to understand functions and how it works. Thank you all for reading. And sorry for dwelling on this subject.
Are yo ... |
Topic: Finding Declaration of a Function |
ads
Replies: 19
Views: 80771
|
Forum: General CCS C Discussion Posted: Mon May 18, 2020 5:22 am Subject: Finding Declaration of a Function |
Okey thanks a lot everyone. Then it sounds like I need to learn asm language. |
Topic: Finding Declaration of a Function |
ads
Replies: 19
Views: 80771
|
Forum: General CCS C Discussion Posted: Sun May 17, 2020 6:14 pm Subject: Finding Declaration of a Function |
Thanks a lot for your answers. What I just want to see definitions of functions
I think you are misunderstanding what #use is. In C this is referred to as a preprocessor directive.
Sorry you ar ... |
Topic: Finding Declaration of a Function |
ads
Replies: 19
Views: 80771
|
Forum: General CCS C Discussion Posted: Sun May 17, 2020 3:43 pm Subject: Finding Declaration of a Function |
Okey sorry for not being clear let me explain myself again. For example;
Lets assume I am trying to learn how this code works:
#use rs232(baud=2400, xmit=0, stop=1, parity=n)
Normally in ... |
Topic: Finding Declaration of a Function |
ads
Replies: 19
Views: 80771
|
Forum: General CCS C Discussion Posted: Sun May 17, 2020 2:55 pm Subject: Finding Declaration of a Function |
I didn't understand what you mean by "I'd dump the listing... it'll be there."
My question is how to find a declaration do you know sir ? |
Topic: Finding Declaration of a Function |
ads
Replies: 19
Views: 80771
|
Forum: General CCS C Discussion Posted: Sun May 17, 2020 2:20 pm Subject: Finding Declaration of a Function |
Hi I want to find declaration for a function
When I right click and select find declaration it doesn't open it in a new page.
I want to see the #use pwm function. Is there a way to see this. (Bec ... |
Topic: 12F1822 PWM problem |
ads
Replies: 34
Views: 92579
|
Forum: General CCS C Discussion Posted: Sun May 10, 2020 6:12 am Subject: 12F1822 PWM problem |
It compiled OK for me. I'm using CCS vs. 5.093.
Compiling C:\...\pcm_test on 09-May-20 at 16:58
More info: PWM period: 26.38 us, Frequency: 37.915 kHz, Resolution: 10.00 bits
Memory usage ... |
Topic: 12F1822 PWM problem |
ads
Replies: 34
Views: 92579
|
Forum: General CCS C Discussion Posted: Sat May 09, 2020 5:00 pm Subject: 12F1822 PWM problem |
Hi I am having a problem with defining this only :
#include <12F1822.h>
#fuses NOMCLR INTRC_IO PLL_SW
#use delay(clock=32000000)
#use fast_io(A)
#use pwm (PWM1, FREQUE ... |
|