MPASM 2.15 e pic16f84a

Ho iniziato da poco a giocare con i PIC e gia' incontro le prime cose strane. Prima cosa nel Mpasm 2.15 non è presente il pic16f84a ma solo il 16f84. Ci sono versioni successive del compilatore? Seguendo Tanzilli ho scaricato sia il p16f84.inc che il file asm21500.zip. Compilando il programma LED.ASM su un Pc con W2000, a parte le segnalazioni riportate sotto il compilatore crea il file hex.

MPASM 02.15 Released LED.ASM 1-31-2006 8:48:57 PAGE 1

LOC OBJECT CODE LINE SOURCE TEXT VALUE

00001 ;************************************************** 00002 ; Pic by example 00003 ; LED.ASM 00004 ; 00005 ; (c) 2004, Sergio Tanzilli 00006 ;
formatting link
00007 ;************************************************** 00008 Warning[215]: Processor superceded by command line. Verify processor symbol. 00009 PROCESSOR 16F84A 00010 RADIX DEC 00011 INCLUDE "P16F84A.INC" 00001 LIST 00002 ; P16F84A.INC Standard Header File, Version 2.00 Microchip Technology, Inc. Message[301]: MESSAGE: (Processor-header file mismatch. Verify selected processor.)

Su un altro Pc con W98SE invece non riesco a compilare. Segue inizio e fine del file LST.

MPASM 02.15 Released LED.ASM 1-30-2006 20:16:58 PAGE 1

LOC OBJECT CODE LINE SOURCE TEXT VALUE

00001 ;************************************************** 00002 ; Pic by example 00003 ; LED.ASM 00004 ; 00005 ; (c) 2004, Sergio Tanzilli 00006 ;
formatting link
00007 ;************************************************** 00008 Error[132] : Unknown processor (16F84A) 00009 PROCESSOR 16F84A 00010 RADIX DEC 00011 INCLUDE "P16F84A.INC" 00001 LIST 00002 ; P16F84A.INC Standard Header File, Version 2.00 Microchip Technology, Inc. Message[301]: MESSAGE: (Processor-header file mismatch. Verify selected processor.) 00134 LIST 00012 ERRORLEVEL -302 00013 00014 ;Setup of PIC configuration flags 00015 00016 ;XT oscillator 00017 ;Disable watch dog timer 00018 ;Enable power up timer 00019 ;Disable code protect 00020 Error[131] : Processor type is undefined 00021 __CONFIG 0x3FF1 00022 00000000 00023 LED EQU 0 00024 Error[147] : Directive not allowed when generating an object file (ORG) 00025 ORG 0x0C 00026 Error[150] : Labels must be defined in a code or data section when making an object file 0000 00027 Count RES 2 00028 00029 ;Reset Vector 00030 ;Start point at CPU reset 00031 Error[147] : Directive not allowed when generating an object file (ORG) 00032 ORG 0x00 00033 Warning[207]: Found label after column 1. (bsf) Error[122] : Illegal opcode (STATUS) 00034 bsf STATUS,RP0 00035 Warning[207]: Found label after column 1. (movlw) Error[122] : Illegal opcode (B) 00036 movlw B'00011111' Warning[207]: Found label after column 1. (movwf) Error[122] : Illegal opcode (TRISA) 00037 movwf TRISA 00038

......................CUT

Errors : 31 Warnings : 21 reported, 0 suppressed Messages : 1 reported, 0 suppressed

C'e' qualche problema di compatibilita' tra MPASM e W98?

Grazie

-------------------------------- Inviato via

formatting link

Reply to
Elettrotecnico
Loading thread data ...

"Elettrotecnico" ha scritto nel messaggio news: snipped-for-privacy@usenet.libero.it...

segnalazioni

Basta scaricarti dal sito della microchip l'MPLAB che è la suite di sviluppo tra l'altro gratuita che mette a disposizione la casa, all'interno ci trovi l'ultimo MPASMWIN che mi sembra sia il 3.qualcosa lì trovi tutti, ma proprio tutti i controllori microchip e non dovresti avere alcun problema sia con win2000 che con win98!!!

P.S.: Se l'installer non ti crea un collegamento diretto a MPASMWIN vai nella cartella di installazione e c'è una sottocartella interamente dedicata al programma!

Reply to
Sinkha

Il giorno Wed, 01 Feb 2006 08:33:31 GMT, snipped-for-privacy@libero.it (Elettrotecnico) ha scritto:

La versione che ho io è la 5.01, integrata nel MPLAB 7.30. Ti conviene scaricare l'ultima versione di MPLAB dal sito della Microchip. E' un file di grandi dimensioni (30 MB e passa), ma almeno lavori con un ambiente aggiornato.

Reply to
Luigi C.

sviluppo

trovi

proprio

dedicata

Scaricata, provata ieri sera e funziona.

Funziona anche solo il MPASMWIN senza tutto l'ambiente. Grazie a tutti

-------------------------------- Inviato via

formatting link

Reply to
Elettrotecnico

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.