Author |
Message |
Topic: Timer5 |
jpos99
Replies: 7
Views: 15814
|
Forum: General CCS C Discussion Posted: Tue Oct 25, 2016 6:36 am Subject: Timer5 |
Hi,
Solved the problem.
The declaration of the variable 'freq' was before the void main() and I don't know why it's not working correctly.
When I declared it on the main program everything star ... |
Topic: Timer5 |
jpos99
Replies: 7
Views: 15814
|
Forum: General CCS C Discussion Posted: Tue Oct 25, 2016 1:46 am Subject: Timer5 |
Thanks Ttelmah,
But I forgot one zero, :P
500000 / ( 100 * 8) = 625
Your suggestion for the PR5 how can I use it on a 16 bit register?
Because what I know that is used to define a name to ... |
Topic: Timer5 |
jpos99
Replies: 7
Views: 15814
|
Forum: General CCS C Discussion Posted: Mon Oct 24, 2016 4:36 pm Subject: Timer5 |
Hello PCM programmer,
Today I run some more test and figure out that the problem is not on the timer counter but on the values I entered on the PR5 register.
I did the following, for a frequency ... |
Topic: Timer5 |
jpos99
Replies: 7
Views: 15814
|
Forum: General CCS C Discussion Posted: Sun Oct 23, 2016 1:42 pm Subject: Timer5 |
Hello,
The PIC is 18F4431.
T is a int16.
The rest I will try. Have any more idea why is rolling over at those values?
Regards |
Topic: Timer5 |
jpos99
Replies: 7
Views: 15814
|
Forum: General CCS C Discussion Posted: Sun Oct 23, 2016 10:41 am Subject: Timer5 |
Hello,
I'm having some problems with the Timer5.
I was working with 8Mhz internal clock and receiving from modbus the value for the period for the timer5, and I was able to have 8hz minimal freq ... |
Topic: PWM center-alignment |
jpos99
Replies: 7
Views: 16397
|
Forum: General CCS C Discussion Posted: Fri May 24, 2013 3:37 am Subject: PWM center-alignment |
Hi,
I've been reading and came across these image that controls the bridge like I want.
time base value?
Thanks all |
Topic: PWM center-alignment |
jpos99
Replies: 7
Views: 16397
|
Forum: General CCS C Discussion Posted: Thu May 23, 2013 10:51 am Subject: PWM center-alignment |
PCM Programmer,
I've been reading the PIC18F4431, and for what I read the Power PWM module is synchronous.
So what I want to do can not be done directly. I manage to do it with some signal manip ... |
Topic: PWM center-alignment |
jpos99
Replies: 7
Views: 16397
|
Forum: General CCS C Discussion Posted: Thu May 23, 2013 7:47 am Subject: PWM center-alignment |
Thanks again PCM Programmer,
The code that you post works fine and I've made some changes.
#include <18F4431.h>
#fuses INTRC_IO,NOWDT,PUT,BROWNOUT,NOLVP
#use delay(clock=8M ... |
Topic: PWM center-alignment |
jpos99
Replies: 7
Views: 16397
|
Forum: General CCS C Discussion Posted: Mon May 20, 2013 4:21 pm Subject: PWM center-alignment |
Thank you PCM Programmer
I've tried the change that you mentioned but still no signal.
Is the rest correct. The period is well configured, because I've had some difficulties on understanding the & ... |
Topic: PWM center-alignment |
jpos99
Replies: 7
Views: 16397
|
Forum: General CCS C Discussion Posted: Mon May 20, 2013 11:08 am Subject: PWM center-alignment |
Hello everyone,
I'm trying to generate 4 pwm signal to control a H-bridge, but I want them to be center alignment to create a dead time to the bridge output by making the time of one of the igbt a ... |
Topic: Multiple ADC reading with PWM sync |
jpos99
Replies: 6
Views: 14601
|
Forum: General CCS C Discussion Posted: Sat Aug 18, 2012 7:23 am Subject: Multiple ADC reading with PWM sync |
Thank you Mike.
Answering you question, right now the pulse is 50us but I want a minimum of 10us or less.
The problem with no value on the ADC reading was because of the PWM. I came up with a way t ... |
Topic: Multiple ADC reading with PWM sync |
jpos99
Replies: 6
Views: 14601
|
Forum: General CCS C Discussion Posted: Fri Aug 17, 2012 5:25 am Subject: Multiple ADC reading with PWM sync |
I successfully implemented the dual ADC reading. But as I mentioned in the last post I'm trying to read the current and voltage in my load. They are pulses, a representation of my PWM signal. Because ... |
Topic: Multiple ADC reading with PWM sync |
jpos99
Replies: 6
Views: 14601
|
Forum: General CCS C Discussion Posted: Mon Aug 13, 2012 4:14 am Subject: Multiple ADC reading with PWM sync |
Thank you PCM Programmer.
Yes I want to read the current and voltage in my load sync with the PWM signal. But as my PWM signal has some restriction. I'm generating a single shot in a interrupt routi ... |
Topic: Multiple ADC reading with PWM sync |
jpos99
Replies: 6
Views: 14601
|
Forum: General CCS C Discussion Posted: Fri Aug 10, 2012 9:18 am Subject: Multiple ADC reading with PWM sync |
Hello, I'm testing this compiler and one of the things I would like to do is multiple analogue readings.
I'm using PIC18F4431 with compiler version 4.093. With it I'm generating a PWM pulse and I ... |
|