Search found 18 matches

by nikola010
03 Sep 2017 14:51
Forum: mikroC PRO for PIC General
Topic: PIC18F25K20 freezes
Replies: 2
Views: 1728

PIC18F25K20 freezes

I am trying to make inverted pendulum with PIC and try to maintain vertical position and linear position on rail. The code works quite good, but as I try to complicate the code a little something strange happens. When I start program the cart goes to the left hit the limit switch and position it sel...
by nikola010
19 Aug 2017 18:18
Forum: mikroC PRO for PIC Beta Testing
Topic: Code prediction (ctrl+space) bug
Replies: 1
Views: 2184

Code prediction (ctrl+space) bug

I have noticed that when i write some code that is 100+ lines and when i collapse some void (i click on minus left of that code) and when i continue to write code there is some bugs in latest version (v.7.1.0). For example if i have int test; on start and in main i write "te" and hit ctrl+space and ...
by nikola010
28 Jun 2017 16:32
Forum: mikroC PRO for PIC General
Topic: 18F25K20 on change interrupt
Replies: 2
Views: 1577

Re: 18F25K20 on change interrupt

I solved the oscillator problem. SCS0 and SCS1 bits should be 0 not 1. But i still cant solve the problem with interrupts.
by nikola010
28 Jun 2017 15:23
Forum: mikroC PRO for PIC General
Topic: 18F25K20 on change interrupt
Replies: 2
Views: 1577

18F25K20 on change interrupt

When i configure on port change interrupt, first time when it happens, it keeps running into interrupt over and over again. The moment it comes into main program interrupt happens again without any change on port. Why is this happening? And also i want to configure internal oscillator at 64Mhz but I...
by nikola010
25 Mar 2016 17:27
Forum: mikroC PRO for PIC General
Topic: PIC16F1517 bug in program
Replies: 3
Views: 1328

Re: PIC16F1517 bug in program

I didnt start writing anything, here is something almost empty, but it generates error. I cant repeat this same error again, but still cant compile. Here is error and zip file 0 1 mikroCPIC1618.exe -MSF -DBG -pP16F1517 -DL -O11111114 -fo8 -N"F:\mikroC projekti\RFReciver\RFReciver.mcppi" -SP"E:\Mikro...
by nikola010
24 Mar 2016 14:00
Forum: mikroC PRO for PIC General
Topic: PIC16F1517 bug in program
Replies: 3
Views: 1328

PIC16F1517 bug in program

When i try to program 16F1517, create new project and include all library files and build empty project, i got this error. If i disable all library files i can build it. But if i add any program line, for example int i; before main i got this error again. 0 1 mikroCPIC1618.exe -MSF -DBG -pP16F1517 -...
by nikola010
27 Mar 2015 15:50
Forum: mikroC PRO for PIC General
Topic: PC out of scope [ 0x001044] with big for loop
Replies: 5
Views: 1867

Re: PC out of scope [ 0x001044] with big for loop

I tried, but error still pops up, and it just change the number. Now its 0x0010C0 if that mean anything. I tried with 40Mhz oscillator, 8Mhz, default settings and still same error. I thought at first its because i jump to much routines, and i copy it to main, which is program i uploaded. Is there a ...
by nikola010
26 Mar 2015 17:53
Forum: mikroC PRO for PIC General
Topic: PC out of scope [ 0x001044] with big for loop
Replies: 5
Views: 1867

Re: PC out of scope [ 0x001044] with big for loop

I upgraded to 6.5, and i managed to add some more lines to it. I couldn't generate error on some smaller example. In attachment there is a code i wrote. I think i don't want to add anything more to for loop that making this error. It starts at line 480. What is reason this error pops out, because th...
by nikola010
25 Mar 2015 14:49
Forum: mikroC PRO for PIC General
Topic: PC out of scope [ 0x001044] with big for loop
Replies: 5
Views: 1867

PC out of scope [ 0x001044] with big for loop

I am reading some files from SD card and i need to compare them. I am using 18F24j10. When i want to compare some files i read from SD card, i must use some big for loops. When i wrote this little program after all behind that read files etc and i hit Debug it say PC out of scope. for(i=0;i<512;i++)...
by nikola010
27 Nov 2014 09:20
Forum: mikroC PRO for PIC General
Topic: MikroC 6.0 bug
Replies: 1
Views: 1101

MikroC 6.0 bug

I have a problem, it was in much bigger project so it took me some time to debug. Now i write this little program. char proba[16]; void main() { proba[0]="A"; proba[1]="B"; proba[2]="C"; } When i run it i get result proba[0]="!", and proba[1] and proba[2] gets 32 so its UN in ASCII, but nowhere A B ...
by nikola010
16 May 2014 13:33
Forum: mikroC PRO for PIC General
Topic: Errors in debugging PC out of scope
Replies: 1
Views: 902

Errors in debugging PC out of scope

I use 16F886 and when i compile code its ok, than when i try to debug it it wont start, and proteus say Stack underflow executing RETLW instruction. When i delete everything related to LCD and leave Lcd_Init() Lcd_Out(1,1,"Try") mikroC debugger say "PC out of scope". How can i fix this problem? Here...
by nikola010
22 Jul 2013 19:31
Forum: mikroC PRO for PIC Wish List
Topic: Multi Media Card Library missing for 16f1517
Replies: 1
Views: 1919

Multi Media Card Library missing for 16f1517

I want to report "bug"
I want to program 16f1517 and wanted to use Multi Media Card Library but it doesnt exist for this PIC. I hope you will fix this.

Best regards
by nikola010
20 Aug 2012 18:15
Forum: mikroC PRO for PIC General
Topic: frequency counter problem
Replies: 3
Views: 1520

Re: frequency counter problem

Hello, Thanks for answering but this example is for counter when TMR1 is used for counting 1s and interrupt on RB is used for frequency count. I already make this counter and it works perfectly but it can count up to 100Khz max and i think its big value for it without prescaler. I need to measure 1G...
by nikola010
18 Aug 2012 16:12
Forum: mikroC PRO for PIC General
Topic: Problem with interrupts
Replies: 7
Views: 2104

Re: Problem with interrupts

Ah ok thanks, didn't know that about PEIE. But now i have some new problems about that and i post a new topic, because this is about interrupt and now like TIMER1 is bugging, or ISIS proteus bag, or i program something bad. Please help me, i'm new to PIC C, and i want to learn it well. Thanks
by nikola010
18 Aug 2012 07:18
Forum: mikroC PRO for PIC General
Topic: Problem with interrupts
Replies: 7
Views: 2104

Re: Problem with interrupts

I use external clock. I am sure about all bits that i set but, can you tell me is there any interrupt on 16f628a about TIMER1? I mean when i look on Timer1 block there is no Interrupt and there is only Interrupt flag, but when i look at the bits there is Timer1 interrupt enable bit so and i enable i...

Go to advanced search