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 12th October 2004, 08:07 AM   (permalink)
Default Different (16F628 and 16F84A)??

Actually i'm try to setup the PIC kit like nigel's site.. when i'm trying to change the programming (.asm)... it has an error... so which one 'WORD' is not same between 16F628 and 16F84A??? so i can modified the programming...

plz hlp!!!
__________________
The world without engineer is the world without control!
amady is offline  
Old 12th October 2004, 09:04 AM   (permalink)
Default Re: Different (16F628 and 16F84A)??

Quote:
Originally Posted by amady
Actually i'm try to setup the PIC kit like nigel's site.. when i'm trying to change the programming (.asm)... it has an error... so which one 'WORD' is not same between 16F628 and 16F84A??? so i can modified the programming...
As I've already mentioned in the other thread, the differences are very slight - if you check MicroChip's website there is a migration document which gives the (very few) differences required.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 12th October 2004, 02:59 PM   (permalink)
Default

Quote:
it has an error...
what was the error ?
williB is offline  
Old 13th October 2004, 02:20 AM   (permalink)
Default

Quote:
Originally Posted by williB
Quote:
it has an error...
what was the error ?
I think i was solve the error... the error is can't recognize command CMCON....
__________________
The world without engineer is the world without control!
amady is offline  
Old 13th October 2004, 06:48 AM   (permalink)
Default

Quote:
Originally Posted by amady
Quote:
Originally Posted by williB
Quote:
it has an error...
what was the error ?
I think i was solve the error... the error is can't recognize command CMCON....
Those are the two lines you have to remove, the 16F628 has internal comparators which are turned ON by default - those two lines (writing to CMCON) turn the comparators OFF, making it look like a 16F84.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 13th October 2004, 07:16 AM   (permalink)
Default

Quote:
Those are the two lines you have to remove, the 16F628 has internal comparators which are turned ON by default - those two lines (writing to CMCON) turn the comparators OFF, making it look like a 16F84.
Yap... i was remove all this thing and it sucessfully... but sometimes when i run MPLAB it come the error:

source file path exceeds 62 characters

what it's mean...??? :shock:

I try to find the difference between PIC16F84A and 16F628 at microchip.com but i don't find it...
__________________
The world without engineer is the world without control!
amady is offline  
Old 13th October 2004, 07:44 AM   (permalink)
Default

16f628..

http://ww1.microchip.com/downloads/e...Doc/40300c.pdf
williB is offline  
Old 13th October 2004, 07:52 AM   (permalink)
Default

Quote:
i run MPLAB it come the error:

source file path exceeds 62 characters

What the problem??
__________________
The world without engineer is the world without control!
amady is offline  
Old 13th October 2004, 09:01 AM   (permalink)
Default

Quote:
Originally Posted by amady
Quote:
i run MPLAB it come the error:

source file path exceeds 62 characters

What the problem??
I would have thought it's fairly obvious?, the error message is quite explicit, the file path to your code is too long. Move it closer to the root directory, or use more sensible shorter directory names. MPASM itself (the MicroChip assembler) is only a 16 bit application, and so only handles short 8.3 filenames - MPLAB appears to act as a handler for MPASM (but I never use MPLAB, so I can't be sure), and sorts out the filenames, but appears to still have some limitations.

But really, your directory/file path shouldn't be approaching 62 characters!.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 13th October 2004, 09:59 AM   (permalink)
Default

Quote:
Nigel: but I never use MPLAB, so I can't be sure
So can i know what asembler was you used?? It's free??? :lol:
__________________
The world without engineer is the world without control!
amady is offline  
Old 13th October 2004, 10:34 AM   (permalink)
Default

Quote:
Originally Posted by amady
Quote:
Nigel: but I never use MPLAB, so I can't be sure
So can i know what asembler was you used?? It's free??? :lol:
Yes it's free, it's called MPASM and is installed along with MPLAB - you may need to look in the MPLAB directory for it - it's MPASMWIN.EXE.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 14th October 2004, 07:12 AM   (permalink)
Default

Quote:
Originally Posted by Nigel Goodwin
Yes it's free, it's called MPASM and is installed along with MPLAB - you may need to look in the MPLAB directory for it - it's MPASMWIN.EXE.

Thanks nigel, i was solve my problem.. the 'atferrari' was give some tip.. I was download your zip file for .asm and also the hardware. But the stepper motor tutorial is not there :!: ... TQ :lol:
__________________
The world without engineer is the world without control!
amady is offline  
Old 14th October 2004, 09:02 AM   (permalink)
Default

Quote:
Originally Posted by amady
Thanks nigel, i was solve my problem.. the 'atferrari' was give some tip.. I was download your zip file for .asm and also the hardware. But the stepper motor tutorial is not there :!: ... TQ :lol:
No, I haven't written it yet - so much to do, so little time :cry:
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 14th October 2004, 09:44 AM   (permalink)
Default

Quote:
No, I haven't written it yet - so much to do, so little time
OK... just to ask.. :lol:
__________________
The world without engineer is the world without control!
amady is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 07:50 AM.


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

eXTReMe Tracker