Search found 167 matches

by braus
18 Aug 2010 19:55
Forum: mikroC PRO for PIC General
Topic: GLCD problem page 0 and 1 ...
Replies: 4
Views: 1457

Re: GLCD problem page 0 and 1 ...

Easiest way to do it using pre built functions is to divide text string and allocate both parts in correct way (row and column).
by braus
18 Aug 2010 19:46
Forum: mikroC PRO for PIC General
Topic: Constant two dim array and functions - solved
Replies: 2
Views: 1069

Re: Constant two dim array and functios

Some comments to respect... const unsigned char *UniV[][48]={ //It is not neccessary to use pointer syntax. You have to //specify the whole dimensions. 0x00,0x80,0xE0,0xE0,0xF0,0x70,0x30,0x70,0xF0,0xE0,0xE0,0x80,0x00,0x00,0x00,0xF0, 0xF0,0xF0,0xF0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xF0,0xF0,0xF0,0x...
by braus
18 Aug 2010 19:28
Forum: mikroC PRO for PIC General
Topic: help--simple calcolator with pic16f887 or pic16f877
Replies: 2
Views: 1365

Re: help--simple calcolator with pic16f887 or pic16f877

Main idea of this forum is to help people solving doubts they got in the proccess of developing their own projects, not to do other's work.
by braus
18 Aug 2010 19:16
Forum: mikroC PRO for PIC General
Topic: 16F690 & LCD
Replies: 4
Views: 1669

Re: 16F690 & LCD

Besides other comments I did some comments to your code. void Lcd_Init(); //You are calling this function before you declare variables it uses. Besides, it is not // LCD module connections //not neccesary to add "void" word. sbit LCD_RS at RA1_bit; //I think it would be best to define the whole vari...
by braus
18 Aug 2010 18:28
Forum: mikroC PRO for PIC General
Topic: problem in ADC of pic 18f4550
Replies: 5
Views: 1813

Re: problem in ADC of pic 18f4550

Hello. What if you append const prefix in array as well as in function parameters declaration?
by braus
15 Aug 2010 00:48
Forum: mikroC PRO for PIC General
Topic: PIC16F886 ADC and UART with for loop.
Replies: 7
Views: 2689

Re: PIC16F886 ADC and UART with for loop.

As you know every PIC MCU has RAM memory which is used to store special function registers and variables, let's think in RAM memory as a large stack of bytes where every byte is beside other byte and so on. When a programmer declares a variable compiler assign it in a specific place among RAM memory...
by braus
14 Aug 2010 07:18
Forum: mikroC PRO for PIC General
Topic: How to define a 1s timer interrupt
Replies: 7
Views: 2939

Re: How to define a 1s timer interrupt

Another thing, I'm not sure how valid is to use this syntax...

Code: Select all

if (TMR0IF_bit) {   //I mean, you are not explicitly defining that form 
                         //i.e. sbit TMR0IF_bit at INTCON.TMR0IF
...without had declared it previously.
by braus
14 Aug 2010 07:09
Forum: mikroC PRO for PIC General
Topic: How to define a 1s timer interrupt
Replies: 7
Views: 2939

Re: How to define a 1s timer interrupt

Hello Memphis, prior to leave interrupt service routine you have to set INTCON.GIE bit to enable future interrupt. void interrupt() { if (TMR0IF_bit) { cnt++; // Increment counter TMR0IF_bit = 0; // Clear TMR0IF TMR0 = 96; INTCON.GIE=1; //ready } }
by braus
14 Aug 2010 07:03
Forum: mikroC PRO for PIC General
Topic: Again Icons and little bitmaps (especially for mE-Team!)
Replies: 5
Views: 1484

Re: Again Icons and little bitmaps (especially for mE-Team!)

CS, I had exactly the same problem some time ago and if you permit me tell you something to respect, from my humble point of view people have to do things happen, I solved that problem writing some code, besides I can't figure what would be the result if mE team try to please every single request fr...
by braus
14 Aug 2010 06:51
Forum: mikroC PRO for PIC General
Topic: PIC16F886 ADC and UART with for loop.
Replies: 7
Views: 2689

Re: PIC16F886 ADC and UART with for loop.

Hello mago999, in order to use correctly conversion functions you should take care about arrays length, this is true because to translate a byte to string array has to be 4 bytes long and to translate a word to string array that stores the resulting string must be 6 bytes long.
by braus
12 Aug 2010 22:55
Forum: mikroC General
Topic: type casting
Replies: 4
Views: 1911

Re: type casting

Hello pickrit, I'm not so sure if mikroC had a LongToString function, it will be helpful for you. I tell you that newest version of this compiler has that function.
by braus
12 Aug 2010 22:40
Forum: mikroC General
Topic: Timer1 do not work! Plz help!!
Replies: 7
Views: 2390

Re: Timer1 do not work! Plz help!!

Hello, some comments to respect your code... //Declare var unsigned temp1, temp_res,temp_set; unsigned short dvi, chuc; unsigned t; unsigned short hour, minute, sec; const unsigned short a[10] = {0x3F,0x06,0x5B,0x4F,0x66,0x6D,0x7D,0x07,0x7F,0x6F}; void interrupt (void) { t++ ; PIR1.TMR1IF = 0; // cl...
by braus
12 Aug 2010 22:18
Forum: mikroC PRO for PIC General
Topic: ; expected, but 'double' found
Replies: 4
Views: 1766

Re: ; expected, but 'double' found

Hello donno, have you tried declaring all variables previous to enter in function body?,
by braus
12 Aug 2010 17:12
Forum: mikroC PRO for PIC General
Topic: example 15 for programming in C online book
Replies: 5
Views: 1721

Re: example 15 for programming in C online book

Actually I have got problems interfacing touch screen panels so, only I can tell you in order to solve your problem is to check the reading the PIC is obtaining from both analog channels and you could review TS driver connection.
by braus
12 Aug 2010 16:11
Forum: mikroC PRO for PIC General
Topic: Trouble with string / Error or bug?
Replies: 5
Views: 2132

Re: Trouble with string / Error or bug?

Julien, I think it would be helpful for all of us to know your code. Let us help to you.

Go to advanced search