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 16 matches
CCS Forum Index
Author Message
  Topic: PWM Resolution problem
nostep

Replies: 7
Views: 9421

PostForum: General CCS C Discussion   Posted: Thu Jun 11, 2009 11:51 am   Subject: PWM Resolution problem
It's been awhile, so I expect to get slammed if I don't get this right. The PWM uses the number "25" as the total amount of time for your period. This means that you only have 25 steps. Y ...
  Topic: Strange reset behavior. PIC doesn’t start.
nostep

Replies: 7
Views: 9035

PostForum: General CCS C Discussion   Posted: Thu Jun 11, 2009 4:35 am   Subject: Strange reset behavior. PIC doesn’t start.
What's connected to your outputs, anything? I've seen external devices hold up the processor from starting properly if they are powered and the power finds its way back to some processor pins. As su ...
  Topic: conversion float to int8
nostep

Replies: 4
Views: 9561

PostForum: General CCS C Discussion   Posted: Wed Jun 10, 2009 5:05 am   Subject: conversion float to int8
You don't necessarily have to convert it then compare it. You could do this:

// declare variables
int num_int;
float num_float;

// Get your data into the variables as you need to
num_int=127 ...
  Topic: dsPIC and J1939 CAN
nostep

Replies: 0
Views: 3155

PostForum: General CCS C Discussion   Posted: Thu May 21, 2009 4:45 am   Subject: dsPIC and J1939 CAN
Has anyone ported the J1939 code from Microchip to CCS and the dsPIC? Specifically I'm trying to get the J1939 code running on a dsPIC30F6012A. I'm also wondering what would be the best way to acces ...
  Topic: fprintf problem
nostep

Replies: 9
Views: 7445

PostForum: General CCS C Discussion   Posted: Thu Apr 02, 2009 6:13 am   Subject: fprintf problem
Typically and end of string mark is a zero (0x00). What character shows up after your number? Make sure it's a zero like

number[12]=0x00.

If that doesn't work then you can alsways do it the ug ...
  Topic: PWM on dspic30F
nostep

Replies: 2
Views: 4481

PostForum: General CCS C Discussion   Posted: Mon Mar 16, 2009 11:55 am   Subject: PWM on dspic30F
I think I get the pulse when I do this line:

setup_compare(6,COMPARE_PWM|COMPARE_TIMER3); // using OC6 = Pin_RD5

I don't know what else to try.
  Topic: PWM on dspic30F
nostep

Replies: 2
Views: 4481

PostForum: General CCS C Discussion   Posted: Mon Mar 16, 2009 7:02 am   Subject: PWM on dspic30F
I have PWM working on a dsPic30F6012A. Is there a way to not get the first startup pulse? At each bootup there is a short full-on pulse until the PWM gets into sink and starts back at 0 PWM.

Here ...
  Topic: PCD: Timer 2 External with dsPic30F6012A
nostep

Replies: 0
Views: 2079

PostForum: General CCS C Discussion   Posted: Mon Mar 09, 2009 11:31 am   Subject: PCD: Timer 2 External with dsPic30F6012A
I have the latest and greatest CCS compiler and a dsPic30F6012A

I am trying to setup TIMER2 with an external signal. Other than:

setup_timer2(TMR_EXTERNAL, TMR_DIV_BY_1,0);

What else do I ha ...
  Topic: dsPic30F6012A won't run
nostep

Replies: 12
Views: 8083

PostForum: General CCS C Discussion   Posted: Fri Mar 06, 2009 12:38 pm   Subject: dsPic30F6012A won't run
Thanks, I appreciate everyones help.
  Topic: dsPic30F6012A won't run
nostep

Replies: 12
Views: 8083

PostForum: General CCS C Discussion   Posted: Fri Mar 06, 2009 11:05 am   Subject: dsPic30F6012A won't run
DUDE, YOU TOTALLY ROCK! Works Great!
  Topic: dsPic30F6012A won't run
nostep

Replies: 12
Views: 8083

PostForum: General CCS C Discussion   Posted: Fri Mar 06, 2009 8:04 am   Subject: dsPic30F6012A won't run
-------------------------------------------------------
main4.c
-------------------------------------------------------

#include "main4.h"

#use rs232(UART1,baud=9600,parity=N,bit ...
  Topic: dsPic30F6012A won't run
nostep

Replies: 12
Views: 8083

PostForum: General CCS C Discussion   Posted: Fri Mar 06, 2009 7:00 am   Subject: dsPic30F6012A won't run
OK, I have lots of IO pins working now, except for G7 and G8. I think it may have to do with the second function of these pins. Datasheets call out CN9 for pin G7 and CN10 for G8. How does one disa ...
  Topic: dsPic30F6012A won't run
nostep

Replies: 12
Views: 8083

PostForum: General CCS C Discussion   Posted: Fri Mar 06, 2009 5:28 am   Subject: dsPic30F6012A won't run
The above code didn't work. I had to change pin_g7 to pins_g7 because pin_g7 was already defined. Still didn't turn the port on.
  Topic: dsPic30F6012A won't run
nostep

Replies: 12
Views: 8083

PostForum: General CCS C Discussion   Posted: Thu Mar 05, 2009 7:01 pm   Subject: dsPic30F6012A won't run
Andre,

Good idea, I'll try that Friday and let you know.

Thanks,

John
  Topic: PIC16F877A programming
nostep

Replies: 10
Views: 9519

PostForum: General CCS C Discussion   Posted: Wed Mar 04, 2009 6:24 pm   Subject: PIC16F877A programming
What are you getting as an output?
 
Page 1 of 2 Goto page 1, 2  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group