First; when you look at a Special Function Register in the Data Sheet, there are letters & numbers above each Bit in the Register. For example, ADCON0 bit 7 (denoted as ADCON0.7) has "R/W-0" above...
mpgmike Today, 05:39I'm using Analog port 2 on 16F616 - 4Mhz.. VDD as reference. Any help would be great. I didn't have to set the ADCON registers for 8 bit. Why is 10 bit different? Was I lucky?
pescador Today, 03:36I dont know what I'm doing.. I dont know what to set ADCON1 to.
pescador Today, 03:23Its working - but crazy numbers now - 32k instead of 1024 uggg...
pescador Today, 03:02I've been reading other posts - so I tried this to see if light would turn green - fail
DEFINE ADC_BITS 10
DEFINE ADC_CLOCK 3
DEFINE ADC_SAMPLEUS 50
ADCON1=%10000010
OUTPUT PORTA.1 ...
Note: - I'm not doing anything as far as CCP1CON, CM1CON0,CM2CON0, CM2CON1, ADCON1.
Yes I'm new...
I'm using a 16F616 analog input with a ADCIN routine. My resolution is 5V / 256 = about .19 mv. I'm using a voltage divider for the input with .1% tolerance resistors. Is there a better way to...
pescador Today, 01:45I have a circuit using a 12F683. It uses a PWM output that controls LED brightness. When the user turns off the circuit and turns it back on - it needs to remain at the same brightness as when was...
pescador Today, 01:07Also, using GOSUB reduces code size as this Sub can be called from various points of the program to do the same job, maybe with some parameters passing to it.
Keeps things structured.
Ioannis
Re: 12F683 PWM output not remembering.
Where have you given EE_Duty a value? Instead of "EE_Duty VAR WORD" try using "EE_Duty CON 0" where you are using EEPROM Address 0 as a storage place for your Duty.
mpgmike Today, 05:56