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 15 matches
CCS Forum Index
Author Message
  Topic: Motor PWM (micro reset in 100V)
af19

Replies: 12
Views: 18964

PostForum: General CCS C Discussion   Posted: Tue Aug 25, 2015 12:00 am   Subject: Motor PWM (micro reset in 100V)
I found something which I think it is causing the bad PWM output.
I erased #FUSES CKSFSM and my PWM output got bad, so I think it's the part of the code which is making my PWM shape to be okay.
Bu ...
  Topic: Motor PWM (micro reset in 100V)
af19

Replies: 12
Views: 18964

PostForum: General CCS C Discussion   Posted: Mon Aug 24, 2015 11:13 pm   Subject: Motor PWM (micro reset in 100V)
A 10k pullup is a little on the large side in a noisy environment. 4.7k would provide a "stronger" pullup that noise would have a tougher time pulling down.

Do you have the brownout fuse ...
  Topic: Motor PWM (micro reset in 100V)
af19

Replies: 12
Views: 18964

PostForum: General CCS C Discussion   Posted: Sun Aug 23, 2015 10:58 am   Subject: Motor PWM (micro reset in 100V)
Double check your ground connection. The classic 'reasons' for this, are 1: MCLR. 2: Power. 3: Still compiling in DEBUG mode.

Remember if you are compiling through MPLAB, this defaults to selecting ...
  Topic: Motor PWM (micro reset in 100V)
af19

Replies: 12
Views: 18964

PostForum: General CCS C Discussion   Posted: Sun Aug 23, 2015 10:39 am   Subject: Motor PWM (micro reset in 100V)
What circuit do you have on the MCLR pin?.
I just have a 10k pull up resistor.
  Topic: Motor PWM (micro reset in 100V)
af19

Replies: 12
Views: 18964

PostForum: General CCS C Discussion   Posted: Sun Aug 23, 2015 10:07 am   Subject: Motor PWM (micro reset in 100V)
Electrical noise.

With anything involving switching into inductors (motors are both inductors and also generators), your supply/switching circuit has to contain the circuitry to handle both the hig ...
  Topic: Motor PWM (micro reset in 100V)
af19

Replies: 12
Views: 18964

PostForum: General CCS C Discussion   Posted: Sun Aug 23, 2015 12:13 am   Subject: Motor PWM (micro reset in 100V)
Hello guys.
My micro is dsPIC30F4011 and I'm having a problem with my micro.
I'm using the micro to control an IM (Induction Motor), and I'm just using MPWM pins of the micro.
MPWM outputs are okay ...
  Topic: [SOLVED]Motor pwm pair 3 not working
af19

Replies: 20
Views: 24300

PostForum: General CCS C Discussion   Posted: Tue Feb 03, 2015 2:09 pm   Subject: [SOLVED]Motor pwm pair 3 not working
Several things.

You can't just use an async stimulus. It has to be seen as an 'external' stimulus.
Use the 'clock stimulus' tab, and select RB6, 'initial' HIGH 'begin' At start, 'End' never. Do th ...
  Topic: [SOLVED]Motor pwm pair 3 not working
af19

Replies: 20
Views: 24300

PostForum: General CCS C Discussion   Posted: Mon Feb 02, 2015 8:33 am   Subject: [SOLVED]Motor pwm pair 3 not working
Pull both pin 14, and pin 15 high externally.
On this chip, the fault inputs wake up enabled, with _pull down_ resistors on them (so they default to the fault condition).

Haven't got this chip, bu ...
  Topic: [SOLVED]Motor pwm pair 3 not working
af19

Replies: 20
Views: 24300

PostForum: General CCS C Discussion   Posted: Mon Feb 02, 2015 2:24 am   Subject: [SOLVED]Motor pwm pair 3 not working
I put the micro controller on breadboard and there is still a 2.5 V on the PIN B11!! Bummed Out Bummed Out
I think there is a problem with fuse bits.
What do you think is the problem?
  Topic: [SOLVED]Motor pwm pair 3 not working
af19

Replies: 20
Views: 24300

PostForum: General CCS C Discussion   Posted: Mon Feb 02, 2015 2:00 am   Subject: [SOLVED]Motor pwm pair 3 not working
Thanks for the reply.
just to confirm..

yes, you do need the caps ! If you look in the datasheet section about 'oscillator configurations'.. whenever you use a discrete crystal you MUST have 2 sm ...
  Topic: [SOLVED]Motor pwm pair 3 not working
af19

Replies: 20
Views: 24300

PostForum: General CCS C Discussion   Posted: Sun Feb 01, 2015 1:23 pm   Subject: [SOLVED]Motor pwm pair 3 not working
the board needs to be changed for the caps.
Where are the caps on your crystal circuit ? I don't see them, unless
they are on another layer of your board.
I'm going to test on the breadboard fir ...
  Topic: [SOLVED]Motor pwm pair 3 not working
af19

Replies: 20
Views: 24300

PostForum: General CCS C Discussion   Posted: Sun Feb 01, 2015 1:17 pm   Subject: [SOLVED]Motor pwm pair 3 not working
Thanks for the Reply.
The motor PWM, is not one of the relocatable peripherals (I checked that). Smile
Where are the caps on your crystal circuit ? I don't see them, unless
they are on another lay ...
  Topic: [SOLVED]Motor pwm pair 3 not working
af19

Replies: 20
Views: 24300

PostForum: General CCS C Discussion   Posted: Sun Feb 01, 2015 9:48 am   Subject: [SOLVED]Motor pwm pair 3 not working
Thanks for the reply.
hmm. if this PIC has 'configurable' I/O pins, that could be the issue. Do you need 'pin_select' at all ?
I didn't use 'pin_select' for other pins, but i will give this a shot. ...
  Topic: [SOLVED]Motor pwm pair 3 not working
af19

Replies: 20
Views: 24300

PostForum: General CCS C Discussion   Posted: Sun Feb 01, 2015 8:57 am   Subject: [SOLVED]Motor pwm pair 3 not working
The fact that output_high() doesn't work..hmm..
are those pins used for an ICD or Debug module ??


Thank you for your Reply.
I tested led 1HZ LED Program too, but it didnt work.
These PINS are ...
  Topic: [SOLVED]Motor pwm pair 3 not working
af19

Replies: 20
Views: 24300

PostForum: General CCS C Discussion   Posted: Sun Feb 01, 2015 8:28 am   Subject: [SOLVED]Motor pwm pair 3 not working
I'm working with dspic33fj16mc102
I want to use motor pwm unit to make 3 phase pwm.
here is my code.

#include <33FJ16MC102.h>

#FUSES NOWDT //No Watch Dog Timer
#FUSES ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group