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