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 22nd November 2007, 04:08 PM   (permalink)
Smile PIC16F84A - ASM to HEX

Hi guys , sorry I'm New for this. i have a problem i have written a program using Assembly just a simple one for PIC16F84A just to turn on and off a led. but the programmer i use only support *.hex files so can you guys can help me to convert *.asm file to *.hex File Please.

code :

STATUS equ 03h
TRISA equ 85h
PORTA equ 05h

bsf STATUS,5
movlw 00h
movwf TRISA
bcf STATUS,5

Start movlw 02h
movwf PORTA
movlw 00h
movwf PORTA
goto Start
Mihindu_gajaba is offline  
Old 22nd November 2007, 04:11 PM   (permalink)
Default

MPASM will assemble it, it's part of MPLAB and free.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Old 22nd November 2007, 04:17 PM   (permalink)
Default

Thanks thanks thanks alot
Mihindu_gajaba is offline  
Old 22nd November 2007, 05:30 PM   (permalink)
Default

You'll also need to add an

include <p16F84.inc>

and an

END (at the end)
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is online now  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
PIC16F877A TX data to PC via serial cable derrick826 Micro Controllers 21 8th October 2007 02:28 PM
2 PIC16F84A using only 1 Xtal..? AntRoFiZ Micro Controllers 5 15th May 2007 05:01 PM
Need help 3x4keypad to PIC16F84A microcontroller juan12345 Electronic Projects Design/Ideas/Reviews 2 4th August 2006 01:16 PM
Access to configuration word of PIC16f84a folarinv Micro Controllers 3 19th December 2005 08:43 PM
PIC16F84A INTERFACE WITH MSM6242BRS(PLS HELP ME) Jay Duluguin Micro Controllers 9 18th February 2004 05:20 PM



All times are GMT. The time now is 05:40 PM.


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

eXTReMe Tracker