Search found 10 matches

by netomx
05 Jan 2014 19:05
Forum: mikroC PRO for PIC General
Topic: Problem with PIC12F675
Replies: 2
Views: 1373

Re: Problem with PIC12F675

I'm sorry, I was so asleep I didn't comment what is for. Indeed it is 10 minutes. Let me tell you what I'm trying to accomplish: when I push a button (gp2, weak-pulled) it will enable an output (relay), and will continue to enable it with these conditions: *less than 10 minutes *another button press...
by netomx
05 Jan 2014 11:24
Forum: mikroC PRO for PIC General
Topic: Problem with PIC12F675
Replies: 2
Views: 1373

Problem with PIC12F675

Am I getting old? Months after not using the compiler, i'm tryng to do something easy, but it doesn't work, the PIC doesn't respond after the led change. Code: sbit relay at GP1_bit; sbit led at GP0_bit; int encendido = 0, minutos = 0; void interrupt(){ if (INTCON.INTF == 1){ INTCON.INTF = 0; minuto...
by netomx
20 Aug 2013 00:03
Forum: mikroBasic PRO for PIC General
Topic: Problem with 12F683 and MikroC
Replies: 4
Views: 2054

Re: Problem with 12F683 and MikroC

hexreader wrote:change

Code: Select all

     CMCON0 = 1;      // enable comparator  - see datasheet
to:

Code: Select all

     CMCON0 = 7;      // disable comparator
That, OSCCON, and the "RESET PIN FUNCTION" made it work. Strangely, in my other projects worked from the project files, and now from the osccon.

Thanks!
by netomx
19 Aug 2013 17:12
Forum: mikroBasic PRO for PIC General
Topic: Problem with 12F683 and MikroC
Replies: 4
Views: 2054

Re: Problem with 12F683 and MikroC

Thanks for checking my project. I have set 8MHz in the project menu, and also tried with OSCCON too, none of them work. Have tried with 2 12F683, so I don't think they're damaged. I'm attaching my project, maybe I'm not seeing something. Btw, nice name of my project: junk :cry: Will try using a resi...
by netomx
19 Aug 2013 08:12
Forum: mikroBasic PRO for PIC General
Topic: Problem with 12F683 and MikroC
Replies: 4
Views: 2054

Problem with 12F683 and MikroC

Hello. I'm getting here because I'm desesperate. I can't make my code work! :@ MikroC v6.0 Code: //unsigned temp; //char error = 0; //sbit error_led at GP2_bit; void Init() { TRISIO = 0; GPIO = 0; CMCON0 = 1; ANSEL = 0; //error = Soft_UART_Init(&GPIO, 0, 1, 9600, 0); //if (error > 0) // while (1) { ...
by netomx
09 Dec 2012 09:56
Forum: mikroC PRO for PIC General
Topic: Doubt with 1wire and Dallas Temperature
Replies: 1
Views: 1030

Re: Doubt with 1wire and Dallas Temperature

Hello there! I'm working on a simple project, a PIC (12F629) will read a Dallas IC and use a LED to say its temp, but somethings wrong, I think it is in the temp number, can someone help me? Thanks: sbit led1 at GP1_bit; unsigned temp; int numero[3], i, j; void main() { CMCON = 7; // Disable Compar...
by netomx
07 Dec 2012 08:19
Forum: mikroC PRO for PIC General
Topic: Doubt with 1wire and Dallas Temperature
Replies: 1
Views: 1030

Doubt with 1wire and Dallas Temperature

Hello there! I'm working on a simple project, a PIC (12F629) will read a Dallas IC and use a LED to say its temp, but somethings wrong, I think it is in the temp number, can someone help me? Thanks: sbit led1 at GP1_bit; unsigned temp; int numero[3], i, j; void main() { CMCON = 7; // Disable Compara...
by netomx
05 Aug 2011 06:33
Forum: mikroC General
Topic: Quadrature Enconder - Beta release
Replies: 0
Views: 1191

Quadrature Enconder - Beta release

Hello! I'll give you my alpha release to read a quadrature encoder and display it on a 16x2 LCD. It is in an alpha stage, and it is not using an interrupt, for now... but it will! Here's the code: /* Trabajo final de Microcontroladores. Se usa PIC16F877A con un reloj HS de 4MHz. Entrada del encoder ...
by netomx
30 Jul 2011 07:27
Forum: mikroC PRO for PIC General
Topic: Help displaying on a lcd
Replies: 7
Views: 2041

Re: Help displaying on a lcd

or try to run MikroC with admin privileges, if you got Vista or 7.
by netomx
30 Jul 2011 07:25
Forum: mikroC PRO for PIC General
Topic: Strange problem with LCD and short
Replies: 0
Views: 783

Strange problem with LCD and short

Hello! I'm new making C programs for my new PIC16F877A. I have a problem, I have made a project and I'm using a PIC16F877A, a MCD DEMO II, a 16x2 8-bit LCD. My program is intented to teach me how to program things. The code was made at the first time to detect if there's a button pressed. Then, the ...

Go to advanced search