SECTION 2.7
Using User-Defined SPI
The MForce can be configured and operated through the
An example of when this might be used is in cases where the machine design requires parameter settings to be changed
SPI Timing Notes
1.MSb (Most Significant bit) first and MSB (Most Significant Byte) first.
2.8 bit bytes.
3.25 kHz SPI Clock (SCK).
4.Data In (MOSI) on rising clock.
5.Data Out (MISO) on falling clock.
Figure 2.7.1: SPI Timing
Check Sum Calculation for SPI
The values in the example below are
MRC=25%, MHC=5%, MSEL=256, HCDT=500 mSec, WARNTEMP=80.
The Check Sum is calculated as follows:
(Hex) 80+19+05+00+00+01+F4+50 |
| |
Sum = E3 | 1110 0011 |
|
1’s complement = 1C | 0001 1100 | (Invert) |
2’s complement = 1D | 0001 1101 | (Add 1) |
Send the check sum value of 1D
Note: 80 is always the first command on a write.
Note: Once a write is performed, a read needs to be performed to see if there is a fault. The fault is the last byte of the read.
38 | Microstepping MForce PowerDrive Manual Revision R040507 |