Are there any PMSM examples for the F283x series of controllers. I know there are some that exist for the F2808 and F2812.
Thanks.
Haven't seen anything on this topic specific to this device .. may be something coming up soon. In the mean time 280xx examples should work unless you are trying floating point option. Please check the memory map and appropriate header files and you should be almost there........
Thanks. The F28335 has floating point capability. I will have to change the headers.I think the examples should work if I change the MATH_TYPE flag from IQ_MATH to FLOAT_MATH. Could anyone verify this.
We have plans to release Delfino Floating Point versions of several DMC Systems next in Q2 next year to run on our new High Voltage ACI/PMSM/BLDC board that is about to be released.
Also, for Piccolo and Delfino we are updating all of our DMC Libraries / Systems to use the macro optimizations as described here
http://focus.ti.com/lit/an/spraak2/spraak2.pdf
to increase performance.
I've also attached an example of a migration one of our support guys did on the OLD (non-macro) version of the F280x ACI3_3 System to Delfino F2833x. If you are in a hurry you can use this example to change any of the others.
change the .txt extension to .zip.
Thanks Chris. The file has been deleted. Itried changing from txt to zip but get the following error.
"Microsoft Forefront Security for Exchange Server removed a file since it was found to match a filter."
strange, let's see if a .zip goes through.
make sure you right click and save as....
I can download it...but it's corrupted.
Argh. Let me get a new version, might be later today.
Third Time's the Charm?
I talked to the apps guy for this, and the system isn't verified. In fact there are still some references to 100 MHz throughout that would need to be changed (clocking issues). We didn't want to spend much time on it as we're modifying everything for the new optimizations and new hardware.
Thanks. It worked this time. Hopefully a diff will help me make out the changes.
Hi,
Does anybody have a more update version of a motor project for the F28335 (such as sensored/sensorless FOC)? I took a look at the attachment, and "not verified" is kind of an understatement. The project does not have the floating point compiler option turned on, so it's still using the IQ libraries.
If anyone has any news on this, I would appreciate knowing.
Thanks,
Tim
If you need to use the Floating point hardware in the chip, you will need to use the f32 compiler switch which is --float_support=fpu32"
Also, the IQ library is a big bunch of macros. You can force the IQ library to use the floating point macros by using #define MATH_TYPE FLOAT_MATH
Remember that whenever you need to write to hardware registers, you will need to multiply by 32768. You can find more detail in section 3.10 in the IQmath_v15a doc.
Thanks for responding to my post.
I have already done the points you mentioned. In addition, the fDMC_ml.L28 lib that is included from TI was built without the fpu32 option.
Do you have a working project with the fpu32 option? I am trying to do the sensorless FOC project, but can't get the pid1_iq.Fdb to follow IqRef. Not quite sure what's wrong, but suspect it could be in the lib files.
Hi Tim,
There are three modules iq, id and speed which use the PID module. We have used the module here and it works ok. Make sure id is getting followed as it uses the same PID module.
Did you modify pwm.MfuncC1 to:
pwm.MfuncC1 = (int16)(32768 * svgen_dq1.Ta); etc
Also, the clarke currents need to be modified to:
clarke1.As = ((float)(adc1.Ch5Out)) /32768; --> Adc channel depends on the one you are using.
I'm sorry I'm unable to submit any files, but I can guide you on the work I've done.
Did you subtract the offset in the current by:
offset / 65536