On Fri, Aug 25, 2006 at 12:21:38AM -0700, James Mullins wrote: > > Hi I'm new to the world of PIC's so sorry if this realy dumb question. No need to apologize. Welcome aboard. > Currently I'am trying to familarise my self with PIC programming by working > my way through a book I found at the libary. Which book is that? > I'm atempting to convert and > assemble code originaly designed for a PIC16F84 to something i can use with > a PIC16F88 using MPLAB. A warning. A 16F84 program may not be your best starting point. As I point out in my 16F88/16F84 comparison page: http://www.finitesite.com/d3jsys/16F88.html The 16F88 has a ton of hardware support, ADC, capture/compare, PWM, USART, and the like. The 16F84 has virtually no periperal support. So other than the blinking LED application, the 16F84 will have to use software to emulate those features. Take a look at Nigel Goodwin's PIC tutorial series, which uses a 16F628 and a 16F876, for a more up to date look: http://www.winpicprog.co.uk/pic_tutorial.htm > What i've done is taken the code from the book and > placed it under main in the MPLAB 16F88 template file. Below is the code I'm > trying to build within MPLAB and the following output. > > http://www.nabble.com/user-files/235749/f88tempo.asm f88tempo.asm Close to the typical light an LED program. > Clean: Deleting intermediary and output files. > Clean: Deleted file "C:\pic\code\prog2\f88tempo.o". > Clean: Deleted file "C:\pic\code\prog2\f88tempo.ERR". > Clean: Deleted file "f88tempo.lst". > Clean: Deleted file "C:\pic\code\prog2\prog2mplab.mcs". > Clean: Done. > Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p16F88 > "f88tempo.asm" /l"f88tempo.lst" /e"f88tempo.err" /o"f88tempo.o" /w2 > Executing: "C:\Program Files\Microchip\MPASM Suite\MPLink.exe" > "C:\pic\code\prog2\16F88.lkr" "C:\pic\code\prog2\f88tempo.o" > /o"prog2mplab.cof" /M"prog2mplab.map" > MPLINK 4.04, Linker > Copyright (c) 2006 Microchip Technology Inc. > Error - section 'RESET_VECTOR' can not fit the absolute section. Section > 'RESET_VECTOR' start=0x00000000, length=0x00000002 > Errors : 1 > > BUILD FAILED: Tue Aug 22 11:17:25 2006 It's something about how your linker sections are layed out. Could you post the 16F88.lkr file? BAJ -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist