Search found 95 matches

by amrbekhit
21 Sep 2011 10:34
Forum: mikroC PRO for PIC General
Topic: Const expression expected when assigning a pointer
Replies: 2
Views: 3880

Re: Const expression expected when assigning a pointer

Ah, I see. The compiler requires variable initialisers to be constant. The assignment itself is valid. Thanks for the help!
by amrbekhit
20 Sep 2011 16:39
Forum: mikroC PRO for PIC General
Topic: Const expression expected when assigning a pointer
Replies: 2
Views: 3880

Const expression expected when assigning a pointer

Hello all, Consider the following code: static void EEPROM_Write_Obj(unsigned int addr, void *obj, unsigned char size) { unsigned char i,*ptr=(unsigned char *)obj; for (i=0;i<size;i++) EEPROM_Write(addr++,*(ptr++)); } I get a "Const expression expected" error on the line: *ptr=(unsigned char *)obj D...
by amrbekhit
13 Sep 2011 14:10
Forum: mikroC General
Topic: usb keyboard descriptor
Replies: 4
Views: 4813

Re: usb keyboard descriptor

Hi tarakan,

I've just tried viewing my site at using Google Chrome and for some reason it doesn't load, but Firefox, Internet explorer and my phone load the site just fine. I'm not sure what's going on there, but the site is still up, so keep trying!

Amr
by amrbekhit
25 Apr 2011 13:32
Forum: mikroC PRO for PIC General
Topic: Adding extra string descriptors to the HID descriptor
Replies: 1
Views: 1627

Adding extra string descriptors to the HID descriptor

Hello all, I'm trying to add an extra string descriptor to my HID descriptor for use as a serial number. Unfortunately, the HID library at the moment seems to be hardcoded to send a fixed number of string descritors, otherwise I'm doing something wrong. I've searched the forum and found these two po...
by amrbekhit
29 Jun 2009 15:54
Forum: mikroBasic PRO for PIC General
Topic: IRP bit must be set manually for indirect access to '?Loca
Replies: 27
Views: 30894

Hi piort, Thanks for your suggestion - unforunately, none of the 18-pin 18Fs have I2C ports, so they're not really very suitable. I have to say, this is a rather shocking revelation - I do hope that mikroelektronika address this some time soon - having to do it manually is a pain in the butt - the c...
by amrbekhit
29 Jun 2009 11:15
Forum: mikroBasic PRO for PIC General
Topic: IRP bit must be set manually for indirect access to '?Loca
Replies: 27
Views: 30894

Let me just clarify:

The PIC16F88 has 368 bytes of RAM split over 4 banks - with only 96 bytes available in bank 0 - so if I use the mikroC PRO compiler I can only use 96 bytes?

--Amr
by amrbekhit
29 Jun 2009 10:09
Forum: mikroBasic PRO for PIC General
Topic: IRP bit must be set manually for indirect access to '?Loca
Replies: 27
Views: 30894

Hello,

We're facing the same problem - does this mean that the compiler can only use variables that it has allocated in bank 0 for the 16F family? Or does it mean that you cannot have variables that span over multiple banks?

Thanks,

--Amr
by amrbekhit
11 May 2009 09:56
Forum: mikroC PRO for PIC General
Topic: Small editor bug?
Replies: 0
Views: 1640

Small editor bug?

Hello all, I think I found a small editor bug in mikroC PRO 2009 v1.6.5.0. You can adjust the tab size in the Editor options window so that when you place the cursor on a line and press tab, the same number of spaces is generated. However, if you highlight a block of code and press tab, the tab widt...
by amrbekhit
08 May 2009 08:23
Forum: mikroC PRO for PIC General
Topic: mikroC and mikroC PRO license
Replies: 3
Views: 3294

Great news, thanks for the info!
by amrbekhit
07 May 2009 13:34
Forum: mikroC PRO for PIC General
Topic: mikroC and mikroC PRO license
Replies: 3
Views: 3294

mikroC and mikroC PRO license

Hello all, I just noticed that mikroE have released the PRO compiler (just in time as well, I was beginning to wonder when I would see another update!). Anyway, the most important thing on my mind is this: I own a license to mikroC - can I use that license to register mikroC PRO? Or do I have to pur...
by amrbekhit
22 Jan 2009 18:49
Forum: mikroC General
Topic: mikroC USB and Proteus Simulation
Replies: 14
Views: 27894

fabim, could you tell us which version of Proteus you are using? Also, could you post a copy of a working hex file?

Thanks

--Amr
by amrbekhit
21 Jan 2009 13:36
Forum: mikroC General
Topic: mikroC USB and Proteus Simulation
Replies: 14
Views: 27894

Hi fvgm,

Unfortunately I haven't succeeded yet. :(

--Amr
by amrbekhit
10 Dec 2008 20:17
Forum: mikroC General
Topic: USB
Replies: 4
Views: 2269

:oops: Sorry! If you're looking for the PC side of things, I'd like to point you to this page on my website:

http://www.helmpcb.com/Software/USBHIDVB/USBHIDVB.aspx

It shows how to create a USB HID template for Visual Basic.NET - it might help you get started.

--Amr
by amrbekhit
10 Dec 2008 19:44
Forum: mikroC General
Topic: USB
Replies: 4
Views: 2269

The mikroC compiler has a USB HID library and if you install mikroC, there's a USB demo included in the program files.

--Amr
by amrbekhit
10 Dec 2008 19:37
Forum: mikroC General
Topic: Do you like the current Configuration settings interface?
Replies: 7
Views: 2725

@pwdixon: Heh, if you look closely at that link you posted, you'll notice that I was also the author - I'm posting it again because mikroE have not mentioned anything about this issue, whether they might work on it or not. I think one needs to think of the ME kit as a training aid, MikroElektronika ...

Go to advanced search