Well if you replace all the labels 'config' with con_fig it compiles for a 628 in mp lab but I haven't looked at the functional differences between the parts shouldn't be too bad Steve -----Original Message----- From: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] On Behalf Of pic@harry-arends.nl Sent: 02 April 2007 11:05 To: 'Microcontroller discussion list - Public.' Subject: RE: [PIC] Converting 16F84 DCC decoder to 16F628 (or 16F648) Hi Jan, Have a look at http://www.merg.info/kits.htm . They have more uptodate information on building your own DCC decoder. Even kits are available and ASM files as well using the 16F628. Regards Harry (MERG member) > -----Oorspronkelijk bericht----- > Van: piclist-bounces@mit.edu [mailto:piclist-bounces@mit.edu] > Namens Jan van Dijk > Verzonden: maandag 2 april 2007 11:37 > Aan: piclist@mit.edu > Onderwerp: [PIC] Converting 16F84 DCC decoder to 16F628 (or 16F648) > > Hello all, > > I'm currently in the process of constructing a dcc decoder > for controlling a LGB train. I've found the scheme for a dcc > decoder at > http://technology.niagarac.on.ca/staff/mcsele/dcc.htm It's > based upon a > 16F84 and the assembly code is also available: > http://technology.niagarac.on.ca/staff/mcsele/decoder.asm > Since the 16F84 is 'obsolete' I was planning on using an > 16F628 for the decoder... Would it work if I just re-compiled > the given assembly source to the 16F628 chip? Any special > things I should look in to when converting the program? > > Also, the original scheme is based on a 8MHz crystal. I'm > planning on using a 20 MHz one... if I changed the rtcc > divider from 32 to 80, would that do the trick? > > Of course, the best way to find out, it to actually build / > programm the chip, but I don't have all the parts yet, and > thought I would inquire so I might save me some troubles :) > > Best regards and thanks in advance, > > Jan > -- > http://www.piclist.com PIC/SX FAQ & list archive View/change > your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > > > -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist