Author |
Message |
Topic: PIC18F4620 slow clock problem |
Linxroot
Replies: 5
Views: 14415
|
Forum: General CCS C Discussion Posted: Wed Jan 24, 2018 9:29 am Subject: Re: PIC18F4620 slow clock problem |
with 10MHZ crystal result in 312KHz in
while loop. Should not it be: 10MHz crystal div/4 (in the PIC internal divider)= 2.5Mhz?
In a word, no. While there is only one C statement in the loop, ther ... |
Topic: PIC18F4620 slow clock problem |
Linxroot
Replies: 5
Views: 14415
|
Forum: General CCS C Discussion Posted: Wed Jan 24, 2018 7:06 am Subject: PIC18F4620 slow clock problem |
what caps are you using for the xtal?
does another xtal work
can you scope the xtal pin to confirm it's oscillating ?
does the PIC run on internal ?
I'm using 15 pF caps
I used 10Mhz resonato ... |
Topic: PIC18F4620 slow clock problem |
Linxroot
Replies: 5
Views: 14415
|
Forum: General CCS C Discussion Posted: Wed Jan 24, 2018 6:24 am Subject: PIC18F4620 slow clock problem |
In my project the PIC18F4620, with 10MHZ crystal result in 312KHz in
while loop. Should not it be: 10MHz crystal div/4 (in the PIC internal divider)= 2.5Mhz?
CCS PCH C Compiler, Version 5.015, xx ... |
Topic: Problem with AD PIC12F683 |
Linxroot
Replies: 14
Views: 24311
|
Forum: General CCS C Discussion Posted: Sun Jun 28, 2015 4:19 pm Subject: Problem with AD PIC12F683 |
I installed compiler vs. 5.015 and shortened your program down to the
essential parts to read and display the ADC results. It worked. The
upper 6 bits are set to 0 by the compiler without any mas ... |
Topic: Problem with AD PIC12F683 |
Linxroot
Replies: 14
Views: 24311
|
Forum: General CCS C Discussion Posted: Tue Jun 23, 2015 7:54 am Subject: Problem with AD PIC12F683 |
Your clock divisor is too small, resulting in a ADC clock that is 8 times
faster than allowed.
#use delay(internal=8000000,RESTART_WDT)
setup_adc(ADC_CLOCK_DIV_2);
The 12F683 data sheet ... |
Topic: Problem with AD PIC12F683 |
Linxroot
Replies: 14
Views: 24311
|
Forum: General CCS C Discussion Posted: Thu Jun 18, 2015 5:59 am Subject: Problem with AD PIC12F683 Solved! |
The problem was in the unused bits of the 6 var test ( int16 ) que was filled with 1 instead 0. Its unknown why, but I used a bitmask to correct this.
Here is the complete code:
#include <12F6 ... |
Topic: Problem with AD PIC12F683 |
Linxroot
Replies: 14
Views: 24311
|
Forum: General CCS C Discussion Posted: Wed Jun 17, 2015 6:20 pm Subject: Problem with AD PIC12F683 |
I do not know exactly what's going on but I cleaned the bits 10-15 of the teste var and it worked fine! it's ok! The PWM and the value of var test have the same
The code was:
bit_clear(teste,1 ... |
Topic: Problem with AD PIC12F683 |
Linxroot
Replies: 14
Views: 24311
|
Forum: General CCS C Discussion Posted: Wed Jun 17, 2015 5:44 pm Subject: Problem with AD PIC12F683 |
Thank You PCM programmer to reply, the voltage is +5V DC to the pic and 0 to 5.07 DC (from the potentiometer) to AD. I know what is RMS, in my previous project I was using AC and my oscilloscope was i ... |
Topic: PIC12F675 - INTRC_IO with NOMCLR not allowed? |
Linxroot
Replies: 2
Views: 19411
|
Forum: General CCS C Discussion Posted: Wed Jun 17, 2015 12:50 pm Subject: PIC12F675 - INTRC_IO with NOMCLR not allowed? |
This is a Microchip issue. The Microchip forum is the best place to look.
Someone offers an explanation near the end of this thread.
It's about using the PicKit 2. Apparently the PicKit 2 has
... |
Topic: Problem with AD PIC12F683 |
Linxroot
Replies: 14
Views: 24311
|
Forum: General CCS C Discussion Posted: Wed Jun 17, 2015 5:31 am Subject: Problem with AD PIC12F683 |
To simplify the tests and eliminate variables I created another code, compiled in another version of CCS (4.068) and with another PIC (PIC12F675).
The problem continues...
#include <12F675.h& ... |
Topic: Problem with AD PIC12F683 |
Linxroot
Replies: 14
Views: 24311
|
Forum: General CCS C Discussion Posted: Wed Jun 17, 2015 5:29 am Subject: Problem with AD PIC12F683 |
the max value of A/D (10 bits) is 65534 instead 1023
Where in your program do you get the value of 65534 ?
I don't see any printf statement to display the ADC value.
Why do you think the ADC retur ... |
Topic: Problem with AD PIC12F683 |
Linxroot
Replies: 14
Views: 24311
|
Forum: General CCS C Discussion Posted: Tue Jun 16, 2015 6:07 pm Subject: Problem with AD PIC12F683 |
I have a 6 years of experience in PIC programing C CCS and I have had a problem with a particular device: PIC12F683. I connected a potentiometer in A/D input (AN3) and got the result to use in a PWM O ... |
Topic: problem with capture #INT_CCP1 PIC16F877A |
Linxroot
Replies: 9
Views: 13224
|
Forum: General CCS C Discussion Posted: Sun May 22, 2011 5:09 pm Subject: problem with capture #INT_CCP1 PIC16F877A (Solved) |
I compared the .LST file code to vs. 4.014 and it's the same. So then I
compiled your code with vs. 4.014 and tested it in hardware. It works.
I added the changes shown in bold below, to make it e ... |
Topic: problem with capture #INT_CCP1 PIC16F877A |
Linxroot
Replies: 9
Views: 13224
|
Forum: General CCS C Discussion Posted: Fri May 20, 2011 3:09 pm Subject: problem with capture #INT_CCP1 PIC16F877A |
That's an old and very buggy version. I don't have it, so there is no way
for me to look at the .LST file to see any problems.
CCS PCM C Compiler, Version 4.013, 28193 20-mai-1 ... |
Topic: problem with capture #INT_CCP1 PIC16F877A |
Linxroot
Replies: 9
Views: 13224
|
Forum: General CCS C Discussion Posted: Thu May 19, 2011 11:28 am Subject: problem with capture #INT_CCP1 PIC16F877A |
PCW 4.0.0.206
That's not the compiler verison. It's a 4-digit number given at the top
of the .LST file, which is in your project directory.
Examples of compiler versions:
http://www.ccsinfo.com ... |
|