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: PCD switch statements
jdean

Replies: 8
Views: 18008

PostForum: General CCS C Discussion   Posted: Fri Nov 16, 2018 3:13 pm   Subject: PCD switch statements
Embarassed right, the chip is a dsPIC33EP512MU810, my bad

I haven't dug too far into why enabling PSV gave me issues, but I was able to use a const array by first copying the function pointer into ram ...
  Topic: PCD switch statements
jdean

Replies: 8
Views: 18008

PostForum: General CCS C Discussion   Posted: Fri Nov 16, 2018 1:23 pm   Subject: PCD switch statements
To the site which called 'validate_symargs'

The define was created as a way to reuse the construct in different functions. Since these are goto/label pairs, they are scoped to the function where t ...
  Topic: PCD switch statements
jdean

Replies: 8
Views: 18008

PostForum: General CCS C Discussion   Posted: Fri Nov 16, 2018 12:15 pm   Subject: PCD switch statements
Ttelmah: It looks like the array of function pointers is probably going to win out here.

I've resumed testing the switch statements as I've never seen the compiler produce either a jump table, or e ...
  Topic: PCD switch statements
jdean

Replies: 8
Views: 18008

PostForum: General CCS C Discussion   Posted: Thu Nov 15, 2018 3:21 pm   Subject: PCD switch statements
*** note, the case values in the previous post are sequential enum values, placed in order. Presently both the enum and switch statement are generated by a separate tool from a specification.

Alri ...
  Topic: PCD switch statements
jdean

Replies: 8
Views: 18008

PostForum: General CCS C Discussion   Posted: Thu Nov 15, 2018 10:59 am   Subject: PCD switch statements
Greetings all!

I'm looking at using a large switch statement for a binary parser using the PCD 5.081 compiler. After reading about some of the tricks to get the PCH compiler to generate jump table ...
  Topic: PWM Duty Cycle Problem
jdean

Replies: 13
Views: 28761

PostForum: General CCS C Discussion   Posted: Thu Sep 13, 2018 4:23 pm   Subject: PWM Duty Cycle Problem
Yes and no.

You can use it with a literal argument and get the 16-bit behavior from the documentation. eg:
setup_pwm5_duty(100)

However, if you need to set your duty cycle from a variable inst ...
  Topic: Bootloader for dsPic33
jdean

Replies: 2
Views: 10208

PostForum: General CCS C Discussion   Posted: Thu Sep 13, 2018 4:13 pm   Subject: Bootloader for dsPic33
Just an update on my progress working through this...

It is indeed the interrupt vector, as defined by the #build line which is colliding with the rom modifier array. The same error appears even i ...
  Topic: PWM Duty Cycle Problem
jdean

Replies: 13
Views: 28761

PostForum: General CCS C Discussion   Posted: Thu Sep 13, 2018 2:51 pm   Subject: PWM Duty Cycle Problem
Happy to see you have it sorted, sad to see that you had to resort to a direct register write to pull it off.

This part is odd:


0054: MOVF @78,W
0055: MOVLB 0C
0056: MOVW ...
  Topic: PWM Duty Cycle Problem
jdean

Replies: 13
Views: 28761

PostForum: General CCS C Discussion   Posted: Thu Sep 13, 2018 11:32 am   Subject: PWM Duty Cycle Problem
MotoDan: I believe the issue is that set-pwm5_duty is an overloaded function supporting either an 8-bit or 16-bit argument. Looking at the documentation, the 16-bit variant produces a duty-cycle that ...
  Topic: Bootloader for dsPic33
jdean

Replies: 2
Views: 10208

PostForum: General CCS C Discussion   Posted: Wed Sep 12, 2018 4:43 pm   Subject: Bootloader for dsPic33
Greetings all!

I'm currently working through an issue with a bootloader I'm building, and am hoping for some insight.

Currently I'm targeting the dsPIC33EP512MU810, and one of the details with t ...
 
Page 1 of 1
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group