Hi,
i also have the same problem, but i have a registered version of mikroC software. Problem appears when i use some math function for example random function rand(). Why is that so ?
Search found 29 matches
- 19 Nov 2011 12:55
- Forum: mikroC General
- Topic: Demo Limit
- Replies: 23
- Views: 62162
- 21 Jan 2011 10:43
- Forum: mikroC PRO for AVR General
- Topic: How much time elapsed ?
- Replies: 0
- Views: 1123
How much time elapsed ?
Hi, I'm writing code which do that: when I press button for 10 times then I toggle port and display on LCD some thing. Now I want to know how much time elapsed in 10 presses. How can I detect this in simply way ? I was looking for example with timer, but i don't think that this is what i want. Thank...
- 04 Jan 2011 12:13
- Forum: mikroC PRO for AVR General
- Topic: Libraries question
- Replies: 4
- Views: 2195
Re: Libraries question
Libraries are not available for editing. They are locked, because in other way, the Mikroelektornika cannot give us support for that.
- 28 Dec 2010 18:48
- Forum: mikroC PRO for AVR General
- Topic: Interrupt -> how to use
- Replies: 8
- Views: 8718
Re: Interrupt -> how to use
I try this code and works fine. But i don't know how to disable debounce effect on the button. I set the delay of 30 ms in interrupt_ISR routine. I set it next to cnt++ but it's not working properly. If i increase delay time it's even worse :roll: . If i set it between 30 and 50 ms it's fine but not...
- 27 Dec 2010 23:09
- Forum: Development Boards
- Topic: Oscillator problem
- Replies: 1
- Views: 1085
Re: Oscillator problem
Eeeeh... I forgot to set the fuse bit to external oscillator instead of external clock. Now its working fine . I apologize for opening new topic just for that .
- 27 Dec 2010 20:27
- Forum: Development Boards
- Topic: Oscillator problem
- Replies: 1
- Views: 1085
Oscillator problem
Hi ! I write some program and than program it on MCu by my devo EasyAVR6. No problem, works fine at all. Now i made my own PCB and my MCU don't want to wake up. I think that the problem is oscillator. I look how oscillator is connected to the MCU on devo and i see that it's connected just on XTAL1. ...
- 27 Dec 2010 13:24
- Forum: mikroC General
- Topic: Timer0 Problems
- Replies: 6
- Views: 6263
Re: Timer0 Problems
Hi, i tried to mesaure speed with timer but i don't know how to correctly set the timer and prescaler. I looked up for example in mikroC and try to modified it for my purpose. But it seems not working :roll: . void Timer2Overflow_ISR() org IVT_ADDR_TIMER2_OVF { if (counter >= _THRESHOLD) { speed=dis...
- 27 Dec 2010 13:10
- Forum: mikroC PRO for PIC General
- Topic: Writing and Reading Float Variables to Eprom.
- Replies: 13
- Views: 6993
Re: Writing and Reading Float Variables to Eprom.
Thanks a lot . Now i made it and now i'm saving numbers. It's quite faster than saving strings, you were right. Thanks !
- 27 Dec 2010 00:15
- Forum: mikroC PRO for PIC General
- Topic: Writing and Reading Float Variables to Eprom.
- Replies: 13
- Views: 6993
Re: Writing and Reading Float Variables to Eprom.
Yes you are right. I'll try this tomorrow. Why must be some delay betwen two eeprom write commands ? I read that can be lower like 20ms but why at all ?
- 26 Dec 2010 19:56
- Forum: mikroC PRO for PIC General
- Topic: Writing and Reading Float Variables to Eprom.
- Replies: 13
- Views: 6993
Re: Writing and Reading Float Variables to Eprom.
Hi, i also have problem with writing/reading eeprom on Amtega16 device. Wrong forum... :wink: Sorry i found this topic by search and didn't see its about PIC. Whatever, the code is quite similar. yes i was thinking about saving string and numbers. I'll try to save number you are right. I'm a beginn...
- 26 Dec 2010 18:16
- Forum: mikroC PRO for PIC General
- Topic: Writing and Reading Float Variables to Eprom.
- Replies: 13
- Views: 6993
Re: Writing and Reading Float Variables to Eprom.
Hi, i also have problem with writing/reading eeprom on Amtega16 device. I have program which is counting. I want to save my counted nubmer to eeprom because of storage when counter is offline. But something is not working fine. I tried to display each string separately on my lcd and that works fine....
- 25 Dec 2010 22:55
- Forum: mikroC PRO for AVR General
- Topic: calling functions
- Replies: 3
- Views: 1613
Re: calling functions
I solved my problem. I forgot to write prototype on the begining of the program . I'm forgotting that must be prototype and definiton of function.
My bad .
My bad .
- 25 Dec 2010 22:39
- Forum: mikroC PRO for AVR General
- Topic: calling functions
- Replies: 3
- Views: 1613
Re: calling functions
The code is just a symbolic like i wrote. Maybe i didn't write enough clearly. Let me try once again. There are some function deifinitions before main funcition. In main function is start of program which show me a menu on lcd. There are options on this menu(like: option1, option2). Let choose optio...
- 25 Dec 2010 17:48
- Forum: mikroC PRO for AVR General
- Topic: calling functions
- Replies: 3
- Views: 1613
calling functions
Hi, i'm about writing some code and i stuck on this problem. I have a bunch of functons which i want to call them. But there is a problem. Example: there is a main routine and before main routine i define all my routines which i want to use them. But compiler disagree with the order of how they are ...
- 09 Dec 2010 23:28
- Forum: mikroC PRO for AVR General
- Topic: Interrupt -> how to use
- Replies: 8
- Views: 8718
Re: Interrupt -> how to use
Hi, @ranko thanks for your example i've solved my problem, and now i have another one of course :) . I want to know how much time is betwen two interrupts. This will help me with speed measuring. I know the principle of that; i must to start some timer in my MCU when first int. comes up, and stop ti...