Author |
Message |
Topic: RS232-dspic30f4013 |
anhphong208
Replies: 16
Views: 20989
|
Forum: General CCS C Discussion Posted: Thu Jul 03, 2014 7:44 am Subject: RS232-dspic30f4013 |
Hi,
First, learn to use the 'Code' buttons when posting your code. This will preserve the formatting, and make the code much easier to read.
The next thing I would do is to figure out a 'protoco ... |
Topic: Help with PWM on dsPIC 30f4013 |
anhphong208
Replies: 27
Views: 36823
|
Forum: General CCS C Discussion Posted: Thu Jul 03, 2014 7:15 am Subject: Help with PWM on dsPIC 30f4013 |
Hi,
I think I'm going to give up on this thread. The first time I asked what was the voltage being applied to AN0, you said '5V', and it was supplied by an LM35. I pointed out that this was most li ... |
Topic: Help with PWM on dsPIC 30f4013 |
anhphong208
Replies: 27
Views: 36823
|
Forum: General CCS C Discussion Posted: Wed Jul 02, 2014 12:11 pm Subject: Help with PWM on dsPIC 30f4013 |
Hi,
I think I'm going to give up on this thread. The first time I asked what was the voltage being applied to AN0, you said '5V', and it was supplied by an LM35. I pointed out that this was most li ... |
Topic: Help with PWM on dsPIC 30f4013 |
anhphong208
Replies: 27
Views: 36823
|
Forum: General CCS C Discussion Posted: Wed Jul 02, 2014 12:06 pm Subject: Help with PWM on dsPIC 30f4013 |
Hi,
I think I'm going to give up on this thread. The first time I asked what was the voltage being applied to AN0, you said '5V', and it was supplied by an LM35. I pointed out that this was most li ... |
Topic: Help with PWM on dsPIC 30f4013 |
anhphong208
Replies: 27
Views: 36823
|
Forum: General CCS C Discussion Posted: Wed Jul 02, 2014 11:44 am Subject: Help with PWM on dsPIC 30f4013 |
Hi,
You've got to learn to troubleshoot. I've been helping you along the way with the hopes that you would do more and I would do less. So far that isn't happening. I understand the language issues ... |
Topic: Help with PWM on dsPIC 30f4013 |
anhphong208
Replies: 27
Views: 36823
|
Forum: General CCS C Discussion Posted: Wed Jul 02, 2014 8:21 am Subject: Help with PWM on dsPIC 30f4013 |
Hi,
Setting aside the timer issue for the moment, is the A/D actually working as expected? What numeric value is being returned? How are you converting the numeric A/D value to temperature? Are you ... |
Topic: Help with PWM on dsPIC 30f4013 |
anhphong208
Replies: 27
Views: 36823
|
Forum: General CCS C Discussion Posted: Wed Jul 02, 2014 8:09 am Subject: Help with PWM on dsPIC 30f4013 |
Hi,
Setting aside the timer issue for the moment, is the A/D actually working as expected? What numeric value is being returned? How are you converting the numeric A/D value to temperature? Are you ... |
Topic: Help with PWM on dsPIC 30f4013 |
anhphong208
Replies: 27
Views: 36823
|
Forum: General CCS C Discussion Posted: Tue Jul 01, 2014 12:32 pm Subject: Help with PWM on dsPIC 30f4013 |
Why set the timer?.
On the PIC30's, you can program the reset point for each timer. Setting the timer to a value is pointless on these chips. He is doing this for Timer2, but not for Timer1....
.. ... |
Topic: Help with PWM on dsPIC 30f4013 |
anhphong208
Replies: 27
Views: 36823
|
Forum: General CCS C Discussion Posted: Tue Jul 01, 2014 10:17 am Subject: Help with PWM on dsPIC 30f4013 |
Hi,
...........the voltage is 5V on this pin........."LM35" is connected to AN0....
Now, that doesn't seem correct, does it??? You have some sort of a wiring or hardware problem! The ... |
Topic: Help with PWM on dsPIC 30f4013 |
anhphong208
Replies: 27
Views: 36823
|
Forum: General CCS C Discussion Posted: Tue Jul 01, 2014 8:14 am Subject: Help with PWM on dsPIC 30f4013 |
Hi,
You need to add another boolean variable, and move the A/D read and math out of the interrupt.
int1 Read_Analog_Ready = False; //This is a global variable
if(dem==time_lay_mau) ... |
Topic: Help with PWM on dsPIC 30f4013 |
anhphong208
Replies: 27
Views: 36823
|
Forum: General CCS C Discussion Posted: Tue Jul 01, 2014 1:10 am Subject: Help with PWM on dsPIC 30f4013 |
Hi,
Here is what I mean about 'Errors':
#use rs232 (baud=9600, parity=N, xmit=pin_F3, rcv=pin_F2, bits = 8, Errors)
Regarding the 'flag' to signal Main() that a new duty cycle has been re ... |
Topic: Help with PWM on dsPIC 30f4013 |
anhphong208
Replies: 27
Views: 36823
|
Forum: General CCS C Discussion Posted: Mon Jun 30, 2014 1:14 am Subject: Help with PWM on dsPIC 30f4013 |
Hi,
You ignored my advice from your other thread (on the same project) to add 'Errors' to your #use_rs232 directive, and you've ignored Ttelmah's advice to set a flag in your ISR when duty changes, ... |
Topic: Help with PWM on dsPIC 30f4013 |
anhphong208
Replies: 27
Views: 36823
|
Forum: General CCS C Discussion Posted: Mon Jun 30, 2014 12:08 am Subject: Help with PWM on dsPIC 30f4013 |
He doesn't understand English. He can't understand your comments.
His first post was copied from this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=32294
He doesn't understand English. He ... |
Topic: Help with PWM on dsPIC 30f4013 |
anhphong208
Replies: 27
Views: 36823
|
Forum: General CCS C Discussion Posted: Sun Jun 29, 2014 11:56 pm Subject: Help with PWM on dsPIC 30f4013 |
Hi,
You ignored my advice from your other thread (on the same project) to add 'Errors' to your #use_rs232 directive, and you've ignored Ttelmah's advice to set a flag in your ISR when duty changes, ... |
Topic: Help with PWM on dsPIC 30f4013 |
anhphong208
Replies: 27
Views: 36823
|
Forum: General CCS C Discussion Posted: Sun Jun 29, 2014 6:21 pm Subject: Help with PWM on dsPIC 30f4013 |
thanks...i have done...PWM good work...
..............can you check out the Timer1 interrupt writing code right?
.................................................................................... ... |
|