Go to Post CD threads are supposed to be about something? - Tim Baird [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 31-08-2005, 22:34
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
16F84 HELP!!!

i have a 16F84 assembled in a programming circuit but idk if the circuit will actually work cause i got it off the net and i cant figure out how to downlaod the code from my compiler to the PIC
  #2   Spotlight this post!  
Unread 01-09-2005, 00:00
fowlerm's Avatar
fowlerm fowlerm is offline
Bringing .NET to Robots
AKA: Matthew Fowler
FRC #0312 (Heatwave); FRC #1369 (Minotaur)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2001
Location: St. Petersburg, FL, USA
Posts: 78
fowlerm has a spectacular aura aboutfowlerm has a spectacular aura aboutfowlerm has a spectacular aura about
Re: 16F84 HELP!!!

That's not a whole lot of info to go on. Could you provide a link to the website you got this from, or a schematic of the programming circuit.
  #3   Spotlight this post!  
Unread 01-09-2005, 18:27
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
Re: 16F84 HELP!!!

http://www.josepino.com/3/
  #4   Spotlight this post!  
Unread 01-09-2005, 20:47
fowlerm's Avatar
fowlerm fowlerm is offline
Bringing .NET to Robots
AKA: Matthew Fowler
FRC #0312 (Heatwave); FRC #1369 (Minotaur)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2001
Location: St. Petersburg, FL, USA
Posts: 78
fowlerm has a spectacular aura aboutfowlerm has a spectacular aura aboutfowlerm has a spectacular aura about
Re: 16F84 HELP!!!

That programming circuit requires you to use an application called IC-Prog. Once you have the hex file from whatever development tools you are using you would use IC-Prog to flash the PIC.
  #5   Spotlight this post!  
Unread 01-09-2005, 20:57
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
Re: 16F84 HELP!!!

what program can I use to get the hex file?

do you know of any circuts i can use that you know will work?

or any other applications i can use?

i got the .ASM file but not i have no way of getting the .HEX file

Last edited by John Gutmann : 01-09-2005 at 21:31.
  #6   Spotlight this post!  
Unread 01-09-2005, 21:58
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: 16F84 HELP!!!

Calm down...

You make a .hex file every time you program the IFI controller. The linker actually creates the .hex from object code (.o files).

.asm files are either source code in assembler or a compiler generated intermediate file from a higher level language like C.

If you are not generating .hex files, either you have the integrated environment set up wrong or the linker had an error during its processing.

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #7   Spotlight this post!  
Unread 01-09-2005, 23:15
fowlerm's Avatar
fowlerm fowlerm is offline
Bringing .NET to Robots
AKA: Matthew Fowler
FRC #0312 (Heatwave); FRC #1369 (Minotaur)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2001
Location: St. Petersburg, FL, USA
Posts: 78
fowlerm has a spectacular aura aboutfowlerm has a spectacular aura aboutfowlerm has a spectacular aura about
Re: 16F84 HELP!!!

Quote:
Originally Posted by sparksandtabs
i got the .ASM file but not i have no way of getting the .HEX file
First off - do you have Microchip MPLAB installed?

If you don't then download and install it from here.

If so, then the simplest way to do this (assuming your code is only one assembly file) is to do the following:

1) Open the assembly source file in MPLAB
2) On the MPLAB menubar choose Configure->Select Device...
3) In the dialog that comes up choose the PIC16F84 or PIC16F84A depending upon what chip you have.
4) On the MPLAB menubar choose Project->Quickbuild

MPLAB will launch the assembler (MPASM) and will build a hex file in the same directory as your assembly source file. Then you can use IC-Prog to flash the PIC with your newly created hex file.
  #8   Spotlight this post!  
Unread 02-09-2005, 12:32
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
Re: 16F84 HELP!!!

i am having problems using IC-PROG because everytime i go to flash the PIC it freezes, it comes up with an error message thats says

"if you were in the middle of something, your information might be lost"

then IC-PROG just freezes

and yes i have MPLAB installed

also i need a way to get a .ASM file because they way i thought would work didn't

Last edited by John Gutmann : 02-09-2005 at 12:59.
  #9   Spotlight this post!  
Unread 02-09-2005, 14:50
fowlerm's Avatar
fowlerm fowlerm is offline
Bringing .NET to Robots
AKA: Matthew Fowler
FRC #0312 (Heatwave); FRC #1369 (Minotaur)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2001
Location: St. Petersburg, FL, USA
Posts: 78
fowlerm has a spectacular aura aboutfowlerm has a spectacular aura aboutfowlerm has a spectacular aura about
Re: 16F84 HELP!!!

Quote:
Originally Posted by sparksandtabs
also i need a way to get a .ASM file because they way i thought would work didn't
I'm not exactly sure what you mean by this. Correct me if I'm wrong, but from what I understood from your other posts was that you had written the code in assembly.

If this is not the case, how were you going to get the assembly file?

If you could tell me exactly what your development setup is, it would help alot. Like what your MPLAB version is and what compiler you are using (if any).
  #10   Spotlight this post!  
Unread 02-09-2005, 17:28
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
Re: 16F84 HELP!!!

i wrote the code in c but i need to convert it to assembly, and i am just using mplabs and ic-prog
  #11   Spotlight this post!  
Unread 02-09-2005, 17:39
BrianBSL BrianBSL is offline
Registered User
FRC #0190
 
Join Date: Sep 2004
Rookie Year: 2000
Location: Worcester, MA
Posts: 251
BrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud ofBrianBSL has much to be proud of
Re: 16F84 HELP!!!

Quote:
Originally Posted by sparksandtabs
i wrote the code in c but i need to convert it to assembly, and i am just using mplabs and ic-prog
You can't do that with a 16F84 without using a 3rd party compilier. We told you that in another thread. The C18 compiler does not compile for 16F's, only 17's and 18's. You have to write the code in assembly by hand or buy a 3rd party compilier to use it with a 16F84, as you were told in another thread.
  #12   Spotlight this post!  
Unread 02-09-2005, 18:08
fowlerm's Avatar
fowlerm fowlerm is offline
Bringing .NET to Robots
AKA: Matthew Fowler
FRC #0312 (Heatwave); FRC #1369 (Minotaur)
Team Role: Engineer
 
Join Date: Apr 2005
Rookie Year: 2001
Location: St. Petersburg, FL, USA
Posts: 78
fowlerm has a spectacular aura aboutfowlerm has a spectacular aura aboutfowlerm has a spectacular aura about
Re: 16F84 HELP!!!

HI-TECH Software has a free compiler called PICC Lite that targets PICs commonly used by hobbyists, including the PIC16F84(A). You have to register with HI-TECH, but the compiler is free. The compiler integrates with MPLAB, and is very easy to get up and running.
  #13   Spotlight this post!  
Unread 03-09-2005, 18:14
John Gutmann John Gutmann is offline
I'm right here
AKA: sparksandtabs
FRC #0340 (GRR)
Team Role: Mechanical
 
Join Date: Feb 2005
Rookie Year: 2004
Location: rochester
Posts: 804
John Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant futureJohn Gutmann has a brilliant future
Send a message via AIM to John Gutmann Send a message via MSN to John Gutmann Send a message via Yahoo to John Gutmann
Re: 16F84 HELP!!!

Quote:
Originally Posted by BrianBSL
You can't do that with a 16F84 without using a 3rd party compilier. We told you that in another thread. The C18 compiler does not compile for 16F's, only 17's and 18's. You have to write the code in assembly by hand or buy a 3rd party compilier to use it with a 16F84, as you were told in another thread.
i WAS TRYING to use a 3rd party compiler to assemble it but it didnt work, that is why i asked if anybody knew how i cud get it from c to assembly
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:33.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi