Thank you verry much !
Indeed, my mistake was the overriding of defines ...I didn't know until today the things You've posted. Hm ... so much to learn ! I'm glad I met people like You and other...
Thank you for reading
I know the info is on the datasheets... But. I did ask if anyone had suggestions or had previous examples / possibilities ??
Then I can choose some part numbers..... Have...
>The rest of code is :
Is it? You're calling VolDn but I don't see that in the code but I guess there's nothing to do with the ADC there?
Anyway, have you tried using ADCIN just to see...
Thank You so much for reply !
The rest of code is :
ADCON0.1 = 1
WHILE ADCON0.1 = 1 : WEND
adval.HighByte = ADRESH
adval.LowByte = ADRESL
if k=0 and adval > 10 and...
Is that really ALL of the code?
When you select an analog input which you want to convert the sample and hold circuit for the ADC needs to charge the S/H capacitor. It takes a certain amount...
I wote this code for 12F675:
@ __config _XT_OSC & _WDT_OFF & _PWRTE_ON & _MCLRE_ON & _BODEN_OFF & _CP_ON
DEFINE OSC 4
DEFINE ADC_BITS 10
DEFINE ADC_CLOCK 3
DEFINE ADC_SAMPLEUS 50
that's it although a '0' is 26-28uS and a 1 is 70us according to the data sheet I have added some tolerance (this helps if interrupts are involved) if the count is outside this range then its not...
I was wondering if you could help me understand your use of Timer2 in this project during the read loop for the 40 bits from the DHT11.
In this section of code.....
How much voltage do I apply for running that motor?
I did think of both ways, either time stamp and data, or continuous data.
I suppose I like the idea of a memory timer as well though :)
SD card I remember reading it’s easy to access...