A discussion group for the PICMicro microcontroller. Also called the Microchip PIC, this list is dedicated to the use and abuse of this fine, simple, microcontroller. Close to topic posts are welcome, ie. general electronics.
So far in May, you have voted 0 times ou of a total of 22 votes by the community.
Please help us clean the archives from unuseful discussion threads by using the voting system! Details here.
Is this thread worth a thumbs up?
|
Dear Friend, I am new to PIC Micro and I have selected 16F84 to start my testing. I have created an ASM program now how do I convert in to HEX file to program in to 16F84. My program using port A and A1(2nd ping)and I try to turned on and off LED. Here is my program and please advice me any thing to be added in to program. ----------------- ;Author Ashan Abeysekara ;Project Using PICMicro 16F84 to set PortA as out put and selective output and terned LED ON & OFF STATSU equ 0x03h TRISA equ 0x85h PORTA equ 0x05h COUNT1 equ 0x08h COUNT2 equ 0x09h bsf STATUS,5 ;switch to bank1 movlw 0x00h ;set port A as out put movwf TRISA ;put TRISA reg a out put bcf STATUS,5 ;returned to bank 0 ;Tuened ON LED STRAT movlw 0x02h movwf PORTA ;Delay LOOP1 decfsz COUNT1 goto LOOP1 decfsz COUNT2 goto LOOP1 ;Tuened OFF LED movlw 0x00h movwf PORTA ;Delay LOOP2 decfsz COUNT1 goto LOOP2 decfsz COUNT2 goto LOOP2 goto STRAT end ===== Thanks & Best Regards, Ashan Abeysekara (M) 65 90094105 __________________________________ |
|
|
|
try to download Micrcochip MPLAB program at www.microchip.com...with this
program, you will be able to convert your working .asm file into .hex --------------------- Emmanuel A. Gonzalez IEEE Student Member >From: Ashan Abeysekara <> >Reply-To: >To: >Subject: [piclist] How to convert .ASM file HEX need help...!! >Date: Wed, 14 Jan 2004 00:30:26 -0800 (PST) >MIME-Version: 1.0 >X-Sender: >Received: from engine.ieee.org ([140.98.193.23]) by mc5-f38.hotmail.com >with Microsoft SMTPSVC(5.0.2195.6824); Wed, 14 Jan 2004 04:45:58 -0800 >Received: from hormel3.ieee.org (gemini4.ieee.org [140.98.193.189])by >engine.ieee.org (Switch-3.1.2/Switch-3.1.2) with ESMTP id i0ECgFVk022126for ><>; Wed, 14 Jan 2004 07:42:15 -0500 (EST) >Received: from n20.grp.scd.yahoo.com (n20.grp.scd.yahoo.com >[66.218.66.76])by hormel3.ieee.org (Switch-3.1.2/Switch-3.1.0) with SMTP id >i0ECjvTR006025for <>; Wed, 14 Jan 2004 07:45:57 -0500 >(EST) >Received: from [66.218.66.97] by n20.grp.scd.yahoo.com with NNFMP; 14 Jan >2004 12:45:56 -0000 >Received: (qmail 24540 invoked from network); 14 Jan 2004 12:45:53 -0000 >Received: from unknown (66.218.66.216) by m14.grp.scd.yahoo.com with QMQP; >14 Jan 2004 12:45:53 -0000 >Received: from unknown (HELO n26.grp.scd.yahoo.com) (66.218.66.82) by >mta1.grp.scd.yahoo.com with SMTP; 14 Jan 2004 12:45:53 -0000 >Received: from [66.218.67.131] by n26.grp.scd.yahoo.com with NNFMP; 14 Jan >2004 12:45:53 -0000 >Received: (qmail 55114 invoked from network); 14 Jan 2004 08:30:26 -0000 >Received: from unknown (66.218.66.216) by m10.grp.scd.yahoo.com with QMQP; >14 Jan 2004 08:30:26 -0000 >Received: from unknown (HELO web14601.mail.yahoo.com) (216.136.224.79) by >mta1.grp.scd.yahoo.com with SMTP; 14 Jan 2004 08:30:26 -0000 >Received: from [203.127.138.85] by web14601.mail.yahoo.com via HTTP; Wed, >14 Jan 2004 00:30:26 PST >X-Message-Info: JGTYoYF78jGYUWNIdVSf66k2LjJiSDyF >X-eGroups-Return: > >X-eGroups-Return: >X-Apparently-To: >Message-ID: <> >X-eGroups-Remote-IP: 216.136.224.79 >X-Yahoo-Profile: ashan_abeysekara >X-eGroups-Approved-By: kjztech <> via web; 14 Jan 2004 >12:45:51 -0000 >X-eGroups-Remote-IP: 66.218.66.82 >Mailing-List: list ; contact > >Delivered-To: mailing list >Precedence: bulk >List-Unsubscribe: <mailto:> >X-UCE-Filter-Settings: emmanuel_g redirected to 90_OPT_OUT >X-Scanned-By: IEEE UCE Filtering Service >Return-Path: > >X-OriginalArrivalTime: 14 Jan 2004 12:45:58.0741 (UTC) >FILETIME=[5BDC1850:01C3DA9C] > >Dear Friend, > >I am new to PIC Micro and I have selected 16F84 to >start my testing. I have created an ASM program now >how do I convert in to HEX file to program in to >16F84. > >My program using port A and A1(2nd ping)and I try to >turned on and off LED. > >Here is my program and please advice me any thing to >be added in to program. > >----------------- >;Author Ashan Abeysekara >;Project Using PICMicro 16F84 to set PortA as out put >and selective output and terned LED ON & OFF > >STATSU equ 0x03h >TRISA equ 0x85h >PORTA equ 0x05h >COUNT1 equ 0x08h >COUNT2 equ 0x09h > >bsf STATUS,5 ;switch to bank1 >movlw 0x00h ;set port A as out put >movwf TRISA ;put TRISA reg a out put >bcf STATUS,5 ;returned to bank 0 > >;Tuened ON LED > >STRAT movlw 0x02h > movwf PORTA >;Delay > >LOOP1 decfsz COUNT1 > goto LOOP1 > decfsz COUNT2 > goto LOOP1 > >;Tuened OFF LED > > movlw 0x00h > movwf PORTA > >;Delay >LOOP2 decfsz COUNT1 > goto LOOP2 > decfsz COUNT2 > goto LOOP2 > goto STRAT > > end >===== > >Thanks & Best Regards, > >Ashan Abeysekara >(M) 65 90094105 >__________________________________ >to unsubscribe, go to http://www.yahoogroups.com and follow the >instructions >> _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?pagežatures/virus |