Author |
Message |
Topic: 16F1503 Internal Temperature Indicator |
Sam_63
Replies: 13
Views: 31257
|
Forum: General CCS C Discussion Posted: Mon May 21, 2012 11:54 am Subject: 16F1503 Internal Temperature Indicator |
One thing 'critical' with CCS, is to keep to the 'lowest subset', of original K&R features, and CCS features. Trying anything beyond this is likely to lead to failure.
int1 done = adc_done(); ... |
Topic: 16F1503 Internal Temperature Indicator |
Sam_63
Replies: 13
Views: 31257
|
Forum: General CCS C Discussion Posted: Mon May 21, 2012 8:21 am Subject: 16F1503 Internal Temperature Indicator |
First thing, use C.....
C, _does not allow variables to be declared mid function. The 'technical' wording, is that variables _must_ be declared at the start of the function, or at the start of a ... |
Topic: 16F1503 Internal Temperature Indicator |
Sam_63
Replies: 13
Views: 31257
|
Forum: General CCS C Discussion Posted: Mon May 21, 2012 12:44 am Subject: 16F1503 Internal Temperature Indicator |
BTW, I use
http://www.bb-elec.com/bb-elec/literature/232LPTTL-3406ds.pdf |
Topic: 16F1503 Internal Temperature Indicator |
Sam_63
Replies: 13
Views: 31257
|
Forum: General CCS C Discussion Posted: Sun May 20, 2012 11:58 pm Subject: 16F1503 Internal Temperature Indicator |
#include <16LF1503.h>
#device adc=10;
#fuses INTRC_IO, NOWDT, NOPROTECT, NOBROWNOUT, NOPUT
#use delay(clock=8000000)
#use rs232(baud=9600, xmit=PIN_C4)
#include & ... |
Topic: 16F1503 Internal Temperature Indicator |
Sam_63
Replies: 13
Views: 31257
|
Forum: General CCS C Discussion Posted: Sun May 20, 2012 11:00 pm Subject: 16F1503 Internal Temperature Indicator |
Start:
1023
1023
1023
1023
1023
1023
1023
1023
1023
1023
1023
1023
hmmmmm, perhaps my chip is broke. |
Topic: 16F1503 Internal Temperature Indicator |
Sam_63
Replies: 13
Views: 31257
|
Forum: General CCS C Discussion Posted: Sun May 20, 2012 6:32 pm Subject: 16F1503 Internal Temperature Indicator |
Well hell........that's what I wanted!!.......hmmm, mine should have ran fine as is.
I'll follow your lead and shut off the analog inputs and reduce the sample speed. I'll get back to ya, thx |
Topic: 16F1503 Internal Temperature Indicator |
Sam_63
Replies: 13
Views: 31257
|
Forum: General CCS C Discussion Posted: Sun May 20, 2012 7:46 am Subject: 16F1503 Internal Temperature Indicator |
A regulated 2.5Vdc source |
Topic: 16F1503 Internal Temperature Indicator |
Sam_63
Replies: 13
Views: 31257
|
Forum: General CCS C Discussion Posted: Sat May 19, 2012 8:59 am Subject: 16F1503 Internal Temperature Indicator |
Has anyone successively used the Internal temperature indicator on the 16f1503?
Seems simple enough but the decimal level at 20C returning back for the ADC read appears to be exceeding the 10bit A ... |
Topic: Stuck in Sleep mode, WDT time out not waking up |
Sam_63
Replies: 5
Views: 8481
|
Forum: General CCS C Discussion Posted: Mon Feb 27, 2012 11:19 pm Subject: Stuck in Sleep mode, WDT time out not waking up |
BTW *PIC16lf1503
* Indicates this part has not yet been tested at CCS
Ugh
Think I'm done guinea pigging with this one....... |
Topic: Stuck in Sleep mode, WDT time out not waking up |
Sam_63
Replies: 5
Views: 8481
|
Forum: General CCS C Discussion Posted: Mon Feb 27, 2012 11:02 pm Subject: Stuck in Sleep mode, WDT time out not waking up |
Thx PCM,
Yes, I tried WDT_SW in that first program. I indicated that I did in the title write up.
I'm quite perplexed on this on, it's so simple, but it refuses to wake up, there has to be a sw ... |
Topic: Stuck in Sleep mode, WDT time out not waking up |
Sam_63
Replies: 5
Views: 8481
|
Forum: General CCS C Discussion Posted: Mon Feb 27, 2012 9:15 pm Subject: Stuck in Sleep mode, WDT time out not waking up |
I also have tried
#include <16LF1503.h>
#fuses INTRC_IO, NOWDT, NOPROTECT, NOBROWNOUT, NOPUT, NODEBUG
#use delay(clock=8000000)
#include <STDLIB.h>
void main(voi ... |
Topic: Stuck in Sleep mode, WDT time out not waking up |
Sam_63
Replies: 5
Views: 8481
|
Forum: General CCS C Discussion Posted: Mon Feb 27, 2012 8:37 pm Subject: Stuck in Sleep mode, WDT time out not waking up |
Any Idea's? Data sheet states the 31 kHz (LFINTOSC) clock keeps WDT alive during sleep but, it gets stuck in sleep as if the clock is shutting off at sleep(). I've used the "WDT__SW" fuse, t ... |
Topic: 16lf1503 and FVR used as Vref+ for ADC |
Sam_63
Replies: 2
Views: 5713
|
Forum: General CCS C Discussion Posted: Fri Feb 24, 2012 8:21 am Subject: 16lf1503 and FVR used as Vref+ for ADC |
Got it, thx Ttel!
Guess I was hoping there was a "un-seen" SPDT switch inside the ADC box for this purpose. That would have been just too convenient, bummer |
Topic: 16lf1503 and FVR used as Vref+ for ADC |
Sam_63
Replies: 2
Views: 5713
|
Forum: General CCS C Discussion Posted: Fri Feb 24, 2012 2:23 am Subject: 16lf1503 and FVR used as Vref+ for ADC |
I've read though many post here and reviewed the data sheet but, it's still not entirely clear if it's possible to route/use a FVR voltage, say the 2.048V for example, as the Vref+ on the ADC.
The ... |
Topic: 32Khz Ext XTAL and delay_us() problem? |
Sam_63
Replies: 5
Views: 7633
|
Forum: General CCS C Discussion Posted: Sun Oct 23, 2011 9:29 am Subject: 32Khz Ext XTAL and delay_us() problem? |
Yes totally agreed Ttel, that was is what i was just considering.
As slow as the data collection is, I could switch on the fly between the LP 32Khz ext. clk. mode for data acquisition and over to ... |
|