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 55 matches
CCS Forum Index
Author Message
  Topic: Jitter-Free Clock Divider Using NCO
MotoDan

Replies: 6
Views: 16860

PostForum: General CCS C Discussion   Posted: Thu Jan 19, 2023 10:58 am   Subject: Jitter-Free Clock Divider Using NCO
Well, the results are in. As Ttelmah suggests, there is not discernible jitter when the NCO increment (count) is a binary multiple. Otherwise, the NCO will automatically adjust a separate count (accum ...
  Topic: Jitter-Free Clock Divider Using NCO
MotoDan

Replies: 6
Views: 16860

PostForum: General CCS C Discussion   Posted: Tue Jan 17, 2023 1:07 pm   Subject: Jitter-Free Clock Divider Using NCO
Thanks, I've seen that link and several others.
  Topic: Jitter-Free Clock Divider Using NCO
MotoDan

Replies: 6
Views: 16860

PostForum: General CCS C Discussion   Posted: Tue Jan 17, 2023 12:16 pm   Subject: Jitter-Free Clock Divider Using NCO
Jay,

Apparently some PICs do have an external input to the NCO. I may keep looking to try and find one that does as well as meets my other criteria.

As far a the jitter rewquirement goes, I'm no ...
  Topic: Jitter-Free Clock Divider Using NCO
MotoDan

Replies: 6
Views: 16860

PostForum: General CCS C Discussion   Posted: Mon Jan 16, 2023 11:48 am   Subject: Jitter-Free Clock Divider Using NCO
Hello all,

I'm working with a PIC16F18426 and am planning on using the Fixed Duty Mode (50% square wave) of the NCO to provide a precise, jitter-free output with an external clock as the NCO clock ...
  Topic: Radical olympic++ ADC averaging , de-noising routine
MotoDan

Replies: 30
Views: 185902

PostForum: Code Library   Posted: Fri Apr 16, 2021 8:50 am   Subject: Radical olympic++ ADC averaging , de-noising routine
asmboy,

I see your point. Didn't study the sort closely enough before making the assumption that the loop limit was incorrect. I revised your comment on that line to read "i 0-14" instead ...
  Topic: Radical olympic++ ADC averaging , de-noising routine
MotoDan

Replies: 30
Views: 185902

PostForum: Code Library   Posted: Thu Apr 15, 2021 3:37 pm   Subject: Radical olympic++ ADC averaging , de-noising routine
Great routine asmboy!

I think there may be a typo in the sort loop upper limit. Orig code shows <15, but it should probably be <16. Corrected code below.

Thanks for the great job. It was j ...
  Topic: Expression must evaluate to a constant - Conditional Exp
MotoDan

Replies: 7
Views: 18026

PostForum: General CCS C Discussion   Posted: Mon Jun 08, 2020 11:01 am   Subject: Expression must evaluate to a constant - Conditional Exp
Just received an email from CCS. They do not support what I am attempting to do.

Thanks for all the replies.
  Topic: Expression must evaluate to a constant - Conditional Exp
MotoDan

Replies: 7
Views: 18026

PostForum: General CCS C Discussion   Posted: Mon Jun 08, 2020 10:58 am   Subject: Expression must evaluate to a constant - Conditional Exp
I guess it's just the way that CCS compilers treat the ?: operation. I've verified my test code works with two other non-CCS 'C' compilers as well as the Arduino compiler.
  Topic: Expression must evaluate to a constant - Conditional Exp
MotoDan

Replies: 7
Views: 18026

PostForum: General CCS C Discussion   Posted: Mon Jun 08, 2020 10:24 am   Subject: Expression must evaluate to a constant - Conditional Exp
To your point, I changed the code to fill a variable array rather than a constant array. The results are the same.


#include "16F18323.h"

void main()
{

int x;

x=5; ...
  Topic: Expression must evaluate to a constant - Conditional Exp
MotoDan

Replies: 7
Views: 18026

PostForum: General CCS C Discussion   Posted: Mon Jun 08, 2020 9:52 am   Subject: Expression must evaluate to a constant - Conditional Exp
In this example, the intent is to fill one element of the array with a constant (either 6 or 7) based on the conditional expression of whether x=5 or not.

This type of conditional fill works with o ...
  Topic: Expression must evaluate to a constant - Conditional Exp
MotoDan

Replies: 7
Views: 18026

PostForum: General CCS C Discussion   Posted: Mon Jun 08, 2020 9:31 am   Subject: Expression must evaluate to a constant - Conditional Exp
Hello all,

Trying to fill a const array using a conditional expression and am getting an error 27 "Expression must evaluate to a constant". Have tried several things, but no joy.

The c ...
  Topic: PIC16LF1579 Pull-Up Anomaly
MotoDan

Replies: 3
Views: 10990

PostForum: General CCS C Discussion   Posted: Fri Mar 06, 2020 10:48 am   Subject: PIC16LF1579 Pull-Up Anomaly
Thanks Ttelmah. I see where ALL of the individual port pin pull-up bits are set to '1' by default so ANY change to the pull-ups will result in all others being turned on.

Cheers
  Topic: PIC16LF1579 Pull-Up Anomaly
MotoDan

Replies: 3
Views: 10990

PostForum: General CCS C Discussion   Posted: Thu Mar 05, 2020 4:31 pm   Subject: PIC16LF1579 Pull-Up Anomaly
I just discovered a possible issue with the programmable weak pull-ups. I've only tested this on the PIC16LF1579, but I suspect it might also pertain to other similar parts.

The problem was found w ...
  Topic: PWM Duty Cycle Problem
MotoDan

Replies: 13
Views: 28556

PostForum: General CCS C Discussion   Posted: Fri Sep 14, 2018 9:08 am   Subject: PWM Duty Cycle Problem
This device only has PWM5 and PWM6. The compiler will reject the setup_pwm1() statement, but will allow setup_pwm1_duty(). Not sure why Microchip doesn't use PWM1 and PWM2 instead.

I have submitted ...
  Topic: PWM Duty Cycle Problem
MotoDan

Replies: 13
Views: 28556

PostForum: General CCS C Discussion   Posted: Thu Sep 13, 2018 3:25 pm   Subject: PWM Duty Cycle Problem
You can still use the setup_pwm5_duty() routine. You just have to be aware that the duty cycle period value is 4x what you might think.
 
Page 1 of 4 Goto page 1, 2, 3, 4  Next
All times are GMT - 6 Hours
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group