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 11 matches
CCS Forum Index
Author Message
  Topic: A question about Triac triggering
shams

Replies: 27
Views: 29718

PostForum: General CCS C Discussion   Posted: Wed Jul 03, 2013 10:19 am   Subject: A question about Triac triggering
Thanks buddy. Laughing

I'm not trying ADC at the moment and my concentration is timer thing. I think I need the Tick approx 60* per second. I need your help to understand the calculation.
setup_tim ...
  Topic: A question about Triac triggering
shams

Replies: 27
Views: 29718

PostForum: General CCS C Discussion   Posted: Wed Jul 03, 2013 8:48 am   Subject: A question about Triac triggering
Hi Mike, answer of your questions:

1. Yes, I get the expected brightness
2. Yes, brightness is varying by the value of delay_ms (0-10ms).

However, adding ADC option changes the whole thing...i. ...
  Topic: A question about Triac triggering
shams

Replies: 27
Views: 29718

PostForum: General CCS C Discussion   Posted: Wed Jul 03, 2013 4:27 am   Subject: A question about Triac triggering
Thanks once again.

Actually my HW and code both works without the Timer INT. But I would like to implemen Timer INT since I'll be using an ADC to change the delay.

Working code (without Timer IN ...
  Topic: A question about Triac triggering
shams

Replies: 27
Views: 29718

PostForum: General CCS C Discussion   Posted: Wed Jul 03, 2013 2:53 am   Subject: A question about Triac triggering
...
I've slept since then and suggest you simply post your new code, leaving the original post intact.
...
Thanks Mike. I'll follow that next time.

I'm expecting that Triac will be fired after t ...
  Topic: A question about Triac triggering
shams

Replies: 27
Views: 29718

PostForum: General CCS C Discussion   Posted: Wed Jul 03, 2013 1:33 am   Subject: A question about Triac triggering
Thank you, Ttelmah. I changed the code as per your suggestion.
Kindly see above your post. Do you think the concept is right?
  Topic: A question about Triac triggering
shams

Replies: 27
Views: 29718

PostForum: General CCS C Discussion   Posted: Tue Jul 02, 2013 12:17 am   Subject: A question about Triac triggering
Because you want to adjust how long _after_ the zero cross, you fire the TRIAC.....
...

So is it that...I can fire the triac through Timer INT without firing in while loop?
Sorry, I'm asking so m ...
  Topic: A question about Triac triggering
shams

Replies: 27
Views: 29718

PostForum: General CCS C Discussion   Posted: Mon Jul 01, 2013 10:45 am   Subject: A question about Triac triggering
Wonderful. Thanks Ttelmah. I really got it. Smile

as is the on time is only about 1 part in 2000 for a 50hz mains freq.

@asmboy: This is why I was asking about the max ON time.

By the way, I saw ...
  Topic: A question about Triac triggering
shams

Replies: 27
Views: 29718

PostForum: General CCS C Discussion   Posted: Mon Jul 01, 2013 8:33 am   Subject: A question about Triac triggering
Thanks Jay.
I used an LED in series with the opto and that really helped. Smile

I learnt the concept a bit now though still I have a few questions. Ttelmah suggested a 5uS delay (in while loop) to t ...
  Topic: A question about Triac triggering
shams

Replies: 27
Views: 29718

PostForum: General CCS C Discussion   Posted: Sun Jun 30, 2013 11:38 pm   Subject: A question about Triac triggering
@Mike:
Sorry I forgot to answer your question. I was just experimenting triac firing at zero from PIC. I added some delay (on/off) to make the light on/off visible. But I understand now, my thinking ...
  Topic: A question about Triac triggering
shams

Replies: 27
Views: 29718

PostForum: General CCS C Discussion   Posted: Sun Jun 30, 2013 10:57 am   Subject: A question about Triac triggering
Many thanks buddy for your responses. I'm actually trying to learn about Triac firing by the PIC.

Here is the actual schematic. I hope zero crossing is ok. By the way, I forgot to draw the crystal ...
  Topic: A question about Triac triggering
shams

Replies: 27
Views: 29718

PostForum: General CCS C Discussion   Posted: Sun Jun 30, 2013 7:39 am   Subject: A question about Triac triggering
Hi:

I'm new to PIC MCU.

I'm doing an experiment with the PIC16F6886 to trigger a Triac to switch (ON/OFF) an AC lamp. But the triac is not correctly triggering. Actually triac is triggered at ze ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group