Author |
Message |
Topic: Data types |
Delfinss
Replies: 5
Views: 16236
|
Forum: General CCS C Discussion Posted: Wed Aug 31, 2022 3:07 am Subject: Data types |
The issue is the CCS compiler (for all versions except for PCD
Thank you very much for the information. After making the relevant correction, I receive such a warning. Should I take it into accoun ... |
Topic: Data types |
Delfinss
Replies: 5
Views: 16236
|
Forum: General CCS C Discussion Posted: Mon Aug 29, 2022 8:51 am Subject: Data types |
You have your int32 variables declared as _unsigned_ types. You need
to use signed int32.
You are printing an unsigned variable as a signed result. Also when
you subtract, if the result is negati ... |
Topic: Data types |
Delfinss
Replies: 5
Views: 16236
|
Forum: General CCS C Discussion Posted: Mon Aug 29, 2022 5:10 am Subject: Data types |
Hello everyone
ccs c version 5.093
My variables are defined in the global field.
I have two ADC values. When I printf by taking the difference of these, the results show -67 or 409044448 values o ... |
Topic: PWM not working |
Delfinss
Replies: 6
Views: 18691
|
Forum: General CCS C Discussion Posted: Tue May 31, 2022 8:25 am Subject: PWM not working |
i'm a bit of a beginner
I take your warnings into account.
Happy new year temtronic |
Topic: PWM not working |
Delfinss
Replies: 6
Views: 18691
|
Forum: General CCS C Discussion Posted: Thu May 26, 2022 8:27 am Subject: PWM not working |
Hello to everyone
use the compiler.5.007
PIC16f1509
I want to get different tones of buzzer with pwm. But I couldn't get it to work. Please help.
int16 Duty=255;
setup_timer_2(T2_DIV_BY_1 ... |
Topic: TIMER0 and ADC with 16F1509 |
Delfinss
Replies: 22
Views: 51287
|
Forum: General CCS C Discussion Posted: Wed May 18, 2022 8:58 am Subject: TİMER0 and ADC with 16F1509 |
thank you all very much, you did a great job |
Topic: TIMER0 and ADC with 16F1509 |
Delfinss
Replies: 22
Views: 51287
|
Forum: General CCS C Discussion Posted: Fri May 13, 2022 8:42 am Subject: TİMER0 and ADC with 16F1509 |
I think it worked
I was able to get values with fast_io and not standard_io
Will this cause any problems for me?
Temperature:26.09 AVG_CO-ADC= 208
Temperature:26.18 AVG_CO-ADC= 207
th ... |
Topic: TIMER0 and ADC with 16F1509 |
Delfinss
Replies: 22
Views: 51287
|
Forum: General CCS C Discussion Posted: Fri May 13, 2022 5:06 am Subject: TİMER0 and ADC with 16F1509 |
Hi again
Unfortunately this is the result
Temperature:-51.26 AVG CO-ADC= 1
Please share your suggestions. I also try a lot before writing to the forum, but I have not been successful yet.
// ... |
Topic: TIMER0 and ADC with 16F1509 |
Delfinss
Replies: 22
Views: 51287
|
Forum: General CCS C Discussion Posted: Tue May 10, 2022 3:24 am Subject: TIMER0 and ADC with 16F1509 |
temperature:22.45
NTC-ADC = 339
CO-ADC = 1
I couldn't read channel 7 again
#int_timer0
void timer0_test()
{
set_timer0(60); // 50 ms }
sayi++;
if(sayi==20) // 50*40 ... |
Topic: TIMER0 and ADC with 16F1509 |
Delfinss
Replies: 22
Views: 51287
|
Forum: General CCS C Discussion Posted: Tue May 10, 2022 2:03 am Subject: TIMER0 and ADC with 16F1509 |
PCM programmer thank you for some previous info
now i get 1 value when reading 2 adc values
where is the problem? can you help me?
#include <16f1509.h>
#device ADC = 10 // 0 ile 1023
... |
Topic: TIMER0 and ADC with 16F1509 |
Delfinss
Replies: 22
Views: 51287
|
Forum: General CCS C Discussion Posted: Tue May 10, 2022 12:37 am Subject: TİMER0 and ADC with 16F1509 |
Hello again everyone
I tried to simplify the code. but tell me i ran into a problem.
When I use standard_io I get the ADC value of 1.
When I use fast_io I read the ADC value normally.
where is t ... |
Topic: TIMER0 and ADC with 16F1509 |
Delfinss
Replies: 22
Views: 51287
|
Forum: General CCS C Discussion Posted: Thu May 05, 2022 6:38 am Subject: TIMER0 and ADC with 16F1509 |
There are also rather a lot of other problems.
He loops, changing the ADC channel. After the first pass, the interrupt
will be enabled, so the ADC will be reading different ADC channels on
some ... |
Topic: TIMER0 and ADC with 16F1509 |
Delfinss
Replies: 22
Views: 51287
|
Forum: General CCS C Discussion Posted: Thu May 05, 2022 6:28 am Subject: TIMER0 and ADC with 16F1509 |
I had a quick look
saw these two lines...
unsigned short int onuf_co; //input_co,opamp_co,
this makes onuf_co a one bit variable...
unsigned short int avg_NTC,value,sum_NTC,sum_CO,avg_CO;
ag ... |
Topic: TIMER0 and ADC with 16F1509 |
Delfinss
Replies: 22
Views: 51287
|
Forum: General CCS C Discussion Posted: Fri Apr 29, 2022 3:15 am Subject: TIMER0 and ADC with 16F1509 |
Thank you very much for your valuable suggestions.
I tried to implement your warnings as far as I can understand.
I used Timer1 because I didn't know how to solve the synchronization problem. But no ... |
Topic: TIMER0 and ADC with 16F1509 |
Delfinss
Replies: 22
Views: 51287
|
Forum: General CCS C Discussion Posted: Thu Apr 28, 2022 1:22 am Subject: TIMER0 and ADC with 16F1509 |
Hello everyone
ccs c version 5.007
I haven't been able to get the timer0 interrupt working with adc.
I think I have a problem with the timings.
Can you help me where do you need to pay attention?
... |
|