10 bit ADC in 16f676 to 8 bit

Status
Not open for further replies.

Can you please tell me the exact problem u r facing now with this code?
 

Hi mathes,

As i posted before, now turning ON and OFF of the LOAD is happening at same time. Say if i set the value of Panel voltage at 3V for LOAD to turn OFF as it indicates sun is rising, LOAD is getting turned ON at the same panel voltage of 3V means less than 3V. I want to set two different voltages to turn ON and OFF the LOAD. So that voltage level can be adjusted according to sun light condition. That's the only issue. Now if i turn ON the LOAD in subroutine, it's not turning OFF once panel volt is greater than 3V.

- - - Updated - - -

Hi jayanth,

MikroC PRO has hardware PWM and PIC16f676 don't have any such facility thats why i have to use software PWM.
 

Many many thnx to u alexan_e.....
For complexity in CCS PIC C i've started to work in MIKRO C..but fall difficulties to do the 8bit ADC...Thnx a lot for ur suggestion...Ur suggestion is really helpful...One request if u pls don't mind i will be very happy if u please tell the details actually what happens when we shift right the ADC result 2times(The Procedure how it works nicely?)...Thnk u
 

Hi jayanth,
Code is working lil bit now with some modifications. Thanx dude.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…