Error 118 Mpasm
Visited Search Results View More Blog Recent Blog Posts View More PMs Unread PMs Inbox Send New PM View More Page Extras Menu Forum Themes Elegant Mobile Home » All Forums » [8-Bit Microcontrollers] » PIC Microcontrollers (PIC10F, PIC12F, PIC16F, PIC18F) » Error 118 using MPASM new version Mark Thread UnreadFlat Reading Mode❐ Error 118 using MPASM new version Page: 12 > Showing page 1 of 2 Author Post Essentials Only Full Version herve Starting Member Total Posts : 31 Reward points : 0 Joined: 2006/08/22 13:44:47Location: 0 Status: offline 2009/08/05 15:46:29 (permalink) 0 Error 118 using MPASM new version Hi, I am working with a PIC 16F877A. I had created a program which could be assembled and which worked perfectly. My PC failed and with my new PC I loaded the last version of MPASM from Microship site.I can not assembled my program anymore: a lot of error 118 are now indicated.I really do not understand [:@]. Is there anybody who could help me; it would be very nice. For information, here is the begining of my program: processor16F877A radixDEC include"P16F877A.INC" ERRORLEVEL-302 __CONFIG_CP_OFF & _DEBUG_OFF & _WRT_OFF & _CPD_OFF & _LVP_OFF & _BODEN_OFF & _PWRTE_ON & _WDT_OFF & _XT_OSC ;normalement c'est _WRT_ENABLE_OFF LCD_RSequ2;Register Select LCD_Eequ3;Enable LCD_DB4equ4;LCD data line DB4 LCD_DB5equ5;LCD data line DB5 LCD_DB6equ6;LCD data line DB6 LCD_DB7equ7;LCD data line DB7 ORG20H ;car c'est un 16F877a TmpLcdRegisterres2 msDelayCounterres2 huniteres1 hdizaineres1 minuniteres1 mindizaineres1 secuniteres1 secdizaineres1 varsecuniteres1 varsecdizaineres1 varminuniteres1 varmindizaineres1 varhuniteres1 secures1 surfinres1 ;paramètre qui passe de 0 à 1, lorsque les dizaines d'heures capares1 dechres 1 tensres 1 courres 1 dioderes1 tchargeres1 ORG00H bcfSTATUS,RP0 bcfSTATUS,RP1;Passer en bank 0 clrfPORTA clrfPORTB clrfPORTC clrfPORTD clrfPORTE bsfSTATUS,RP0;Passer en bank 1
LVP is not disabled Robert Rolf says: The default of the F87xx series [is] LVP (low voltage programming) ON! [You] must ensure that RB3 is pulled low, particularly at reset, or the part goes into programming mode. see 16F877/high voltage programming You can save memory with db vice dt for string literals on some chips. Walter Quitt found: ent1 dt "123" assembles to retlw 0x31 retlw 0x32 retlw 0x33 which uses more memory than necessary on processors that can directly access the memory string db A'1',A'2',A'3',0x00 assembles to 0x31,0x32,0x33,0x00 bytes in ascending http://www.microchip.com/forums/m439213.aspx memory. No useless retlw opcode bytes shoved between them as with dt. (see memory ) Watch out for the difference between equates and defines Q: Given the following code: buffer = 31 ; String buffer at end of memory. ASC_0 = '0' ; ASCII numbers: 30h thru 39h. Does the above assign the value to hex 31 to a variable http://www.piclist.com/techref/microchip/gotchas.htm called "buffer" and assign the value to hex 30 to a variable called "ASC_0" or does it set up a register called "buffer" at hex address 31 and set a register called "ASC_0" at hex address 30 ('0"). A: Dr. Imre Bartfai [root at PROF.PMMF.HU] says: Neither. It says purely the compiler: if you find the word 'buffer', replace it with '31'. It is completely irrelevant what do you intend thereafter. It may be as well a register naming act as well as naming a constant. I guess the 1st assignment would a register, and the 2nd one is a named constant. Note, that the difference is purely the question of the context. E. g. you can write movlw buffer movwf buffer The 1st statement loads the constant 31 to W, the 2nd one moves W into the register #31. Watch out for the difference between "=" and "equ" Q: Is "=" the same as "equ" A: Dr. Imre Bartfai [root at PROF.PMMF.HU] says: Almost. Theoretically, equated variables (they are in fact compiler variables, or - if you
Advanced Search Forum PICBASIC Community Discussion mel PIC BASIC Pro Error 118 over writing address 2007 ChatBox Quick Links View ChatBox Archive View http://www.picbasic.co.uk/forum/showthread.php?t=11964 ChatBox Full Search Find first unread message Loading... 11px 12px 14px 16px Status: Loading... + Reply to Thread Results 1 to 5 of 5 Thread: Error 118 over writing address 2007 Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode - 18th error 118 October 2009,14:40 #1 Scampy View Profile View Forum Posts View Articles Senior Member Join Date Oct 2009 Posts 494 Error 118 over writing address 2007 Hi guys, Long time since I posed here (so long I've forgotten all my original details so created a new account !) After a four year break I thought I would hook up my old EasyPIC5 board error 118 mpasm and have a go at programming PICs again. I've installed PBP 2.47 (which is Ok for my needs) and the latest version of MicroCode studio. I've also downloaded MPASM (tried 8.4 and the old version 7.5) but when I load up one of my old programs and try and compile it MPASM fails and I get the above error shown in MicroCode Studio. I've googled issues with running the programmer exe under Vista and have set it to run as administrator, given myself full security rights and taken off UAC in the user profile. using the automatic scans Microcode picks up both the PBP exe, the programmer exe and MPASM exe. Can anyone point me in the right direction... Cheers Malcolm (formally Malc-C) Reply With Quote - 18th October 2009,15:15 #2 Scampy View Profile View Forum Posts View Articles Senior Member Join Date Oct 2009 Posts 494 Show's it been long time I remember I had to edit the INC file... Remmed out the config settings and now works fine ! Reply With Quote - 18th October 2009,16:21 #3 Acetronics View Profi