How can I burn a PIC?
Instructions from Lars Lundgren
Locomotiv decoder for iron core motor:
Definition file for RKDCC and TMWDCC 25v10.asm25v10.hex and CV's Calibration routine changed, information about OSCCAL in pdf file rong!
Historical: 25v9.asm 24.02.2001 25v9.hex and CV's GPIO definition on top for easy change in/output pins 25v8.asm 14.06.2000 25v8.hex and CV's extra progbit 25v7.asm 20.02.2000 25v7.hex and CV's optimized version, never used code deleted 25v6.asm 29.11.1999 25v6.hex and CV's optimized for Intellibox and new cv2/cv5&cv6 routine 25v5.asm 10.09.1999 25v5.hex and CV's included: "on the main" programming 25v4.asm 15.08.1999 25v4.hex and CV's flickering firebox with automatic open/close lit directed from speed 25v3.asm 18.07.1999 25v3.hex and CV's lower 25us eliminated for better fault detection, tristate modus, calibrating at "1" 25v2.asm 07.05.1999 running at FREMO meeting in Braunschweig - wrong data packets 25v1.asm 30.04.1999 running at FREMO meeting in Ennigerloh motor509.asm fixed adresses, not programmable
Accessory decoder: accdec.asmaccdec.hex
Every pin direct programmable with 1k resistor from output pin to +5V
Files for Eagle layout software: accdec.zip board and schematic
accdec, SMD with FDC6561AN dual N-channel mosfet
accdec_uln SMD with ULN2003A driver
accdec_dil, DIL with ULN2003A driver
Locomotiv decoder for core less motor: motor_28.asmmotor_28.hex PWM solved version, cv19 deactivated (in development mode) pwm.inc include file pwm.xls gives a better impression of the idea
Helpful tools: dccin.xls to build DCC-stimulus files speed.xls two speed curves sum up to the stepper (marked yellow) linspeed.xls you may use one speed curve for iron core motor