Search found 22 matches

by atakan_1907
09 Jan 2012 18:47
Forum: mikroC PRO for PIC General
Topic: Ram initialization help
Replies: 16
Views: 5401

Re: Ram initialization help

I havent complete the project yet. I'll inform you ;)
by atakan_1907
09 Jan 2012 15:41
Forum: mikroC PRO for PIC General
Topic: Ram initialization help
Replies: 16
Views: 5401

Re: Ram initialization help

Thank you for help. I tried asm goto _main; In LST file it's placed before initialization block. But when i used it (in main func), it points to the beginning of the user code (the place in the ASM file). It doesn't seem to work this way. Unless you're using some earlier version of mC, no user code ...
by atakan_1907
09 Jan 2012 00:39
Forum: mikroC PRO for PIC General
Topic: Ram initialization help
Replies: 16
Views: 5401

Re: Ram initialization help

I think that code clears RAM only. But im talking about a way to clear whole ram but leave mikroc initialization block. Im searching a way to shorten this; int i=3; int j=0 int k=0; . . . int x=3; int w=0; . . . char xx[50]="qwerty......fdghj"; to this; clear_ram(); int i=3; int x=3; char xx[50]="qw...
by atakan_1907
08 Jan 2012 20:14
Forum: mikroC PRO for PIC General
Topic: Ram initialization help
Replies: 16
Views: 5401

Re: Ram initialization help

18F4550
by atakan_1907
07 Jan 2012 20:54
Forum: mikroC PRO for PIC General
Topic: Ram initialization help
Replies: 16
Views: 5401

Re: Ram initialization help

In other words, i want to place some lines above auto generated microC variable initialization lines. This would be hard to do (without troublesome tricks) as compiler places goto _main as first instruction, and this is the place where variables are initialized before user code starts. How can i br...
by atakan_1907
07 Jan 2012 17:57
Forum: mikroC PRO for PIC General
Topic: Ram initialization help
Replies: 16
Views: 5401

Re: Ram initialization help

I think it will be very useful if mikroc gives us an option to auto-initialize whole RAM (except SFR area). A compiler directive should be ok.
by atakan_1907
07 Jan 2012 17:47
Forum: mikroC PRO for PIC General
Topic: Ram initialization help
Replies: 16
Views: 5401

Re: Ram initialization help

[quote="grim4593"]I doubt something like that would be possible unless you specifically program a routine that allocates all available ram, zeros it, and then deallocates it. The hard part would be finding out how much ram is free and where that free ram is located. Is there a reason you don't just ...
by atakan_1907
07 Jan 2012 11:16
Forum: mikroC PRO for PIC General
Topic: Ram initialization help
Replies: 16
Views: 5401

Re: Ram initialization help

How can i branch to the label _main (present in lst file) in asm or in C?
Compiler cant identify that label in any way. And i cant use ORG in an assembly blog too.
by atakan_1907
07 Jan 2012 01:56
Forum: mikroC PRO for PIC General
Topic: Ram initialization help
Replies: 16
Views: 5401

Re: Ram initialization help

In other words, i want to place some lines above auto generated microC variable initialization lines.
by atakan_1907
07 Jan 2012 00:37
Forum: mikroC PRO for PIC General
Topic: Ram initialization help
Replies: 16
Views: 5401

Ram initialization help

Hi there, I'm tryin to clear whole ram (write zeros) then initialize variables. But microC doesnt let me do such a thing. I have a function RAM_CLEAR that runs a loop to fill ram with zeros. My variables like 0 0 0 0 0 3 0 0 0 5 0 0 8 ....... (mostly zeros but not all of them are integers, but some ...
by atakan_1907
22 May 2011 01:31
Forum: mikroC PRO for PIC General
Topic: Integer to float error :(
Replies: 3
Views: 1172

Integer to float error :(

Hi,
When i assign a signed integer return function to a float variable, it gives odd results. Why is that?

I need to fully understand floating point math in mikroc. Type conversion, division, sqrt, tan, cos .... etc. Please give me some information.
by atakan_1907
18 May 2011 16:21
Forum: mikroC PRO for PIC General
Topic: Usb failed to connect to pc
Replies: 1
Views: 865

Re: Usb failed to connect to pc

The mistake is, usb voltage -> disabled :)
by atakan_1907
18 May 2011 15:17
Forum: mikroC PRO for PIC General
Topic: Usb failed to connect to pc
Replies: 1
Views: 865

Usb failed to connect to pc

Hi there, I'm working on the usb module, using mikroc's hid library. When i tried the examples, it worked fine but i build a new project file and copied a part of the code to my project, but now the device couldnt be recognised by os. Im afraid of config settings. Could you check my project? [attach...
by atakan_1907
27 Jun 2010 00:21
Forum: mikroC PRO for PIC General
Topic: Interrupts not working
Replies: 5
Views: 2141

Re: Interrupts not working

Thank you! It works great ;)
by atakan_1907
22 Jun 2010 14:16
Forum: mikroC PRO for PIC General
Topic: Interrupts not working
Replies: 5
Views: 2141

Interrupts not working

Hi, In my 16f628a i'm trying to do uart receiving (RCIE set) but when i sent something, TXIF is being set somwhow (no TXIE) and i could not clear it. Then start receiving again, but when first RCIF interrupt come, the program jumps to interrupt routine and automatically clears GIE. I tried to set it...

Go to advanced search