Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 15th July 2005, 09:38 PM   (permalink)
Default

Quote:
Originally Posted by epilot
i cheked the hardware again and it seems there is no problem with it

i dont know what is the problem and i am so confused now

the only thing that i think about is:
perhaps the problem is from the cable because my caple that goes to printer port has some of wires conected to ground and i assume that there are the problem but i am not sure if i must cut them or not
:cry: :? :? :?

Nigel, does your software works with all kind DIY pic programmer?

i want to built another kind, perhaps such as this:http://www.jdm.homepage.dk/newpics.htm

http://www.jdm.homepage.dk/easypic.htm
forget JDM , that is a serial programmer..
i believe some of the parallel port wires are supposed to be connected to ground..
what voltage are you getting , when MCLR is supposed to be high
williB is offline  
Old 15th July 2005, 10:28 PM   (permalink)
Default

Quote:
Originally Posted by epilot
Nigel, does your software works with all kind DIY pic programmer?
No, it only works with parallel port programmers.

Quote:

i want to built another kind, perhaps such as this:http://www.jdm.homepage.dk/newpics.htm

http://www.jdm.homepage.dk/easypic.htm
As already mentioned by WilliB, the JDM is a 'serial port' programmer, it's generally far less reliable than a parallel port design - and is the main reason that WinPicProg doesn't support 'serial port' programmers.

You could try ICProg, that supports both parallel and serial port designs.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 15th July 2005, 10:34 PM   (permalink)
Default

williB,

i think i couldnt understand you corectly about :
"forget JDM , that is a serial programmer..
i believe some of the parallel port wires are supposed to be connected to ground.. "


MCLR voltage is 13.4

i exgenged 74LS07N with a new one but i have the problem yet while writing in the pic
"program Verify failed on line 0, program aborted"


what is deffirence between serial programmers and parallels refering to your above post?
epilot is offline  
Old 16th July 2005, 12:11 AM   (permalink)
Default

Quote:
Originally Posted by epilot
what is deffirence between serial programmers and parallels refering to your above post?
No wonder you have asked this question. The author at the link of your programmer had said the following, twice in the webpage:

Quote:
Build a low-cost and very simple serial programmer for a PIC16F84 Microchip Flash Microcontroller. Below picture is my personal writer for F84 chip, it works very nice with Nigel WPicProg V1.20.
The author made it confusing to call his own design a serial programmer which in actual fact is a parallel one.

The programmer that you have built is a "parallel port" programmer. It obtains its signals from the parallel printer port and arrange the signals in a form suitable for porgramming the PIC.

Of course one can also design the interface with signals using the COM port and that is known as a serial port programmer.

Having said that, please make sure on your PC the following:

a. the proper I/O driver is installed if you are using WindowXP or Win2000
b. that you have selected "Custom" as the choice of your programmer type in the WinPicProg software
c. the check boxes and tick marks are exactly as shown in the following image
d. if you are using the most up to date versions of WinPicProg, you can ignor the whole table column of Vpp40 as this is not used by your programmer
Attached Images
File Type: gif checkbox.gif (11.4 KB, 772 views)
__________________
L.Chung
eblc1388 is offline  
Old 16th July 2005, 08:24 AM   (permalink)
Default

Oops. Forgot to include the mentioned link.
http://chaokhun.kmitl.ac.th/~kswichit/f84/f84.htm
__________________
L.Chung
eblc1388 is offline  
Old 16th July 2005, 09:27 AM   (permalink)
Default

hi eblc1388,

thanks for your guide,

i have no problem with the option part and my adjusts are exactly like what you showed

i even made the VDD and output parts in the option part "high" to measure their voltage on the circuit, i could get the voltage and saw that there is no problem with their parts

i am using version 1.21


the only thing is that i used from 2N2905 instead 2N2907 for the hardware
2N2905A SI-P 60V 0.6A 0.6W 45/100
2N2907A SI-P 60V 0.6A 0.4W 45/100

and i think there is no problem with them

do you think the problem can caused because of my pics?
i have 3 of them
if i suppose they are burned or dameged then do you think i'll get that message?
"program Verify failed on line 0, program aborted"

some times the software give me an error message about fuses?
epilot is offline  
Old 16th July 2005, 09:44 AM   (permalink)
Default

Quote:
Originally Posted by epilot
if i suppose they are burned or dameged then do you think i'll get that message? "program Verify failed on line 0, program aborted"
some times the software give me an error message about fuses?
This changing error suggested to me that there is problem in the power supply of the programmer, as Nigel has correctly pointed out earlier.

I checked the weblink again and the author is using 330uF after the bridge rectifier. But he is using DC input whereas you are using AC input.

You must use a 2200uF or larger capacitor if you are feeding AC to the bridge rectifier.

Hope this help.
__________________
L.Chung
eblc1388 is offline  
Old 16th July 2005, 06:44 PM   (permalink)
Default

hi again

i cameback here to ask another question
i have heard that the PARALLEL softwares(compilers) can not be used with XP windows while all my experience with the Nigle software were with XP windows....
do you tthink the problem is because of this?

another question is that what is difference between a compiler and a debugger?
i have heard that i acn program my pics with a debugger too?!
epilot is offline  
Old 18th September 2005, 10:25 PM   (permalink)
Default

Quote:
Originally Posted by epilot
hi again

i cameback here to ask another question
i have heard that the PARALLEL softwares(compilers) can not be used with XP windows while all my experience with the Nigle software were with XP windows....
do you tthink the problem is because of this?
Parallel port programmers work fine on XP as long as they were written for it. WinPicProg and IC-Prog for example work very well with parallel port programmers on XP, no problem there.

Quote:
another question is that what is difference between a compiler and a debugger?
i have heard that i acn program my pics with a debugger too?!
What you've heard is probably that you can program your PICs with the ICD/ICD2 which are both programmers AND debuggers.

A debugger lets you stop your program in the middle of its execution and inspect memory locations to spot logic problems and/or any kind of bug your code might contain by stepping through it, one instruction at a time. It's like watching what's going on inside your PIC in slow motion. And you have the remote to control everything It is a very useful tool. You can build an ICD2 clone by following the instructions published on Lothar Stolz's website if you are interested.
__________________
Time is nature\'s way of keeping everything from happening at once.
http://membres.lycos.fr/jrainville/
Joel Rainville is offline  
Old 18th September 2005, 10:28 PM   (permalink)
Default

Quote:
Originally Posted by Joel Rainville
It's like watching what's going on inside your PIC in slow motion
I will just Add, very slow motion. It takes few seconds to start and stop the program
__________________
"I share, thus I am"
Jay.slovak
Read this!
ICD2 Clone
Best PIC/DsPIC Bootloader

Read my Inchworm ICD2 review!
Jay.slovak is offline  
Old 19th September 2005, 11:56 AM   (permalink)
Default

ok thanks for your guides

then i think it is better i ask all my questions here

what is diference between a 16C84 and 16F84 pic? and can i program a 16F84 with a 1c84 programmer like this http://sami.ticalc.org/e_84prog.htm ?

since i am very beginner at PICs so i let myself to ask the following questions too :roll:

what MPLAB does really? i think it convert a C or assembely code into hex file,is this correct?

what a CCS is really?

if we have a basic and c program then how we can convert it into hex file? and is the result the same if both do a certain job?

really sorry
epilot is offline  
Old 19th September 2005, 12:17 PM   (permalink)
Default

oh i forgot
how i can find out that a software is designed for serial or parallel port?
WINPICPR, icprog, Wpic, ....?
epilot is offline  
Old 19th September 2005, 02:44 PM   (permalink)
Default

Quote:
Originally Posted by epilot
ok thanks for your guides

then i think it is better i ask all my questions here

what is diference between a 16C84 and 16F84 pic? and can i program a 16F84 with a 1c84 programmer like this http://sami.ticalc.org/e_84prog.htm ?
You shouldn't really be using such old obselete chips, the 16C84 was replaced by the 16F84, probably about early/mid 90's?, the 16F84 in turn was replaced by the 16F628, around the late 1990's. But all three use the same progammer hardware, it's only programmer software that makes the difference. Originally PicProg (long before it became WinPicProg), only supported the 16C84, as that was the ONLY EEPROM PIC there was, after it was replaced by the 16F84 I upgraded it to support that as well.

So if you've got a box full of the old chips?, fair enough, but don't buy them, buy a later, cheaper, higher spec chip instead.

Quote:

since i am very beginner at PICs so i let myself to ask the following questions too :roll:

what MPLAB does really? i think it convert a C or assembely code into hex file,is this correct?
MPLAB is a collection of programs integrated together, essentially a text editor, simulator, and assembler. It also has links to MicroChips own programmers, and a link to MicroChips C compiler.

MPLAB converts ASSEMBLY source code into a HEX file (by calling MPASM, the MicroChip assembler). It doesn't compile C source code.

Quote:

what a CCS is really?
It's a C compiler, it tales C source code and produces a HEX file.

Quote:

if we have a basic and c program then how we can convert it into hex file? and is the result the same if both do a certain job?
You need the correct compiler for the source you have, that will than produce a HEX file that you can load using your programmer.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 19th September 2005, 03:55 PM   (permalink)
Default

hi Nigel and thanks

no i hve no 16C84 version i would like build that programmer that you can see its link at above but it was designed for 16c84 and i would like to know if i make it and use from your software and 16F84 version does it do work or no?


my mean about "if we have a basic and c program then how we can convert it into hex file? and is the result the same if both do a certain job? " is that if the only lang i know is C lang and my programmer is a basic version for example can i exchange my C codes into hex and then load them into my basic software and send them into my pic?
anyway i think any program at any lang should be converted into hex files!?
epilot is offline  
Old 19th September 2005, 04:05 PM   (permalink)
Default

Quote:
Originally Posted by epilot
hi Nigel and thanks

no i hve no 16C84 version i would like build that programmer that you can see its link at above but it was designed for 16c84 and i would like to know if i make it and use from your software and 16F84 version does it do work or no?
No, that's a serial port programmer.

Quote:

my mean about "if we have a basic and c program then how we can convert it into hex file? and is the result the same if both do a certain job? " is that if the only lang i know is C lang and my programmer is a basic version for example can i exchange my C codes into hex and then load them into my basic software and send them into my pic?
anyway i think any program at any lang should be converted into hex files!?
A programmer doesn't use any kind of language, all it does is transfer HEX files (a format for storing the actual machine language instructions for the processor) to the chip itself. Whatever program actually generated the HEX file is completely irrelevent - and the HEX file doesn't even comtain any such information.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 12:35 PM.


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

eXTReMe Tracker