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

New software bugs discovered.

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
sshahryiar



Joined: 05 May 2010
Posts: 94
Location: Dhaka, Bangladesh

View user's profile Send private message Send e-mail Visit poster's website

New software bugs discovered.
PostPosted: Fri Jan 06, 2012 3:32 am     Reply with quote

Dear all,

This message is directed particularly to the CCS software developers and all concerned. I'm currently using CCS compiler version 4.124 and I found out these two problems:

1. The comparator module in small PICs like PIC12F629 doesn't seem to work with the built-in functions like "setup_comparator(A0_A1)".

2. The PWM module also seems not to work with the internal oscillator configurations.

Any suggestion regarding this matter will be appreciated.

Thanks.
_________________
https://www.facebook.com/MicroArena

SShahryiar
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Fri Jan 06, 2012 8:43 am     Reply with quote

Can you give a small complete program that demonstrates the problems? Also give your compiler version.
_________________
The search for better is endless. Instead simply find very good and get the job done.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Jan 06, 2012 1:48 pm     Reply with quote

Quote:

1. The comparator module in small PICs like PIC12F629 doesn't seem to work with the built-in functions like "setup_comparator(A0_A1)".

2. The PWM module also seems not to work with the internal oscillator configurations

12F629 doesn't have a CCP module and can't do hardware PWM.
sshahryiar



Joined: 05 May 2010
Posts: 94
Location: Dhaka, Bangladesh

View user's profile Send private message Send e-mail Visit poster's website

New software bugs discovered.
PostPosted: Sat Jan 07, 2012 1:38 am     Reply with quote

Dear PCM programmer,

I didn't mention "PWM module with PIC12F629". The comparator problem was discovered with PIC12F629. However it didn't occur with PIC12F675. The problem with PWM module happened with mid-range chips with internal oscillator like PIC16F690, PIC16F88, PIC12F683, etc. Test with any simple code and it is visible. I just want to know why it happened so.

Thanks.
_________________
https://www.facebook.com/MicroArena

SShahryiar
Ttelmah



Joined: 11 Mar 2010
Posts: 19545

View user's profile Send private message

PostPosted: Sat Jan 07, 2012 3:32 am     Reply with quote

I can't actually see how what you describe for the PWM 'can' happen, and it certainly doesn't for me....
Am running the 690, with a PWM off the internal oscillator, and it runs fine with the current compilers.

The PWM setup just expects an output from timer2.
Timer2 just takes whatever oscillator it is fed.
If the master oscillator is running, Timer2, works. Doesn't care whether the source is internal or external.
There are no changes between running with internal or external oscillators.

On both problems, are you _sure_ that when you switch compiler versions, you change the project definitions to point to the include files for the latter compiler, not the ones for the old compiler?. There are some changes in some of the definitions that started to appear in the early 4.12x compilers, and if the old include file is used, all sorts of odd things can happen.

Best Wishes
sshahryiar



Joined: 05 May 2010
Posts: 94
Location: Dhaka, Bangladesh

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Sun Jan 08, 2012 3:12 am     Reply with quote

Dear Ttelmah,

I'll give it a try and will post soon. Thanks.
_________________
https://www.facebook.com/MicroArena

SShahryiar
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group