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 10 matches
CCS Forum Index
Author Message
  Topic: dsPIC30f2020 Adc problem
torlaktr

Replies: 15
Views: 29100

PostForum: General CCS C Discussion   Posted: Sun Dec 25, 2016 3:01 am   Subject: dsPIC30f2020 Adc problem
Based on this comment:
I removed 30f2020 and connect 30f2010 and measure perfect.
It would appear PCM is likely correct.
I am on travel right now and also cannot test this but I can test it on Mon ...
  Topic: dsPIC30f2020 Adc problem
torlaktr

Replies: 15
Views: 29100

PostForum: General CCS C Discussion   Posted: Sat Dec 24, 2016 1:02 pm   Subject: dsPIC30f2020 Adc problem
If you look in the header you will find sAN1 is equal to 2 not 1.
For set_adc_channel() the parameter should be 0-7 not sANx.
Also, you MUST have a short delay between set_adc_channel() and read_a ...
  Topic: dsPIC30f2020 Adc problem
torlaktr

Replies: 15
Views: 29100

PostForum: General CCS C Discussion   Posted: Fri Dec 23, 2016 11:02 pm   Subject: dsPIC30f2020 Adc problem
1. Post your current test program.

2. Do you get any text displayed on the LCD ? Post what it displays.

3. Measure the voltage that you have on the analog pin with a scope
or a voltmeter and ...
  Topic: dsPIC30f2020 Adc problem
torlaktr

Replies: 15
Views: 29100

PostForum: General CCS C Discussion   Posted: Fri Dec 23, 2016 11:58 am   Subject: dsPIC30f2020 Adc problem
Do you have the AVdd and AVss pins connected to anything ?
Thank you Pcm_programming
Yes, of course but no measurement
I do not understand Why Why Why Why is it not measuring
Avdd +5 avss - (g ...
  Topic: dsPIC30f2020 Adc problem
torlaktr

Replies: 15
Views: 29100

PostForum: General CCS C Discussion   Posted: Fri Dec 23, 2016 11:20 am   Subject: dsPIC30f2020 Adc problem
No.

SETUP_ADC_PORTS(sAN1|VSS_VDD);
Note the '1'.

Is what sets up the multiplexer.

Then

set_adc_channel(1);

is correct to select this input.

The point is that 'channel' '1', is sAN ...
  Topic: dsPIC30f2020 Adc problem
torlaktr

Replies: 15
Views: 29100

PostForum: General CCS C Discussion   Posted: Fri Dec 23, 2016 10:09 am   Subject: dsPIC30f2020 Adc problem
You have only fed AN0 to the multiplexer. ADC channel 0, not 1, on pin B0, which you then have set as an output. ADC 'channel numbers' are the ANx number. If you want to look at AN1, this needs to be ...
  Topic: dsPIC30f2020 Adc problem
torlaktr

Replies: 15
Views: 29100

PostForum: General CCS C Discussion   Posted: Fri Dec 23, 2016 9:57 am   Subject: dsPIC30f2020 Adc problem
Hello guys
30f2020 adc not working please help me ! Where is the problem ?

My code :

#include<30F2020.h>
#device ADC=10
#device *=16
#FUSES NOWDT //No Watch Dog Ti ...
  Topic: 30f2010 dead time problem
torlaktr

Replies: 6
Views: 13054

PostForum: General CCS C Discussion   Posted: Sat Mar 19, 2016 11:47 am   Subject: Thank you
I drive h bridge mosfets ...
but I have to replace dead time
How can I do it ?
  Topic: 30f2010 dead time problem
torlaktr

Replies: 6
Views: 13054

PostForum: General CCS C Discussion   Posted: Fri Mar 18, 2016 4:40 am   Subject: Thank you
Dear Ttelmah thank you

But
set_motor_unit(1,2,MPWM_ENABLE ,50,50); very good
Im chance dead time
set_motor_unit(1,2,MPWM_ENABLE ,65,65);

Compiler error : Expression must evaluate to a co ...
  Topic: 30f2010 dead time problem
torlaktr

Replies: 6
Views: 13054

PostForum: General CCS C Discussion   Posted: Fri Mar 18, 2016 1:42 am   Subject: 30f2010 dead time problem
Hello gentlemen

My problem

It gives error

Expression must evaluate to a constant :: DT too high

Why ?


#include <30f2010.h>
#device ADC=10
#fuses XT_PLL16
#fuses NOWDT
#fus ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group