Search found 21 matches

by dariods
05 Mar 2024 15:47
Forum: mikroC PRO for PIC General
Topic: Coulometer Time Remaining Not changing Instantly(SOLVED)
Replies: 9
Views: 1126

Re: Coulometer Time Remaining Not changing Instantly

hexreader wrote: ↑
30 Jun 2023 16:42
can you please help me to read write custom character array to EEPROM?
viewtopic.php?f=88&t=80542&p=318319#p318319
by dariods
03 Mar 2024 08:30
Forum: mikroC PRO for PIC General
Topic: Read write custom character array from EEPROM
Replies: 1
Views: 132

Read write custom character array from EEPROM

How to read and write custom character array to EEPROM? Please guide. // [b]want to write/ read const char STR,RC,NC,NU,SQR,RU to EEPROM[/b] const char STR[] = {3,3,3,3,3,3,3,3}; const char RC[] = {31,31,3,3,3,3,31,31}; const char NC[] = {31,31,24,24,24,24,31,31}; const char NU[] = {27,27,27,27,27,2...
by dariods
10 Aug 2023 10:41
Forum: mikroC PRO for PIC General
Topic: Combining 8 bit integers to 32 bit long integer
Replies: 2
Views: 468

Combining 8 bit integers to 32 bit long integer

I have split a 32 bit long integer to 8 bits and saved to 4 locations on the EEPROM. The For loop code doesn't work, there seems to be problem with "Distance |=" but I do not know how to solve it. Please guide // PIC16F886 void read_saved_odo(){ unsigned long int Distance = 12345678; unsigned int i;...
by dariods
01 Jul 2023 06:42
Forum: mikroC PRO for PIC General
Topic: Coulometer Time Remaining Not changing Instantly(SOLVED)
Replies: 9
Views: 1126

Re: Coulometer Time Remaining Not changing Instantly

hexreader wrote: ↑
30 Jun 2023 16:42
Ah... I think I can maybe guess what you wanted....

You want to show time past 100%?

Makes no sense to me - this is just a confusing indication in my mind, but here it is anyway...
I have checked the code in Proteus simulation, will program the pic and check it in actual hardware.
by dariods
30 Jun 2023 07:43
Forum: mikroC PRO for PIC General
Topic: Coulometer Time Remaining Not changing Instantly(SOLVED)
Replies: 9
Views: 1126

Re: Coulometer Time Remaining Not changing Instantly

Updated code version attached See comments at top of code to see what has changed Your previous code works perfectly. I have done some changes in it to suite me. Your code if(batt_cap = 0xffff){ // is EEPROM blank? batt_cap = 18000; // if so, then default to 18 AH } I want it to be universal upto 6...
by dariods
29 Jun 2023 15:49
Forum: mikroC PRO for PIC General
Topic: Coulometer Time Remaining Not changing Instantly(SOLVED)
Replies: 9
Views: 1126

Re: Coulometer Time Remaining Not changing Instantly

Attached is my attempt at a quick fix // status 29 June 2023 // // Only changes from original are : // 1 default to 18 AH if EEPROM is blank (as when programmed) // 2 formatting improvements // 3 timing display over-ridden with a new simpler function // // - will latewr provide a function for text ...
by dariods
28 Jun 2023 13:13
Forum: mikroC PRO for PIC General
Topic: undeclared identifier in expression
Replies: 5
Views: 585

Re: undeclared identifier in expression

hexreader wrote: ↑
24 May 2023 10:41
If you want a complete answer, post your full code
I promise that nobody will want to steal this code :wink:
Here is my full code viewtopic.php?f=88&t=80057
by dariods
28 Jun 2023 10:25
Forum: mikroC PRO for PIC General
Topic: Coulometer Time Remaining Not changing Instantly(SOLVED)
Replies: 9
Views: 1126

Coulometer Time Remaining Not changing Instantly(SOLVED)

I have modified code available in the internet to create a battery coulometer using PIC16F886 and 20x4 LCD display. All function works well, except Time remaining. All other readouts change instantly only time remaining literally works like a counter. eg. If I draw 18 amps from a 18aH battery the ba...
by dariods
30 May 2023 22:18
Forum: mikroPascal PRO for PIC General
Topic: how to enable internal pull ups?
Replies: 14
Views: 18129

Re: how to enable internal pull ups?

Found the answer
by dariods
29 May 2023 18:40
Forum: mikroPascal PRO for PIC General
Topic: how to enable internal pull ups?
Replies: 14
Views: 18129

Re: how to enable internal pull ups?

How to enable weak pull up resistor on all pins of PORTB except RB1 on PIC16F886
by dariods
25 May 2023 18:17
Forum: mikroC PRO for PIC General
Topic: undeclared identifier in expression
Replies: 5
Views: 585

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: 585

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: 585

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: 30931

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......

Go to advanced search