View previous topic :: View next topic |
Author |
Message |
sshahryiar
Joined: 05 May 2010 Posts: 94 Location: Dhaka, Bangladesh
|
New software bugs discovered. |
Posted: Fri Jan 06, 2012 3:32 am |
|
|
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
|
|
Posted: Fri Jan 06, 2012 8:43 am |
|
|
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
|
|
Posted: Fri Jan 06, 2012 1:48 pm |
|
|
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
|
New software bugs discovered. |
Posted: Sat Jan 07, 2012 1:38 am |
|
|
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: 19536
|
|
Posted: Sat Jan 07, 2012 3:32 am |
|
|
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
|
|
|
|