Search found 10 matches

by m.naveed
21 Dec 2015 04:17
Forum: mikroC PRO for PIC Beta Testing
Topic: Round off float values to fewr decimal places
Replies: 2
Views: 5229

Round off float values to fewr decimal places

Hello everyone! I am working project which involves float point values. PWM duty is needed to set at a particular value where to float values (calculated from ADC) are equal. Now the problem is that PWM duty doesn't stop any where it just scrolls 0-100-0, I think it is because it is difficult for fl...
by m.naveed
10 Jan 2014 13:53
Forum: mikroC PRO for PIC Beta Testing
Topic: Swiggly red lines under labels mikro c
Replies: 3
Views: 3400

Re: Swiggly red lines under labels mikro c

Compiles successfully no error.
by m.naveed
10 Jan 2014 10:14
Forum: mikroC PRO for PIC Beta Testing
Topic: Swiggly red lines under labels mikro c
Replies: 3
Views: 3400

Swiggly red lines under labels mikro c

Hello,
I'm having swiggly red lines under labels. Only "mpp" is the label which is not underlined.
by m.naveed
09 Jan 2014 13:51
Forum: mikroC PRO for PIC General
Topic: if else statement "invalid expression"
Replies: 4
Views: 2494

Re: if else statement "invalid expression"

Thanks to both of you.
My problem is solved now.
by m.naveed
08 Jan 2014 18:18
Forum: mikroC PRO for PIC General
Topic: if else statement "invalid expression"
Replies: 4
Views: 2494

Re: if else statement "invalid expression"

No I've copied it from my code window and pasted here.
by m.naveed
08 Jan 2014 16:42
Forum: mikroC PRO for PIC General
Topic: if else statement "invalid expression"
Replies: 4
Views: 2494

if else statement "invalid expression"

Hi, I'm having problem with "if else" statement. Here is my code. if (G1 > G){ D_c++; //increase duty PWM1_Set_Duty(D_C); else D_c--; //decrease duty PWM1_Set_Duty(D_C); } without else its ok but when I use else it gives message. "invalid expression" for "else" "; expected, but 'else' found" for "1s...
by m.naveed
08 Jan 2014 10:41
Forum: mikroC PRO for PIC General
Topic: moving control
Replies: 2
Views: 1167

Re: moving control

Thanks,
Yes I want to jump to a previous command And execute all again. If goto is not recommended then can you please tell me another way or explain why is not recommended? Thanks again.
by m.naveed
08 Jan 2014 10:34
Forum: mikroC PRO for PIC General
Topic: moving control
Replies: 2
Views: 1189

Re: moving control

This is duplicated by mistake but I don't know how to remove one.
by m.naveed
05 Jan 2014 19:34
Forum: mikroC PRO for PIC General
Topic: moving control
Replies: 2
Views: 1189

moving control

Hello, I want to know how to move control few lines back?
for example at line 30 from inside an if move the control to line 12.
by m.naveed
05 Jan 2014 19:26
Forum: mikroC PRO for PIC General
Topic: moving control
Replies: 2
Views: 1167

moving control

Hello, I want to know how to move control few lines back?
for example at line 30 from inside an if move the control to line 12.

Go to advanced search