SPRUHJ0C April 2013 – October 2021 TMS320F28068M , TMS320F28069-Q1 , TMS320F28069M , TMS320F28069M-Q1
Table 7-3 lists the memory usage for each SpinTAC component. In SpinTAC Plan, there are a large number of configuration functions.
Component | Code (.text) (16-bit Words) | RAM (.ebss) (16-bit Words) |
---|---|---|
Velocity Control | 0x2F4 | 0x4C |
Velocity Move | 0x50D | 0x5C |
Velocity Plan (Minimum) | 0x680 | 0x4E |
Velocity Plan (Maximum) | 0x13BA | 0x4E |
Velocity Identify | 0x3A5 | 0x3C |
Position Converter | 0x20D | 0x4A |
Position Control | 0x41E | 0x62 |
Position Move | 0x141C | 0xCC |
Position Plan (Minimum) | 0x7EE | 0x60 |
Position Plan (Maximum) | 0x16AA | 0x60 |
Table 7-4 breaks down the maximum stack utilization of SpinTAC components when run individually. The stack consumption of InstaSPIN-FOC is included. To calculate the stack usage, the entire memory section where the stack is placed is filled with known values. The corresponding code was then run for a few minutes. The memory area where the stack was allocated was analyzed and the amount of used memory was calculated.
Configuration | Maximum Stack Used (16-bit Words) |
---|---|
Velocity Control | 0x0120 |
Velocity Move | 0x0120 |
Velocity Plan + Move + Control | 0x0120 |
Velocity Identify | 0x0120 |
Position Converter | 0x0120 |
Position Control | 0x0120 |
Position Move | 0x0120 |
Position Plan + Move + Control | 0x0120 |
Table 7-5 shows the allocated memory for the InstaSPIN-FOC and SpinTAC library.
Features | 2806xF | 2806xM | 2805xF | 2805xM | 2802xF |
---|---|---|---|---|---|
FAST | Yes | Yes | Yes | Yes | Yes |
SpinTAC | No | Yes | No | Yes | No |
Maximum Number of Motors that can be controlled | 2 | 2 | 2 | 2 | 1 |
Relocalable Controller Structure | No | No | Yes | Yes | Yes |
FAST Version | 1.6 | 1.6 | 1.7 | 1.7 | 1.7 |
Public Library needs to be added to project | No | No | No | No | Yes |
ROM Library [size, hex, words] | 4000 | 4000 | 3D27 | 3D27 | 2000 |
ROM Library Start [address, hex] | 3F 8000 | 3F 8000 | 3F 8808 | 3F 8808 | 3F C000 |
Library Required RAM [size, hex, words] | 800 | 800 | 800 | 800 | 200 |
Library Start RAM [address, hex] | 01 3800 | 01 3800 | 00 8000 | 00 8000 | 00 0600 |
For the F2806xF and F2806xM devices, InstaSPIN-FOC v1.6 and SpinTAC v2.2.6 is stored in the address range of 0x3F8000 to 0x3FBFF and the last part of L8-RAM is reserved for InstaSPIN variables, address range 0x013800 to 0x013FFF. Figure 7-2 shows the memory locations that have been assigned for InstaSPIN-FOC and SpinTAC.