Author |
Message |
Topic: PIC18F4550 ECCP PWM |
samuel yap
Replies: 2
Views: 6958
|
Forum: General CCS C Discussion Posted: Tue Mar 06, 2012 10:41 am Subject: PIC18F4550 ECCP PWM |
If i just set the CCP1CON to full bridge forward/reverse, it will automatically configure the pins P1A, P1B, P1C,P1D ?
for example :
setup_ccp1(CCP_PWM_FULL_BRIDGE | CCP_PWM_H_H);
delay_m ... |
Topic: setup_power_pwm_pins(PWM_COMPLEMENTARY, PWM_COMPLEMENTARY, P |
samuel yap
Replies: 1
Views: 5785
|
Forum: General CCS C Discussion Posted: Mon Feb 20, 2012 10:03 am Subject: setup_power_pwm_pins(PWM_COMPLEMENTARY, PWM_COMPLEMENTARY, P |
what is mean by pwm_complementary , pwm_off, pwm_on ?
normally the setting is setup_power_pwm_pins(PWM_COMPLEMENTARY, PWM_COMPLEMENTARY, PWM_OFF, PWM_OFF)
What does that means? |
Topic: setup_timer_2( ) |
samuel yap
Replies: 4
Views: 11542
|
Forum: General CCS C Discussion Posted: Mon Feb 20, 2012 7:31 am Subject: setup_timer_2( ) |
Look again.
Think for a moment. Master clock/(4*prescaler), gives a clock rate of 1.25MHz feeding the counter. What is 1/1.25E6?
Then what is 154.4*2. Given the last number says 'how many times the ... |
Topic: Inverter, IGBT, Optocoupler, PIC |
samuel yap
Replies: 20
Views: 23700
|
Forum: General CCS C Discussion Posted: Mon Feb 20, 2012 1:11 am Subject: Re: Do you want help? |
Read the datasheet for the PIC ... specifically the ECCP section where it covers full-bridge PWM.
Is CCS cover the ECCP'S FULL BRIDGE PWM? |
Topic: setup_timer_2( ) |
samuel yap
Replies: 4
Views: 11542
|
Forum: General CCS C Discussion Posted: Mon Feb 20, 2012 1:05 am Subject: setup_timer_2( ) |
He only explain about 154.4us, what about 800ns and 308.8us ? |
Topic: setup_timer_2( ) |
samuel yap
Replies: 4
Views: 11542
|
Forum: General CCS C Discussion Posted: Fri Feb 17, 2012 10:33 am Subject: setup_timer_2( ) |
Who can explain ?
setup_timer_2 ( T2_DIV_BY_4, 0xc0, 2);
// At 20Mhz, the timer will increment every 800ns,
// will overflow every 154.4us,
// and will interrupt every 308.8us.
1. How ... |
Topic: Inverter, IGBT, Optocoupler, PIC |
samuel yap
Replies: 20
Views: 23700
|
Forum: General CCS C Discussion Posted: Fri Feb 17, 2012 10:21 am Subject: Re: Do you want help? |
Please refer to my original topic description
1. Prescale is a divider before the counter clock input, postscale is a divider after the counter output.
2. This sentence is incoherent, can you ... |
Topic: Inverter, IGBT, Optocoupler, PIC |
samuel yap
Replies: 20
Views: 23700
|
Forum: General CCS C Discussion Posted: Fri Feb 17, 2012 10:17 am Subject: Re: More detail please |
(1) Input voltage. 170Vdc
(2) Output voltage. 120Vac
(3) Output power / current. 500W, 4Aac
(4) AC or DC output. AC output
(5) Regulation. NO
(6) Protection. NO
(7) Switching frequency. I have n ... |
Topic: Inverter, IGBT, Optocoupler, PIC |
samuel yap
Replies: 20
Views: 23700
|
Forum: General CCS C Discussion Posted: Fri Feb 17, 2012 10:16 am Subject: Re: More detail please |
(1) Input voltage. 170Vdc
(2) Output voltage. 120Vac
(3) Output power / current. 500W, 4Aac
(4) AC or DC output. AC output
(5) Regulation. NO
(6) Protection. NO
(7) Switching frequency. I have n ... |
Topic: Inverter, IGBT, Optocoupler, PIC |
samuel yap
Replies: 20
Views: 23700
|
Forum: General CCS C Discussion Posted: Thu Feb 16, 2012 9:03 pm Subject: Re: Do you want help? |
I don't need "ready made solutions". What i need is the procedure and guideline. I have some questions:
1. What is the difference between postscale and prescale?
2. Is that I need to set 2 ... |
Topic: Inverter, IGBT, Optocoupler, PIC |
samuel yap
Replies: 20
Views: 23700
|
Forum: General CCS C Discussion Posted: Wed Feb 15, 2012 11:22 am Subject: Inverter, IGBT, Optocoupler, PIC |
I am constructing a single phase inverter which consisting of 4 IGBTs. Each IGBT is controlled by optocoupler (gate drive).
It is a full bridge inverter. The four IGBTs is named S1,S2,S3,S4. During ... |
|