Search found 167 matches

by braus
02 Oct 2014 10:57
Forum: mikroC PRO for PIC General
Topic: My micro-controller only follows the fist lines of code.
Replies: 5
Views: 2042

Re: My micro-controller only follows the fist lines of code.

Hi Tecma01, I wonder if you are feeding in correct way the display, according with the information i've been consulting, opposite to LCD 16*2 displays LCD 20*4 displays have three voltage pins, VDD, VSS and VEE.
Perhaps...
by braus
02 Oct 2014 09:39
Forum: mikroC PRO for PIC General
Topic: LCD display not working
Replies: 3
Views: 1550

Re: LCD display not working

Hello Alex.dsgwB, look, I made a revision from your code and I realized that you are using this instruction in order to configure PORTC as output PORTC=0x00; but this is wrong, what you have to do to achieve that goal is to write this TRISC=0x00; in which case you effectively would be configuring th...
by braus
11 Sep 2012 14:24
Forum: mikroC PRO for PIC General
Topic: MikroC PRO Freezes every time I do a change in code
Replies: 3
Views: 1355

Re: MikroC PRO Freezes every time I do a change in code

Hello dejan, actually, I did a downgrade from 5.4 version to 3.8 version because it used to freeze frequently, nevertheless, the problem continues. Finally I download and installed MikroC 5.61 version but the problem persists. Today I will going to re install the MPLAB application to see if this sol...
by braus
10 Sep 2012 14:00
Forum: mikroC PRO for PIC General
Topic: MikroC PRO Freezes every time I do a change in code
Replies: 3
Views: 1355

MikroC PRO Freezes every time I do a change in code

Hello everybody, I have a problem with MikroC compiler and I hope you would be able to help me. The problem is that every time I make a change in code, despite the kind o f change, the compiler takes a time to procees such a change, this time lapse depends on the change, I mean, if I erase a line of...
by braus
11 Mar 2011 00:29
Forum: mikroC PRO for PIC General
Topic: Producing delay of 30 seconds using pic16f877a
Replies: 3
Views: 1423

Re: Producing delay of 30 seconds using pic16f877a

You can use a counter variable that controls the times these timers roll over, every time these timers roll over and set flag bits you can increase or to decrease this counter, obviously the counter value is directly proportional to the time you want to measure and to the configuration you set in ea...
by braus
11 Mar 2011 00:14
Forum: mikroC PRO for PIC General
Topic: Keypad interfacing with PIC16F877a
Replies: 3
Views: 2298

Re: Keypad interfacing with PIC16F877a

I´m really sorry because my comment, I had a lapsus, forget the comment and just check the other ones.
:oops:
by braus
10 Mar 2011 06:12
Forum: mikroC PRO for PIC General
Topic: Keypad interfacing with PIC16F877a
Replies: 3
Views: 2298

Re: Keypad interfacing with PIC16F877a

void Keypad_Init(void); //first of all, it is not neccesary to declare these three functions char Keypad_Key_Click(void); //all you have to do is to include keypad library, they are char Keypad_Key_Press(void); //defined on it. unsigned short kp; char keypadPort at PORTB; void initMain(){ ADCON1 = ...
by braus
08 Mar 2011 01:25
Forum: mikroC PRO for PIC General
Topic: copy UART to lcd
Replies: 2
Views: 1077

Re: copy UART to lcd

char rs_in, rs_disp[3] //it is missing you a semi colon UART1_Init(2400); while(1) { while (UART1_Data_Ready() == 1) { rsin = UART1_Read(); //is this variable the same you declared at the beginning? I mean rs_in timeout_counter=0; //where did you declare this variable? bytetohex(rsin,rs_disp); //Mi...
by braus
10 Feb 2011 22:51
Forum: mikroC PRO for PIC General
Topic: sub Routine HELP
Replies: 5
Views: 1571

Re: sub Routine HELP

polled form... . . . if(PIR1.RCIF) //with this conditional you are checking when a byte was received in RCREG register { //this code could be in main program or in a function definition. the code to proccess the data is here PIR1.RCIF } . . . interrupted form... void interrupt(){ if(PIR1.RCIF){ proc...
by braus
09 Feb 2011 03:42
Forum: mikroC PRO for PIC General
Topic: ??? const ??
Replies: 3
Views: 1253

Re: ??? const ??

MikroC is a hardly typed language (in order to accomplish ANSI C standard) so, when you declare a single variable you have to assign it an arithmetic type, this is true despite of compiler does not mark an error message
by braus
08 Feb 2011 19:00
Forum: mikroC PRO for PIC General
Topic: sub Routine HELP
Replies: 5
Views: 1571

Re: sub Routine HELP

hello ELAB-raph.
You can check the state of RCIF flag bit which sets when a new byte was received. You can develop a polled function to take care of this bit or you can write an interrupt sub routine to achieve the same results.
by braus
08 Feb 2011 18:25
Forum: mikroC PRO for PIC General
Topic: mikroc 5 digit BCD to decimal conversion error
Replies: 2
Views: 2074

Re: mikroc 5 digit BCD to decimal conversion error

did you try declaring every single BCD digit as long or unsigned long type?
by braus
03 Feb 2011 03:43
Forum: mikroC PRO for PIC General
Topic: undeclared identifier error.....
Replies: 26
Views: 15282

Re: undeclared identifier error.....

Well, I still watching some miustakes on your code... void shiftreg(unsigned short x, unsigned short val) //this function's name is not equal to the one //which compiler marks error in. It says shift_reg, right? //besides, it supposes that you will feed it with 2 unsigned { //short variables, but ac...
by braus
02 Feb 2011 00:03
Forum: mikroC PRO for PIC General
Topic: undeclared identifier error.....
Replies: 26
Views: 15282

Re: undeclared identifier error.....

In order to use a function you have to declare it and then define it, or to declare it and define it in an only step.
In your code you are not showing the place where you declared shift_reg, buff_read and get_element functions neither the place where you defined them.
by braus
29 Jan 2011 20:20
Forum: mikroC PRO for PIC General
Topic: Little Help Please
Replies: 9
Views: 2549

Re: Little Help Please

JPablo, I´m just watching a couple of things that could be doing your code does not work

Code: Select all

unsigned char uart_rd;   //why don´t you declare these both variables as char?
unsigned char lcd[4];

Code: Select all

lcd_out(1,1,uart_rd);   // I insist again, check your spelling, it should say Lcd_Out(...

Go to advanced search