X-CUBE-SPN1-20150128 example source code for one motor compiled under mbed. Tested OK on Nucleo F401. l6474.cpp is modified from original with defines in l6474_target_config.h to select the original behaviour (motor de-energised when halted), or new mode to continue powering with a (reduced) current in the coils (braking/position hold capability). On F401 avoid using mbed's InterruptIn on pins 10-15 (any port). Beware of other conflicts! L0 & F0 are included but untested.
Changes
Revision | Date | Who | Commit message |
---|---|---|---|
6:19c1b4a04c24 | 2015-10-13 | gregeric | Ensure bridge is disabled before resetting the L6474. |
5:615cacd7d036 | 2015-09-18 | gregeric | Fix other platform re main.h rename to ihm01a1.h |
4:8f6fbb88c753 | 2015-09-18 | gregeric | Fixed renaming of main.h to ihm01a1.h |
3:56c7051bfb17 | 2015-09-18 | gregeric | Updated mbed to latest revision |
2:d6f513e1313b | 2015-09-18 | gregeric | Added warnings re untested platforms. |
1:75a41f0c0586 | 2015-09-18 | gregeric | Moved & renamed main.h to ihm01a1.h |
0:b9444a40a999 | 2015-09-05 | gregeric | X-CUBE-SPN1-20150128 example source code for one motor compiled under mbed. Tested OK on Nucleo F401. On F401 avoid using mbed's InterruptIn on pins 10-15 (any port). Beware of other conflicts!; ; L0 & F0 are included but untested. |