Search found 168 matches

by Aquadrox
07 Oct 2013 13:53
Forum: mikroC PRO for PIC General
Topic: Stack overflow is forcing device reset
Replies: 10
Views: 4096

Re: Stack overflow is forcing device reset

Sorry I have no skill with proteus but some people on thise forum does.
Good luck.
by Aquadrox
07 Oct 2013 11:08
Forum: mikroC PRO for PIC General
Topic: Stack overflow is forcing device reset
Replies: 10
Views: 4096

Re: Stack overflow is forcing device reset

Hello,

when do you have the overflow?
The code compile fine and have only 5 stacks depth.
by Aquadrox
23 Sep 2013 06:52
Forum: mikroC PRO for PIC General
Topic: Watchdog timer not working
Replies: 3
Views: 2692

Re: Watchdog timer not working

Hello,

Thanks you two, I'll try this today and keep ou informed.

Edit: and I was talking about the watchdog timer, and it's strange cause it's working on another project, I'm now trying your code with no success, I'll fond what's wrong!
by Aquadrox
20 Sep 2013 09:23
Forum: mikroC PRO for PIC General
Topic: Help with Timer0
Replies: 7
Views: 2324

Re: Help with Timer0

Depending of what you need to do. In some case the internal oscillator is enough, and accurate enough too. in your case I think you can use the internal oscillator at 8Mhz, this will easely set up to 1ms ISR. And this will free the two pins used for external quartz. If you need a higher frequency os...
by Aquadrox
20 Sep 2013 07:17
Forum: mikroC PRO for PIC General
Topic: Help with Timer0
Replies: 7
Views: 2324

Re: Help with Timer0

check this: http://www.mikroe.com/forum/viewtopic.php?f=88&t=49698
Compare with the datasheet.

Good luck
by Aquadrox
17 Sep 2013 13:30
Forum: mikroC PRO for PIC General
Topic: Watchdog timer not working
Replies: 3
Views: 2692

Watchdog timer not working

Hello, I'm working on ready for pic board with a PIC18f45k22. I want to implemant a watchdog like in a previous project, but I'm unable to do so. I've tried to copy the same code as before but nothing to do. I must be missing something. In the configuration window I set Enable to Watchdog. And I tri...
by Aquadrox
16 Sep 2013 17:46
Forum: mikroC PRO for PIC General
Topic: pow function with integers
Replies: 6
Views: 2257

Re: pow function with integers

Thank you Janni for your useful help as usual!

Edit:
janni wrote:As far as your code goes, int_variable is an argument - why should it change?
Forgot to answer you, I meant dbl_variable, my mistake
by Aquadrox
16 Sep 2013 13:42
Forum: mikroC PRO for PIC General
Topic: pow function with integers
Replies: 6
Views: 2257

Re: pow function with integers

Hello, This is working well. But now I wonder my previous code didn't work on the MCU but worked well in visual studio C. So the code is the following: dbl_variable = pow(2, int_variable-1); dbl_variable is a double. int_variable is an integer. In visual studio the result is ok (1,2,4,8 etc....). In...
by Aquadrox
05 Sep 2013 15:21
Forum: Website & Forums General Discussion
Topic: Getting Product DVD vs Downloading?
Replies: 32
Views: 399177

Re: Getting Product DVD vs Downloading?

Hi,

1) No
2) No

I download everthing from the internet.
I never use any DVD.

Good luck ;)
by Aquadrox
28 Aug 2013 07:48
Forum: mikroC PRO for PIC General
Topic: need help with pic18f4431+QEI
Replies: 2
Views: 1449

Re: need help with pic18f4431+QEI

Hello, When you say that you have a MCU, you only have the chip? Or you have a full aquisition PCB including the sensor? If you just have the chip: 1) Design the board with the sensor to detect the edge of the encoder. => You have to choose the good technical solution, optical or indictive, dependin...
by Aquadrox
22 Aug 2013 08:02
Forum: mikroC PRO for PIC General
Topic: PWM Issue
Replies: 2
Views: 1113

Re: PWM Issue

Hello,

Check this, maybe it helps:
http://www.mikroe.com/forum/viewtopic.p ... wm#p120282

Good luck
by Aquadrox
22 Aug 2013 07:57
Forum: mikroC PRO for PIC General
Topic: Reset command on a PIC18F
Replies: 6
Views: 3699

Re: Reset command on a PIC18F

Hello,

You could use the watchdog, in normal mode you clear it, and when you want to reset you stop clearing.
For exemple:

Code: Select all

if (flags.CLR_WTCHDG)
       asm CLRWDT;
Then you just have to clear the flag somewhere and the MCU will reset.

BR.
by Aquadrox
05 Jul 2013 06:49
Forum: mikroC PRO for PIC General
Topic: syntax question
Replies: 3
Views: 1196

Re: syntax question

Just search for 18f45k22 datasheet on google, you'll find it. You don't need to read the whole document, it's quite a big one. My advise would be to read the book on mikroe website (previous link), and to try to perform the exemple with your board, you'll then have to find the good register. If you ...
by Aquadrox
04 Jul 2013 15:49
Forum: mikroC PRO for PIC General
Topic: syntax question
Replies: 3
Views: 1196

Re: syntax question

Hi,

You have to read the datasheet.
In fact these are registers used to set or read state in the MCU.
You should also look at this book: http://www.mikroe.com/chapters/view/14/ ... ntrollers/.


Good luck :)
by Aquadrox
14 Jun 2013 07:06
Forum: mikroC PRO for PIC General
Topic: Using TIMERS
Replies: 2
Views: 1050

Re: Using TIMERS

Go to advanced search