Author |
Message |
Topic: EEPROM corruption |
cerr
Replies: 3
Views: 6025
|
Forum: General CCS C Discussion Posted: Fri Mar 16, 2012 10:54 am Subject: EEPROM corruption |
Hi,
I'm fighting with EEPROM corruption if I power up and down my system multiple times. Looking at the power up, it's quite ugly and choppy for about 100ms and I believe that that might be the cau ... |
Topic: mysql_write() & EEADR |
cerr
Replies: 1
Views: 3604
|
Forum: General CCS C Discussion Posted: Fri Mar 09, 2012 4:21 pm Subject: mysql_write() & EEADR |
Hi,
I was wondering if the compiler function write_ and read_eeprom() set EEADR to an unused address as it is recommended in the errata of various PIC controllers. I've seen messed up values in my ... |
Topic: Moved computers and don't get MPLAB to compile anymore |
cerr
Replies: 5
Views: 8292
|
Forum: General CCS C Discussion Posted: Fri Mar 09, 2012 12:49 pm Subject: Moved computers and don't get MPLAB to compile anymore |
You need to do both.
Yep, created a new project and also called CCS up and they'll send me an installable compiler version over.
#include <PIC18F86K22.h>
That's not how CCS header fil ... |
Topic: Moved computers and don't get MPLAB to compile anymore |
cerr
Replies: 5
Views: 8292
|
Forum: General CCS C Discussion Posted: Fri Mar 09, 2012 12:09 pm Subject: Moved computers and don't get MPLAB to compile anymore |
Hi,
I moved PCs and I don't get CCS to compile anymore for me.
Following code:
#include <PIC18F86K22.h>
void main(void)
{
while(1);
}
Returns these bu ... |
Topic: moved compiler to a different machine |
cerr
Replies: 1
Views: 5109
|
Forum: General CCS C Discussion Posted: Tue Dec 20, 2011 2:45 pm Subject: moved compiler to a different machine |
Hi There,
I moved the compiler to a different machine, I simply copied the whole PICC directory over and adjusted the paths in my .mcp project file. MPLAB was fine with that after telling my projec ... |
Topic: ADC question (18F86K22) |
cerr
Replies: 4
Views: 5959
|
Forum: General CCS C Discussion Posted: Mon Nov 14, 2011 2:37 pm Subject: ADC question (18F86K22) |
PCM,
Thanks for that and regarding your note
As I recall now from previous threads, you don't much like reading data
sheets. I'm going to bail while I'm ahead.
I don't quite agree. I don't mind ... |
Topic: ADC question (18F86K22) |
cerr
Replies: 4
Views: 5959
|
Forum: General CCS C Discussion Posted: Mon Nov 14, 2011 2:04 pm Subject: ADC question (18F86K22) |
Hm really? So how would I best go about this then? Also does the controller keep running its timers? I think as it says any enabled interrupts
While in sleep, the microcontroller will
continue runni ... |
Topic: ADC question (18F86K22) |
cerr
Replies: 4
Views: 5959
|
Forum: General CCS C Discussion Posted: Mon Nov 14, 2011 12:58 pm Subject: ADC question (18F86K22) |
Hi There,
I am in the process of redoing my adc readings cause we wanna use the interrupt for getting this done. Looking in the datasheet what TAD i need to use, i found this: For device frequencie ... |
Topic: smoother pwm control |
cerr
Replies: 3
Views: 5876
|
Forum: General CCS C Discussion Posted: Tue Oct 04, 2011 10:32 am Subject: smoother pwm control |
Hi There,
I'm looking for a way (if possible) to adjust the duty cycle for my pwm in a finer interval than 1%.
I'm running the pwm on a PIC16F883 with a 20MHz crystal. My timer2 (for the pwm) is c ... |
Topic: adc_read() |
cerr
Replies: 31
Views: 37325
|
Forum: General CCS C Discussion Posted: Mon Sep 19, 2011 3:17 pm Subject: adc_read() |
Ok...another road to try...how about using an external 12bit ADC ? I know going 'backwards' but maybe possible solution ?!?!?
Any help in any of Microchip's forums or someone else's ???
Mmmh, no ... |
Topic: adc_read() |
cerr
Replies: 31
Views: 37325
|
Forum: General CCS C Discussion Posted: Mon Sep 19, 2011 11:02 am Subject: adc_read() |
So with ADC_CLOCK_DIV_2|ADC_TAD_MUL_2 I get 4095 at 4.78V and -1 at 72mV which is the best range so far but it's kinda weird, from -1 it jumps directly to 32 just a tiny wee bit higher(75mV)...however ... |
Topic: adc_read() |
cerr
Replies: 31
Views: 37325
|
Forum: General CCS C Discussion Posted: Mon Sep 19, 2011 10:25 am Subject: adc_read() |
Nope,
changed the code to
#include <18F86K22.h>
#device HIGH_INTS=TRUE, adc=12
#FUSES NOWDT //No Watch Dog Timer
#FUSES WDT128 //Watch Dog Tim ... |
Topic: adc_read() |
cerr
Replies: 31
Views: 37325
|
Forum: General CCS C Discussion Posted: Fri Sep 16, 2011 12:30 pm Subject: adc_read() |
Ok, I figured out a nasty work around:
if I disable to adc after reading like this:
#include <18F86K22.h>
#device HIGH_INTS=TRUE, adc=12
#FUSES NOWDT //No Watch Dog Ti ... |
Topic: adc_read() |
cerr
Replies: 31
Views: 37325
|
Forum: General CCS C Discussion Posted: Fri Sep 16, 2011 11:18 am Subject: adc_read() |
When hunting down noise near a switcher, beware of your scope ground lead. The scope probe ground lead may create a loop that picks up magnetic (not electrical) noise from inductors. The scope may s ... |
Topic: adc_read() |
cerr
Replies: 31
Views: 37325
|
Forum: General CCS C Discussion Posted: Thu Sep 15, 2011 2:14 pm Subject: adc_read() |
I think it's time to really simplify...
get rid of the thermistor, and the 'math' in the program.
Just a simple 5K pot( I have a few nicew 10 turn ones here), and a silly program to read the adc an ... |
|