Search found 6 matches

by ureche
05 Dec 2014 22:21
Forum: mikroC PRO for PIC General
Topic: pic comparator problem, need help
Replies: 3
Views: 1790

Re: pic comparator problem, need help

I think i have this working, i had to add in the while loop, PORTC.F4 = CMCON0.C2OUT; It seams the comparator does not output directly to RC4.
by ureche
05 Dec 2014 22:04
Forum: mikroC PRO for PIC General
Topic: pic comparator problem, need help
Replies: 3
Views: 1790

Re: pic comparator problem, need help

I've added ANSEL = 0b00110000; but there it has no effect.
by ureche
05 Dec 2014 20:23
Forum: mikroC PRO for PIC General
Topic: pic comparator problem, need help
Replies: 3
Views: 1790

pic comparator problem, need help

Hello all, I would like to use the comparator module from pic16f688 or pic16f684, but i cannot get this to work in proteus. I tried with other micro like pic16f877a or pic12f675 and these work without any problem. I'm thinking there is another bit that i have to set, but i can't figure out which. Sc...
by ureche
24 Oct 2014 20:13
Forum: mikroC General
Topic: Thermostat code not working
Replies: 4
Views: 3318

Re: Thermostat code not working

Hi, i'm using v5.6.1. I tried the circuit on a breadboard, i thought this happens because proteus, but on live hardware the code acts the same. Today i got an pic16f1825 which has 1k ram, same thing happens, if i remove the logarithm everything works. As an alternative i'm trying to use lookup table...
by ureche
23 Oct 2014 08:18
Forum: mikroC General
Topic: Thermostat code not working
Replies: 4
Views: 3318

Re: Thermostat code not working

Hi, the same thing happens with other uC, i tried with pic16f877a, which has more ram than pic16f688, the buttons are working if i delete the log function. Also tried with an lcd instead of 7 segments, and as long as the log function is in the equation the lcd screen is pulsating and no value is dis...
by ureche
20 Oct 2014 18:01
Forum: mikroC General
Topic: Thermostat code not working
Replies: 4
Views: 3318

Thermostat code not working

Hello everybody, i need a little help with my code, i am working on a thermostat project for a printer fuser. I'm using PIC16F688, with internal oscillator, and disabled mclr. The temperature is displayed ok. The problem is with the buttons. If i try to use the code as it is bellow the buttons are n...

Go to advanced search