Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Migrating code from 16F627 to 16F628A: Getting errors

Status
Not open for further replies.

cometravi

Newbie level 1
Joined
Apr 19, 2013
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,308
Hi,
This is about a stepper motor controller that is used to control two axes of a telescope. The OEM controller died and an old circuit which uses the 16F627 was available, which I built. However I couldnt get my hands on the 16F627 and instead got the 16F628A. Most of the functions dont work.

Here is the link to the circuit design and txt source code. The files are RAhalfdriveN and DecDrive.

**broken link removed**

The source code may need to be reassembled was my guess. So i tried that but am getting errors. I am using MPLAB IDE 8.90. I copied the txt file content onto MPLAB, saved as an .asm file, selected device as 16F628A, changed627 to 628A in the source code txt file i.e. list p=16f628a and #include <p16f627.inc>

Just got into this programming bit very recently and my knowledge is very limited here so could use all the pointers and help I can get.

Thanks for helping.

-------------------
----------------------------------------------------------------------
Release build of project `R:\Other Hobbies\Code\RAHDRIVEN.disposable_mcp' started.
Language tool versions: MPASMWIN.exe v5.49, mplink.exe v4.47, mplib.exe v4.47
Fri Apr 19 08:11:09 2013
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPASMWIN.exe" /q /p16F628A "RAHDRIVEN.asm" /l"RAHDRIVEN.lst" /e"RAHDRIVEN.err"
Message[310] R:\OTHER HOBBIES\CODE\RAHDRIVEN.ASM 67 : Superseding current maximum RAM and RAM map.
Error[149] R:\OTHER HOBBIES\CODE\RAHDRIVEN.ASM 136 : Directive only allowed when generating an object file
Error[149] R:\OTHER HOBBIES\CODE\RAHDRIVEN.ASM 141 : Directive only allowed when generating an object file
Error[118] R:\OTHER HOBBIES\CODE\RAHDRIVEN.ASM 148 : Overwriting previous address contents (0000)
Error[118] R:\OTHER HOBBIES\CODE\RAHDRIVEN.ASM 148 : Overwriting previous address contents (0000)
Message[302] R:\OTHER HOBBIES\CODE\RAHDRIVEN.ASM 159 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] R:\OTHER HOBBIES\CODE\RAHDRIVEN.ASM 163 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] R:\OTHER HOBBIES\CODE\RAHDRIVEN.ASM 166 : Register in operand not in bank 0. Ensure that bank bits are correct.
Halting build on first failure as requested.
----------------------------------------------------------------------
Release build of project `R:\Other Hobbies\Code\RAHDRIVEN.disposable_mcp' failed.
Language tool versions: MPASMWIN.exe v5.49, mplink.exe v4.47, mplib.exe v4.47
Fri Apr 19 08:11:10 2013
----------------------------------------------------------------------
BUILD FAILED
-------------------------------------

(Code is already available from the author on the weblink mentioned above so hoping its not an issue attaching it here)
 

Attachments

  • DECdrive.txt
    10.1 KB · Views: 37
  • RAhalfdriveN.txt
    11.3 KB · Views: 53

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top