linistepper-c

所属分类:编译器/解释器
开发工具:Visual C++
文件大小:103KB
下载次数:5
上传日期:2011-04-30 00:27:19
上 传 者basil_osrof
说明:  C++ logic stepper controller

文件列表:
linistepper-c (0, 2011-04-11)
linistepper-c\16f628a.lkr (1662, 2011-01-21)
linistepper-c\compiled (0, 2011-04-11)
linistepper-c\compiled\eepromtbl.lst (21133, 2011-01-24)
linistepper-c\compiled\eepromtbl.o (2511, 2011-01-24)
linistepper-c\compiled\linistepper-opt.cod (11776, 2011-01-24)
linistepper-c\compiled\linistepper-opt.hex (3672, 2011-01-24)
linistepper-c\compiled\linistepper-opt.lst (60377, 2011-01-24)
linistepper-c\compiled\linistepper-opt.map (16199, 2011-01-24)
linistepper-c\compiled\linistepper-opt.o (11859, 2011-01-24)
linistepper-c\compiled\linistepper-quadrature.asm (16358, 2011-01-24)
linistepper-c\compiled\linistepper-quadrature.cod (12288, 2011-01-24)
linistepper-c\compiled\linistepper-quadrature.hex (4281, 2011-01-24)
linistepper-c\compiled\linistepper-quadrature.lst (66803, 2011-01-24)
linistepper-c\compiled\linistepper-quadrature.map (17244, 2011-01-24)
linistepper-c\compiled\linistepper-quadrature.o (14559, 2011-01-24)
linistepper-c\compiled\linistepper-stepdir.asm (15799, 2011-01-24)
linistepper-c\compiled\linistepper-stepdir.cod (12288, 2011-01-24)
linistepper-c\compiled\linistepper-stepdir.hex (4134, 2011-01-24)
linistepper-c\compiled\linistepper-stepdir.lst (65120, 2011-01-24)
linistepper-c\compiled\linistepper-stepdir.map (16952, 2011-01-24)
linistepper-c\compiled\linistepper-stepdir.o (13861, 2011-01-24)
linistepper-c\compiled\step.tmp.hex (4040, 2011-01-24)
linistepper-c\compiled\tmp-opt.hex (3588, 2011-01-24)
linistepper-c\compiled\tmp.hex (4196, 2011-01-24)
linistepper-c\eepromtbl.asm (7767, 2011-01-24)
linistepper-c\linistepper-opt.asm (14717, 2011-01-22)
linistepper-c\linistepper-quadrature.c (14472, 2011-01-24)
linistepper-c\linistepper-stepdir.c (14171, 2011-01-24)
linistepper-c\Makefile (1989, 2011-01-24)

* Linistepper in C * * Copyright (C) 2011 Hazimin Fauzi * Copyright (C) 2011 Roman Black * * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the “Software”), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 16f628a.lkr - The linker script. This is where you define address mapping eepromtbl.asm - Table for high/low power and stepping. Everything is stored in onchip EEPROM linistepper-quadrature.c - Code for linistepper in C for quadrature input (Phase-A and Phase-B) linistepper-stepdir.c - Code for linistepper in C for STEP/DIR input (untested, use quadrature if your software support, eg: EMC2) Makefile - The makefile target: all = compile everything hex = compile linistepper quadrature, step = compile linistepper step/dir opt = compile the manually optimized assembly (quadrature only) flash = flash pic with pk2cmd (quadrature only) # This file is included just to show on how to optimize further code generated from SDCC linistepper-opt.asm - Compiled code from SDCC with unnecessary BANKSEL removed The rest of the file is compiler generated. Just in case you don't have SDCC compiler. SDCC can be downloaded from http://sdcc.sourceforge.net/ You also need gputils (http://gputils.sourceforge.net/) to compile the generated assembly code. To flash pic, you'll need pickit or other flasher software. Basically: C |--sdcc--> ASM |--gpasm--> object.o |--gplinker--> object.hex To change EMC2 from step/dir to quadrature: Change line loadrt stepgen step_type=0,0,0 to: loadrt stepgen step_type=2,2,2 Then, change stepgen.N.step with stepgen.N.phase-A and stepgen.N.dir with stepgen.N.phase-B

近期下载者

相关文件


收藏者