Author |
Message |
Topic: 8 bit pic micro with 4 different PWMs with deadtime |
mukeshp11
Replies: 4
Views: 7864
|
Forum: General CCS C Discussion Posted: Thu Feb 16, 2012 11:36 pm Subject: 8 bit pic micro with 4 different PWMs with deadtime |
Hello everybody,
I want to generate 4 PWMs with deadband available between PWM1 AND PWM2, and dead band between PWM3 and PWM4.
I am trying with 16F690 or 16f887 in pulse steering mode but there ... |
Topic: Dead time while using pulse steering mode |
mukeshp11
Replies: 8
Views: 11689
|
Forum: General CCS C Discussion Posted: Thu Jan 19, 2012 11:04 pm Subject: Dead time while using pulse steering mode |
Thanks Ttelmah,
I am getting dead time by this instruction:
setup_ccp1(CCP_PWM_HALF_BRIDGE | CCP_PWM_H_H, 10 );
I am getting dead time of 2us with 20MHz crystal.
Thanks,
Mukesh |
Topic: Dead time while using pulse steering mode |
mukeshp11
Replies: 8
Views: 11689
|
Forum: General CCS C Discussion Posted: Wed Jan 18, 2012 12:48 am Subject: Dead time while using pulse steering mode |
In PIC 16F690
In half bridge mode-
The 16f690.h head file the PWM1CON register for dead band is not defined. So I am trying to generate dead band in half bridge mode as follows:
#if defined( ... |
Topic: Dead time while using pulse steering mode |
mukeshp11
Replies: 8
Views: 11689
|
Forum: General CCS C Discussion Posted: Tue Jan 17, 2012 8:51 am Subject: Dead time while using pulse steering mode |
The chip is PIC 16F690.
Ok I also think its not possible to give dead time with pulse steering mode. |
Topic: Dead time while using pulse steering mode |
mukeshp11
Replies: 8
Views: 11689
|
Forum: General CCS C Discussion Posted: Tue Jan 17, 2012 5:31 am Subject: Dead time while using pulse steering mode |
Hello,
Is it possible to generate dead time while using pulse steering mode between P1A,P1C & P1B,P1D ?
I require to generate dead time of around 1 microsecond between pulses P1A&P1B, P1 ... |
Topic: Pulse steering function in pic16f690 some problem. |
mukeshp11
Replies: 10
Views: 13086
|
Forum: General CCS C Discussion Posted: Sun Jan 01, 2012 9:49 pm Subject: Pulse steering function in pic16f690 some problem. |
compiler version:-CCS PCM C Compiler, Version 4.099, 49779
Hello pcm programmer,
Code is as follows:-
#if defined(__PCM__) // Preprocessor directive that chooses the compiler ... |
Topic: Pulse steering function in pic16f690 some problem. |
mukeshp11
Replies: 10
Views: 13086
|
Forum: General CCS C Discussion Posted: Sat Dec 31, 2011 12:59 am Subject: Pulse steering function in pic16f690 some problem. |
hello,
pcm programmer,
1) i have set TRIS for port C(where my PWM outputs P1A,P1B,P1C,P1D )are there.
2)Configured timer for 20kHz switching frequency.
3)Configured PWM using pulse steering mode ... |
Topic: Pulse steering function in pic16f690 some problem. |
mukeshp11
Replies: 10
Views: 13086
|
Forum: General CCS C Discussion Posted: Fri Dec 30, 2011 4:48 am Subject: pulse steering function in pic16f690 some problem. |
for PIC16F690
Now i am getting things correctly.
In pulse steering mode when i generate PWM in P1B and simultaneously if i keep P1A as high then I am getting problem in P1A i.e. we get pulse t ... |
Topic: Pulse steering function in pic16f690 some problem. |
mukeshp11
Replies: 10
Views: 13086
|
Forum: General CCS C Discussion Posted: Thu Dec 29, 2011 10:23 am Subject: Pulse steering function in pic16f690 some problem. |
Hi, Ttelmah
Yes I have set portc as 0x00 and hence all four pwms are configured as output.
I can successfully generate PWM simultaneously with command:
setup_CCP1( CCP_PWM_L_H | CCP_PULSE_STE ... |
Topic: Pulse steering function in pic16f690 some problem. |
mukeshp11
Replies: 10
Views: 13086
|
Forum: General CCS C Discussion Posted: Thu Dec 29, 2011 6:28 am Subject: Pulse steering function in pic16f690 some problem. |
One of the function of my code for pwm generation is shown below:
void pulse_steering()
{
if(input(PIN_B4) && input(PIN_C1)) //PUT NOT GATE FOR S ... |
Topic: ADC not working on PIC 16F690 |
mukeshp11
Replies: 3
Views: 9769
|
Forum: General CCS C Discussion Posted: Tue Oct 04, 2011 9:55 pm Subject: ADC NOT WORKING ON PIC 16F690 |
hHi temtronic,
Thanks for your reply, Below shown is the whole code. As am not having LCD configured I am putting the adc value in pwm duty and checking the pwm waveforms according to the adc input ... |
Topic: ADC not working on PIC 16F690 |
mukeshp11
Replies: 3
Views: 9769
|
Forum: General CCS C Discussion Posted: Tue Oct 04, 2011 11:12 am Subject: ADC not working on PIC 16F690 |
void main()
{
set_tris_b(0x70);
set_tris_a(0x04);
setup_timer_2(T2_DIV_BY_1, 255, 1);
clear_interrupt(INT_TIMER2);
enable_interrupts(IN ... |
Topic: Problem with pulse steering on 16F690 while doing if-else |
mukeshp11
Replies: 0
Views: 2956
|
Forum: General CCS C Discussion Posted: Mon Sep 19, 2011 6:06 am Subject: Problem with pulse steering on 16F690 while doing if-else |
Hello,
Kindly help with the following code:-
void main()
{
//set_tris_c(0x00);
//setup_oscillator(OSC_NORMAL );
set_tris_b(0xff);
setup_timer_2(T ... |
Topic: CCS COMPILER WITH 16F690 IN PWM STEERING MODE |
mukeshp11
Replies: 1
Views: 5449
|
Forum: General CCS C Discussion Posted: Thu Sep 15, 2011 3:51 am Subject: CCS COMPILER WITH 16F690 IN PWM STEERING MODE |
The below shown my code has problem while generating more than 1 PWM simulatenously i.e I can't generate say all the 4 PWMS together in all ABCD channels. Kindly help
#if defined(__PCM__) ... |
|