Search found 25 matches

by dariods
25 May 2023 18:17
Forum: mikroC PRO for PIC General
Topic: undeclared identifier in expression
Replies: 5
Views: 600

Re: undeclared identifier in expression

If you want a complete answer, post your full code I promise that nobody will want to steal this code :wink: I have no issues in posting the full code as I have copied the code from the internet for a voltmeter using PIC16F877A and have modified it to make a battery coulometer. Infact someone could...
by dariods
24 May 2023 18:26
Forum: mikroC PRO for PIC General
Topic: undeclared identifier in expression
Replies: 5
Views: 600

Re: undeclared identifier in expression

There are a lot of errors in your code - too many to list Here is my attempt at fixes, but mostly guesswork from the limited snippet of code given // simple program for forum - a complete mess, but do not blame me - I did not write it // PIC16F877A with 8 MHz external 2-pin crystal // EasyPIC V7 bo...
by dariods
24 May 2023 09:51
Forum: mikroC PRO for PIC General
Topic: undeclared identifier in expression
Replies: 5
Views: 600

undeclared identifier in expression

I am trying to call functions using the switch case method but i am getting a compiling error "Undeclared identifier (Function_name) in expression". How do i solve the error? void main_menu() { unsigned int ex = 1; unsigned int sw = 1; CustomChar(1,1); Lcd_out(1,3,"Battery Capacity"); Lcd_out(2,3,"C...
by dariods
12 May 2023 12:30
Forum: mikroBasic PRO for PIC General
Topic: IRP bit must be set manually for indirect access to '?Loca
Replies: 27
Views: 32200

Re: IRP bit must be set manually for indirect access to '?Lo

Use this code for LCD Data, IRP problem will gone... void Lcd_COut(char row, char col, const char *cptr) { char chr = 0; //first, it is used as empty string Lcd_Out(row, col, &chr); //nothing to write but set position. for ( ; chr = *cptr ; ++cptr ) Lcd_Chr_CP(chr); //out in loop } write in code......
by dariods
04 May 2023 18:20
Forum: mikroC PRO for PIC General
Topic: How to save 16 bit integer value in 8 bit register
Replies: 2
Views: 662

Re: How to save 16 bit integer value in 8 bit register

Thanks for the solution. I could achieve what I wanted with your help. Thanks again u/jumper
by dariods
01 May 2023 18:39
Forum: mikroC PRO for PIC General
Topic: How to save 16 bit integer value in 8 bit register
Replies: 2
Views: 662

How to save 16 bit integer value in 8 bit register

I need to save milliamps which would have the decimal number between 0 to 18000 in the EEPROM of PIC16F877A. The max value that can be saved is 255 in one address of the EEPROM. Search says to do bit shifting. But examples are using hex or binary. So should I convert to hex first. Please explain wit...
by dariods
30 Apr 2023 18:18
Forum: mikroC PRO for PIC General
Topic: Using Interrup for timing
Replies: 3
Views: 502

Re: Using Interrup for timing

Thanks for the solution, its working perfectly as I needed. I couldn't perform simulation in the software simulator but tried it in proteus. Thanks once again.
by dariods
29 Apr 2023 18:21
Forum: mikroC PRO for PIC General
Topic: Using Interrup for timing
Replies: 3
Views: 502

Re: Using Interrup for timing

Thanks, this is exactly what I was looking for. How to confirm the timing using the debugging method?
by dariods
29 Apr 2023 13:04
Forum: mikroC PRO for PIC General
Topic: Software Simulator
Replies: 1
Views: 416

Software Simulator

I'm making an amp-hour meter. The main loop must execute every second. I wanted to check the time taken by the loop in the simulator similar to the stopwatch function in Mplabx simulator. I have put a breakpoint at the end of the loop at a 1 ms delay. If I start the debugging in MicroC it halts at t...
by dariods
26 Apr 2023 07:38
Forum: mikroC PRO for PIC General
Topic: Using Interrup for timing
Replies: 3
Views: 502

Using Interrup for timing

I am trying to build an amphour meter using PIC16F877A for which i need to read the adc once every second, not delay of 1 second. the best way i found is to use interupt to acheive this. But i am unable to understand how to do this. Can someone please explain with a simple adc read code that reads e...

Go to advanced search