Author |
Message |
Topic: PID heater control with phase angle |
complex72
Replies: 1
Views: 5432
|
Forum: General CCS C Discussion Posted: Mon Jun 09, 2014 10:46 am Subject: PID heater control with phase angle |
Hi, I've been working with a heater (resistor) and phase angle control. I can manipulate the triggering of a TRIAC manually with zero crossing detection and loading values to timer1 interrupt.
Now I' ... |
Topic: Zero crossing detection and Triac firing with timer1 |
complex72
Replies: 4
Views: 6865
|
Forum: General CCS C Discussion Posted: Tue May 27, 2014 9:14 pm Subject: Zero crossing detection and Triac firing with timer1 |
got it...! Thanks Ttelmah and Mike |
Topic: Zero crossing detection and Triac firing with timer1 |
complex72
Replies: 4
Views: 6865
|
Forum: General CCS C Discussion Posted: Tue May 27, 2014 1:36 pm Subject: Zero crossing detection and Triac firing with timer1 |
Your timer1, runs off the master oscillator/8 (Fosc/4 /2).
So with your 48MHz clock, it is counting in 6 millionths of a second. So will count 49980 in 8.33mSec (8330*6).
However remember there wil ... |
Topic: Can I do this conversion without the use of floats....??? |
complex72
Replies: 14
Views: 16677
|
Forum: General CCS C Discussion Posted: Tue May 27, 2014 1:32 pm Subject: Can I do this conversion without the use of floats....??? |
you coluld also use the abs which computes the absolute value of a number.
value = abs(x)
for instance if......
TestTemp=25.63
int16 value = abs(TestTemp)
value will be 25 |
Topic: Zero crossing detection and Triac firing with timer1 |
complex72
Replies: 4
Views: 6865
|
Forum: General CCS C Discussion Posted: Tue May 27, 2014 11:55 am Subject: Zero crossing detection and Triac firing with timer1 |
Hi I've worked before with zero crossing detection, what I would like assistance in is on using timer1 for handling the firing of the triac. I basically have a C# interface with a slider that sends me ... |
Topic: TOUCH SLIDER |
complex72
Replies: 7
Views: 9282
|
Forum: General CCS C Discussion Posted: Wed May 14, 2014 4:06 pm Subject: Re: Got it working...! |
I talked with CCSC technical support and got the answer, the TOUCHDATA array isn't working because it doesn't exist, they found the issue and are going to fix it in the next version of the compiler, ... |
Topic: TOUCH SLIDER |
complex72
Replies: 7
Views: 9282
|
Forum: General CCS C Discussion Posted: Wed May 14, 2014 3:45 pm Subject: Got it working...! |
I talked with CCSC technical support and got the answer, the TOUCHDATA array isn't working because it doesn't exist, they found the issue and are going to fix it in the next version of the compiler, ... |
Topic: TOUCH SLIDER |
complex72
Replies: 7
Views: 9282
|
Forum: General CCS C Discussion Posted: Mon May 12, 2014 9:40 am Subject: TOUCH SLIDER |
I 'played' with this quite a few versions ago, so things might well be different....
I defined the array to have the same number of entries as the number of pins supported by the CTMU, and the orde ... |
Topic: TOUCH SLIDER |
complex72
Replies: 7
Views: 9282
|
Forum: General CCS C Discussion Posted: Sun May 11, 2014 10:05 pm Subject: TOUCH SLIDER |
Does someone know about this topic that could help me out? thank you |
Topic: TOUCH SLIDER |
complex72
Replies: 7
Views: 9282
|
Forum: General CCS C Discussion Posted: Sun May 11, 2014 6:45 pm Subject: TOUCH SLIDER |
Yes.
The key is to use the touchpad_state function, not the getc.
touchpad_state(1);
stores the values from the connected pads as int16 numbers directly into the array 'TOUCHDATA'. It's defin ... |
Topic: TOUCH SLIDER |
complex72
Replies: 7
Views: 9282
|
Forum: General CCS C Discussion Posted: Sat May 10, 2014 11:02 pm Subject: TOUCH SLIDER |
Hi I've been doing some work using the TOUCHPAD functions for 3 buttons and a slider, Ive got the buttons to work perfect but how can I get the slider (2 inverse triangles) to work with this functions ... |
|