You are the best ,Yus
(smart guy)
Thanks for the HEX and the MPLAB data ,
I am getting the parts from Ebay ...
Added after 4 minutes:
As expected from Yus
Code compile perfectly :
Build C:\Users\Tekno\Desktop\Nokia\LC meter for device 16F876A
Using driver C:\Program Files\HI-TECH Software\PICC\9.70\bin\picc.exe
Make: The target "C:\Users\Tekno\Desktop\Nokia\main.p1" is out of date.
Executing: "C:\Program Files\HI-TECH Software\PICC\9.70\bin\picc.exe" --pass1 C:\Users\Tekno\Desktop\Nokia\main.c -q --chip=16F876A -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Make: The target "C:\Users\Tekno\Desktop\Nokia\lcd3310.p1" is out of date.
Executing: "C:\Program Files\HI-TECH Software\PICC\9.70\bin\picc.exe" --pass1 C:\Users\Tekno\Desktop\Nokia\lcd3310.c -q --chip=16F876A -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Make: The target "C:\Users\Tekno\Desktop\Nokia\display.p1" is out of date.
Executing: "C:\Program Files\HI-TECH Software\PICC\9.70\bin\picc.exe" --pass1 C:\Users\Tekno\Desktop\Nokia\display.c -q --chip=16F876A -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Executing: "C:\Program Files\HI-TECH Software\PICC\9.70\bin\picc.exe" "-oLC meter.cof" "-mLC meter.map" --summary=default --output=default main.p1 lcd3310.p1 display.p1 --chip=16F876A -P --runtime=default --opt=default -D__DEBUG=1 -g --asmlist "--errformat=Error [%n] %f; %l.%c %s" "--msgformat=Advisory[%n] %s" "--warnformat=Warning [%n] %f; %l.%c %s"
Licensed for evaluation purposes only.
This licence will expire on Wed, 17 Feb 2010.
HI-TECH C Compiler for PIC10/12/16 MCUs (PRO Mode) V9.70
Copyright (C) 2009 Microchip Technology Inc.
Warning [1352] C:\Users\Tekno\Desktop\Nokia\display.c; 1167. truncation of operand value (0x100) to 8 bits
Memory Summary:
Program space used 1146h ( 4422) of 2000h words ( 54.0%)
Data space used 63h ( 99) of 170h bytes ( 26.9%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 1h ( 1) of 1h word (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)
Loaded C:\Users\Tekno\Desktop\Nokia\LC meter.cof.
********** Build successful! **********
Added after 9 minutes:
I also can recommend using any 2 diodes in series like the 1N4148 from the 5.5v rail forward biased into pin 1 of the 3310 display 5.5V-0.7V-0.7V= 3.6V
Added after 1 hours 58 minutes:
For the hobbyist who has money (rare) Silver mica capacitors are the best for CCAL
Part number CD15FA102EO3 - Silver Mica Capacitor
* Silver Mica Capacitor
* Capacitance:1000pF
* Capacitance Tolerance:± 0.5pF (that is accurate to 125 degrees!)
* Voltage Rating:100V
* Series:CD15
* Capacitor Dielectric Type:Mica
* Lead Spacing:5.9mm
* Leaded Process Compatible:No
* Operating Temp. Max:125°C
* RoHS Compliant: No
sold in newark:
Price for 1: $7.14