i hav made the pic lcf meter using 16f628A, but when i turned on the meter,only one line of rectangular boxes is appearing on lcd (i.e noting changed) & nothing happening.. i have checked all the connection which are alright..
i have a doubt abt my 3.2768 crystal, which was not available and i found it by chance. the value on the crystal is written as : ECS v 3.27 - 17 ,,, ..what do u think ???
to program the ic pic 16f628A for Lcf meter , can anybody plz tell what config bit to set ? i am using mepwin 500 universal programmer and it gives me some options to set the config word (see in the attached image)
to program the ic pic 16f628A for Lcf meter , can anybody plz tell what config bit to set ? i am using mepwin 500 universal programmer and it gives me some options to set the config word (see in the attached image)
gosh! Thanks alot for replying that fast...i am also having the same trouble just as al was having ...ie no just a single line of boxes on the lcd...so eric can you plz also upload the asm file for lcd testing as well as led toggler (RA3 pin toggler) u uploaded( the previous upload seems to be damaged ?? thnx
note tht i have grounded R/W and have a contrast pot..
gosh! Thanks alot for replying that fast...i am also having the same trouble just as al was having ...ie no just a single line of boxes on the lcd...so eric can you plz also upload the asm file for lcd testing as well as led toggler (RA3 pin toggler) u uploaded( the previous upload seems to be damaged ?? thnx
note tht i have grounded R/W and have a contrast pot..
Have you run Erick's code that changes the value of a single pin. I seen where you said it seemed to run away. Did it toggle the pin?
Maybe build some other tools first?
A programmer with ICD would a good tool for debugging. You could set breakpoints inside the LCD code and check the state of each line with a volt meter or a logic probe.
For 16F work a serial ICD2 is fast enough. Bill is closing out the the Inchworms ICD2's so the price is right. They are mostly a 16F877A, a few transistors, and a handful of resistors and caps. Uses code from Microchip's ICD2 so it will work with MPLAB as long as Microchip supports the ICD2.
A PICkit2 or Bills clone the Junebug is even better. It runs at USB speed and does double duty as a 3 channel logic analyzer. That would be nice for looking at the LCD control lines on the current project. 3 lines is not much but you would be suprised what you can do with it.
Peter Anderson has a PIC programed as a logic prob for under $3.
Or you can build an Mondo SuperProge which has 17 or 18 functions including LC. These use a 4 char 7 seg LED display.
RA3 is the unused pin in the lcf meter, so i thought i should also test it by toggling led slowly just to confirm whether my pic is starting/working or not...just as u and others suggested..actually i m really new to microcontroller and so far have done programming for 8051 (in C) so thats why i hav to bother u with such minor things...
RA3 is the unused pin in the lcf meter, so i thought i should also test it by toggling led slowly just to confirm whether my pic is starting/working or not...just as u and others suggested..actually i m really new to microcontroller and so far have done programming for 8051 (in C) so thats why i hav to bother u with such minor things...
i had that LCF meter working fine for long time..
recently i decided to remove the rotery switch and keep the instrument
as L meter everything went fine and it was measuring ok but after i tried
to put it in a plastic box, it fails to measure correctly.. especially very
small inductors!
a once measured 3.3uH inductor now the instrument show it is 17mH
and the measurement hardly stays steady..
looking at the board and components..couldn't find something wrong...
any ideas what might has happend?!
i had that LCF meter working fine for long time..
recently i decided to remove the rotery switch and keep the instrument
as L meter everything went fine and it was measuring ok but after i tried
to put it in a plastic box, it fails to measure correctly.. especially very
small inductors!
a once measured 3.3uH inductor now the instrument show it is 17mH
and the measurement hardly stays steady..
looking at the board and components..couldn't find something wrong...
any ideas what might has happend?!
Just wondering if since maybe its a while since using the LC meter if you remembered to short the leads before measuring inductors to null the reading?
Also I have noticed that even though the LCD may look OK, when the battery is failing the readings can vary dramatically.
Just wondering if since maybe its a while since using the LC meter if you remembered to short the leads before measuring inductors to null the reading?
Also I have noticed that even though the LCD may look OK, when the battery is failing the readings can vary dramatically.
yes i'm shorting the leads so i can null the instrument with the push button...
no..the battery is new...
when the cables are shorted and the instrument is nulled or when i probe an inductor...
the frequency and the inductance doesn't stay steady instead it starts to raise
for example:
17584Hz
37.694uH
17596Hz
43.576uH
17609Hz
51.799uH
and so on... and also the measurement is not the correct one
I'm planning to built this project too but reluctant due to the fact of the hard to find XTAL..does the 3.2768MHz crystal matters for the accuracy of this meter? Can I used a much standard values like 4,8,10,12 or 20Mhz instead of 3.2768MHz by changing the xtal value in the source code?
I'm planning to built this project too but reluctant due to the fact of the hard to find XTAL..does the 3.2768MHz crystal matters for the accuracy of this meter? Can I used a much standard values like 4,8,10,12 or 20Mhz instead of 3.2768MHz by changing the xtal value in the source code?
I'm planning to built this project too but reluctant due to the fact of the hard to find XTAL..does the 3.2768MHz crystal matters for the accuracy of this meter? Can I used a much standard values like 4,8,10,12 or 20Mhz instead of 3.2768MHz by changing the xtal value in the source code?
Ooops, you are correct Kasamiko, I must be having one of those days.
Until I actually looked again at the drawing I was convinced that the freq was 32.768khz. Doh! Plans scuppered, but I will see if I have a 3.768mhz crystal in my bits box and if I have I will send it to the guy free. It was my bad that got his hopes up after all.
Ooops, you are correct Kasamiko, I must be having one of those days.
Until I actually looked again at the drawing I was convinced that the freq was 32.768khz. Doh! Plans scuppered, but I will see if I have a 3.768mhz crystal in my bits box and if I have I will send it to the guy free. It was my bad that got his hopes up after all.