Search found 59 matches

by inspirational4real
06 Feb 2011 23:29
Forum: mikroC PRO for PIC General
Topic: ADCON0bit.GO is undeclared identifier when compiled
Replies: 10
Views: 4649

Re: ADCON0bit.GO is undeclared identifier when compiled

you can as well just use the "GO_DONE_bit=0" in place of that. Not all c compiler support that method of addressing bits in a register.
by inspirational4real
06 Feb 2011 23:21
Forum: mikroC PRO for PIC General
Topic: 18F4550 + DS1307 + USB problem!
Replies: 4
Views: 2211

Re: 18F4550 + DS1307 + USB problem!

What you do is to basically use the AND gate as a buffer, the two input pins of the AND gate are tied together and fed from the Microcontroller and the output is used to drive your DS1307 chip. It has become a standard Norm for me to use this method when I am trying to get out a clean clock signal f...
by inspirational4real
04 Feb 2011 23:17
Forum: mikroC PRO for PIC General
Topic: 18F4550 + DS1307 + USB problem!
Replies: 4
Views: 2211

Re: 18F4550 + DS1307 + USB problem!

Whenever I face a problem where I have to touch a part of a circuit for it to work well. I have always had problem with effect of stay capacitance which in turn makes my clock line to be dirty. What I have always done when clock line is dirty is to use a cd4081 and gate as a buffer to get a clean cl...
by inspirational4real
07 Aug 2010 03:37
Forum: mikroC PRO for PIC General
Topic: New GLCD project for 18F2550
Replies: 24
Views: 11509

Re: New GLCD project for 18F2550

Thanks to everyone who was interested in reading my post and offering to help. As I earlier mentioned I requested a support ticket with mE and they responded to my query(very impressed). This was the summary of the reply. " Hello, I have tested your program on real hardware. Specifically, I used Eas...
by inspirational4real
03 Aug 2010 22:19
Forum: mikroC PRO for PIC General
Topic: New GLCD project for 18F2550
Replies: 24
Views: 11509

Re: New GLCD project for 18F2550

That is what i was talking about any way i have already taken a support ticket with mikroe and i am waiting for their reply. In the meantime I had wanted to use strncpy function to avoid using sprinf but i got pic18 stack overflow reset in in proteus. I can just avoid using mikroc compiler while i u...
by inspirational4real
01 Aug 2010 22:22
Forum: mikroC PRO for PIC General
Topic: New GLCD project for 18F2550
Replies: 24
Views: 11509

Re: New GLCD project for 18F2550

this is the proteus file in compatibility mode and you can check it now, in the mean time i have requested a support ticket with mikroe. I have noticed that while the sprintf function leads to uninitialized memory complain in proteus, using strncpy leads to stack overflow causing a reset in proteus.
by inspirational4real
30 Jul 2010 04:20
Forum: mikroC PRO for PIC General
Topic: New GLCD project for 18F2550
Replies: 24
Views: 11509

Re: New GLCD project for 18F2550

Any help yet for this post, I have uploaded the schematics and the associated proteus file for simulation purpose, so you can understand what i am talking about as i dont want to go on to design this project on hardware only for it not to work. :?
by inspirational4real
28 Jul 2010 03:39
Forum: mikroC PRO for PIC General
Topic: New GLCD project for 18F2550
Replies: 24
Views: 11509

Re: New GLCD project for 18F2550

I am uploading the project files and the simulation results so everyone can see what i am talking about. I have tried to simulate by creating a 16 by 2 lcd project before with sprintf function and i get similar complains too.
by inspirational4real
27 Jul 2010 04:46
Forum: mikroC PRO for PIC General
Topic: New GLCD project for 18F2550
Replies: 24
Views: 11509

Re: New GLCD project for 18F2550

Hi guys, I have tweaked this code a bit based on the fact that i had to use 18f4520 or 18f4550 and the code compiled successfully and there was not a single error from the mikroc pro compiler. but the problem is by the time i try to simulate with proteus i get a load of stack error and error from un...
by inspirational4real
07 Apr 2010 23:04
Forum: mikroC PRO for PIC General
Topic: ADC Question
Replies: 7
Views: 2298

Re: ADC Question

I have worked on this kind of problem when i was designing my oscilloscope to take negative voltage inputs, I used an opamp as a level shifter by adding an offset voltage such that at -2.5v the output is zero and at 2.5v the output is 5v. those corresponded to a sort of straight line equation were t...
by inspirational4real
02 Mar 2010 22:25
Forum: mikroC PRO for PIC General
Topic: why is this simple code not working?
Replies: 6
Views: 2389

Re: why is this simple code not working?

Thanks you guys again for replying to my post. To sonnyK i had to add cmcon = 7 just to see if that would correct the bug of unpredictability that was involved in the code. to acetronics i used clockit initially, i had to change to clockit() just to see if that makes the code work. moreover in c for...
by inspirational4real
01 Mar 2010 02:04
Forum: mikroC PRO for PIC General
Topic: WHAT IS THE MAXIMUM SIZE OF A CONST CHAR ARRAY I CAN CREATE?
Replies: 4
Views: 2182

WHAT IS THE MAXIMUM SIZE OF A CONST CHAR ARRAY I CAN CREATE?

i was looking at the bitmap array generator and i was wondering what the maximum size of such array is that i can create. i want to know whether it is going to be limited by the program memory size of the microcontroller alone or there are other limitation. More over if i create a custom array how d...
by inspirational4real
27 Feb 2010 23:56
Forum: mikroC PRO for PIC General
Topic: 16F877A, I2C & EEPROM
Replies: 3
Views: 2185

Re: 16F877A, I2C & EEPROM

To try to tell you an easy way out is not that simple, i think what you should do is to first learn a programming language preferable visual basic.net. with this read jan axelson's serial port complete. even if anyone makes it simpler by giving you code and everything ready to run, you are not going...
by inspirational4real
27 Feb 2010 23:16
Forum: mikroC PRO for PIC General
Topic: why is this simple code not working?
Replies: 6
Views: 2389

Re: why is this simple code not working?

thanks guys, i think i figured out how the problem is generated. for some instance you can see from the code that i am trying to change the port a bit at different times. when bit0, bit1 and bit2 of porta is to be changed to different values at different time, setting a particular bit tend to clear ...
by inspirational4real
26 Feb 2010 22:26
Forum: mikroC PRO for PIC General
Topic: why is this simple code not working?
Replies: 6
Views: 2389

why is this simple code not working?

#define clockpin PORTA.f0 #define resetpin porta.f1 #define datapin porta.f2 void clockit(void) { clockpin = 1; delay_us(20); clockpin = 0; } void reset(void) { resetpin = 0; delay_us(20); resetpin = 1; } void main() { int x,z;char y; const char loopcycletime=50; const int arraysize=635; const code...

Go to advanced search