gnupic: Configuration Bits


Previous by date: 27 Apr 2006 21:11:30 +0100 Re: [gnupic] Dodgy addresses in LST xref of COD files, Scott Dattalo
Next by date: 27 Apr 2006 21:11:30 +0100 Re: [gnupic] Dodgy addresses in LST xref of COD files, Scott Dattalo
Previous in thread:
Next in thread:

Subject: Configuration Bits
From: Luciano de Barros ####@####.####
Date: 27 Apr 2006 21:11:30 +0100
Message-Id: <20060427201127.73209.qmail@web52809.mail.yahoo.com>

Hi,
   
  I'm starting in SDCC with PIC14 and have problems with Configuration Bits (Fuzes) in PIC16F877. I try compile this sample code:
   
  #define __16f877
  #include"pic/pic16f877.h"
   
  typedef unsigned int word;
  word at 0x2007 __CONFIG = 0x3f72;
   
  unsigned char count;
   
  void main(void) {
      TRISA = 0;
      count = 0;
   
      while(1) { 
          PORTA = count;
          count ++;
      }
  }
   
  This code return error message:
   
  gpasm.exe -c  main.asm
main.asm:247:Warning [205] Found directive in column 1.
main.asm:247:Error [128] Missing argument(s).
   
  If comment de __CONFIG decalration the compilation is normally and .HEX file is generated.
   
  I using this with command to compiling:
   
  CC = sdcc.exe -S -V -mpic14 -p16F877
  ASM =gpasm.exe -c 
  LNK = gplink.exe -m -s
   
  OBJS = main.o
   
  $(PRJ)-$(UC).hex:    $(OBJS)
       $(LNK) -o $(PRJ).hex $(OBJS)
   
  .c.o:
       $(CC) $<
       $(ASM) $*.asm
   
  Best regards,
   
  Luciano de Barros
   
   

		
---------------------------------
 Yahoo! Search
 Imposto de Renda 2006: o prazo está acabando. Faça já a sua declaração no site da Receita Federal.

Previous by date: 27 Apr 2006 21:11:30 +0100 Re: [gnupic] Dodgy addresses in LST xref of COD files, Scott Dattalo
Next by date: 27 Apr 2006 21:11:30 +0100 Re: [gnupic] Dodgy addresses in LST xref of COD files, Scott Dattalo
Previous in thread:
Next in thread:


Powered by ezmlm-browse 0.20.