Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion?

Reply
 
LinkBack Thread Tools Display Modes
Old 3rd May 2008, 03:31 PM   (permalink)
Default

Quote:
Originally Posted by ericgibbs
hi eng1,
I did download and install V8 but for some reason the PC starting playing up, screen blanking during the assembly process. Never found out why.
Not a problem with the code but damned irritating.
So I removed it and reinstalled V7.
We could check if there are known bugs in the release notes...
Also I noticed that I had multiple MPLAB intallations on my PC. I have recently removed the old versions and made a new complete installation.


Quote:
Originally Posted by ericgibbs
Also IIRC I did hear claims that some of the earlier PICs had been dropped from the INC's.. thats open for confirmation or not...???
I haven't noticed that! Probably they've removed some OLD devices??

Last edited by eng1; 3rd May 2008 at 03:35 PM.
eng1 is offline  
Old 3rd May 2008, 03:41 PM   (permalink)
Default

hi Al,
Attached LED test program for 628A.
Displays "0123456789"

There a few commented lines.

Lets know.

EDIT: add errorlevel inhibit for assembler warning messages
Attached Files
File Type: asm AlsLCD1.asm (3.2 KB, 10 views)
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 7th July 2008 at 12:24 PM.
ericgibbs is online now  
Old 4th May 2008, 03:21 PM   (permalink)
Default Thanks again Eric

Quote:
Originally Posted by ericgibbs
hi Al,
Attached LED test program for 628A.
Displays "0123456789"

There a few commented lines.

Lets know.

EDIT: add errorlevel inhibit for assembler warning messages
Thats Brilliant Eric,

Yeah thanks very much mate, as soon as I have solved the last problem I suddenly acquired I will try it (see my post "OOOPs") and let you know mate.

I have been trying my fallback programmer (JDM type) but sadly now, just to add to the confusion, IC-Prog has decided that it will not run on my system without strange errors "Privileged instruction" that it has never done before!

Just checking for viri now before I continue.

I will keep you updated..........Thanks again.........Al
__________________
Founder member of the Campaign to do Something about the nonexistent word "Somethink"
bigal_scorpio is offline  
Old 5th May 2008, 08:02 AM   (permalink)
Default

Quote:
Originally Posted by bigal_scorpio
I have been trying my fallback programmer (JDM type) but sadly now, just to add to the confusion, IC-Prog has decided that it will not run on my system without strange errors "Privileged instruction" that it has never done before!

Just checking for viri now before I continue.
Have you enabled the XP driver (Settings->Options->Misc)?
eng1 is offline  
Old 5th May 2008, 01:50 PM   (permalink)
Default

Hi all,

Thanks eng1, I didn't notice that seeting, but sadly it hasn't helped after I set it.

Just cant seem to read / erase / program at all onto the 628A, it seems to run as soon as it goes into the programmer I think, can't stop it.

I even made a small ICSP board with a NC switch so as to be able to insert the 628A before allowing the 5v to it, I read in an above thread that this may help, but yet again no luck, I guess the 628A is just stubborn, or a staunch Union IC, 1 IC 1 job eh! hehehe

I will keep trying anyway, and at present am thinking of building another programmer with more control! Anyone got any suggestions of a good one?

Regards...............Al
__________________
Founder member of the Campaign to do Something about the nonexistent word "Somethink"
bigal_scorpio is offline  
Old 5th May 2008, 02:11 PM   (permalink)
Default

Quote:
Originally Posted by bigal_scorpio
Hi all,
I will keep trying anyway, and at present am thinking of building another programmer with more control! Anyone got any suggestions of a good one?

Regards...............Al
Hi Al,
Look here:
This works OK, you can either use the Oshonsoft software or Nigels parallel prommer software.

http://www.oshonsoft.com/picprog.html

Drop 'Wombweller' a PM he is using one.
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is online now  
Old 5th May 2008, 05:02 PM   (permalink)
Default

Quote:
Originally Posted by bigal_scorpio
I will keep trying anyway, and at present am thinking of building another programmer with more control! Anyone got any suggestions of a good one?

Regards...............Al
Lots of people using the PICkit2 and my Junebug with some success.

If your a DIY I'm clearing out my orginal Inchworm (ICD2 compatible) PCBs for cheap.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline  
Old 6th May 2008, 12:23 AM   (permalink)
Default Finally getting somewhere!

Hi guys,

Well at last I have got my programmer working! Win Pic seems to do the trick, and programs my 628A with no problem. Thanks Picasm.

Now the bad news, thanks to Eric's code I was able to see if there was any output to the LCD and sadly there isn't, so I have a problem somewhere.

I have even breadboarded the PIC to an LCD and the same result - no characters - just the blocks!

Now at least I have narrowed down the problem a bit, it surely must be something to do with the LCD connections, so I am going back to the datasheets for them to see if there is anything wrong - my god these straws are hard to clutch at hehehe.

Anyway thankyou to you all who have participated so far and allowed me to at least keep my sanity, if not my hair! hehehehe

I will keep updating the thread as I progress in case maybe someone in the future will get the same problem as this or maybe the same LCD screens.

Just a thought but could the fact that the design calls for a 2 x 16 LCD and mine are 2 x 20 be causing my grief, though I have also tried a 1 x 8 LCD though neither came with a datasheet, the connections seem fairly standard on LCDs or I hope so after all this trouble!

Thanks again folks, I don't know what I'de do without the help!

...............Al
__________________
Founder member of the Campaign to do Something about the nonexistent word "Somethink"
bigal_scorpio is offline  
Old 6th May 2008, 08:28 AM   (permalink)
Default

hi Al,
If you get to the point that you decide to use the LCF project as a 'door stop', pop the whole thing in the post to me,
I'll have a look.. you have my address.
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is online now  
Old 6th May 2008, 11:57 AM   (permalink)
Default

Al,

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.
Quote:
Most students and experimenters can't afford an HP545 Logic Probe which is something over $200. This simple kit performs the same functions and at the same time may also be used as a clock. Unlike the $200 HP545 this is not encased in a nice package with a menacing steel tip probe with power clips that seem to always be snapping off just as you are trying to observe a logic level. But, at 1/100th of the price, this kit does a nice job.
Or you can build an Mondo SuperProge which has 17 or 18 functions including LC. These use a 4 char 7 seg LED display.
3v0 is offline  
Old 6th May 2008, 06:03 PM   (permalink)
Default

Quote:
Originally Posted by ericgibbs
hi Al,
If you get to the point that you decide to use the LCF project as a 'door stop', pop the whole thing in the post to me,
I'll have a look.. you have my address.
Hi Eric,

I may just do that if it doesn't end up being "embedded" in a wall somewhere. hehehe

Al
__________________
Founder member of the Campaign to do Something about the nonexistent word "Somethink"
bigal_scorpio is offline  
Old 6th May 2008, 06:07 PM   (permalink)
Default

Quote:
Originally Posted by 3v0
Al,

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.
Hi 3v0,

Some of that stuff sounds very interesting and probably is to many other members. How about some links to the projects?

As to the toggling pin, yes, but see my other posts, the LCD now seems likely suspect!

Regards...........Al
__________________
Founder member of the Campaign to do Something about the nonexistent word "Somethink"
bigal_scorpio is offline  
Old 6th May 2008, 06:20 PM   (permalink)
Default

$3 logic probe http://www.phanderson.com/logic_probe.html and order page
Super Probe http://mondo-technology.com/super.html
BlueroomElectronics http://www.blueroomelectronics.com/

Quote:
As to the toggling pin, yes, but see my other posts, the LCD now seems likely suspect!
That is some progress. I can not see the Erick's code while posting. Some displays like a hard reset prior to seeing any commands or data.

Last edited by 3v0; 6th May 2008 at 06:26 PM.
3v0 is offline  
Old 10th May 2008, 09:34 PM   (permalink)
Default

One more thing I noticed in the schematic is that it has (omly) four pin for programming (mlcr-vss-pgd-pgc). Are you shure that you are connecting the PIC correctly?

Its worth checking. (also check that the crystal are installed correct with the right caps and stuff, I have made that mistake myself)
__________________
Simplicity rules

Good enought - its perfect ??

2 Gig of free online backup space

Are you a Chemist?
Kryten is offline  
Old 10th May 2008, 10:38 PM   (permalink)
Wink Sorted at last!

Hi Guys,

Glad to say its sorted out at last!

It was finally Eric who said was I connecting R/W to ground!

No I wasn't, DOH! I followed the actual drawing and there is no connection for R/W but Eric spotted it on the schematic, I bet the damn thing was working OK days before I found out! hehehe Electronics eh!

Thanks again to all for the help..............Al

BTW the meter is superb and if you don't have one I would recommend building this one! Just don't forget to ground R/W
__________________
Founder member of the Campaign to do Something about the nonexistent word "Somethink"
bigal_scorpio is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
High ADC sampling rate PIC, 18F needed? bananasiong Micro Controllers 24 28th October 2007 01:13 PM
Analog Meter windozeuser General Electronics Chat 19 3rd October 2007 03:44 PM
amp meter needed ? gigster General Electronics Chat 12 8th March 2007 10:49 PM
Help needed with LED Bar Current Meter! blue7hand Electronic Projects Design/Ideas/Reviews 6 28th February 2005 12:40 PM
Panel meter, analog VS digital Johnson777717 General Electronics Chat 7 23rd June 2004 12:33 AM



All times are GMT. The time now is 09:44 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker