2022-11-29 09:36 AM
2022-11-29 10:04 AM
Super vague, try to provide specific context
Which Board? Link to, Schematic or Name..
Which STM32 part?
What UART?
UART register bits on specific STM32, stuff that should be in the relevant Reference Manual for the part.
2022-11-29 11:11 AM
2022-11-29 11:12 AM
Hello,
I've asked the questions because the relavant documentation (see attached file @ pages 161 and followings) does not contain this Info.
I have two custom boards:
One motor Driver Based on STM32G431 and one display Driver Based on STM32G031.
I'm able to communicate using the protocol described in the attached document but some information is missing:
Register "FLAGS", Address 0x01 (Should contain all the Alarm Flags): no information about the meaning of Each Bit
register "STATUS", Address 0x02: Same problem as above.
More: Register "Torque Measured (Iq)" Address 0x1F: How can the Number Read from this register be converted to nm (NewtnMerter) units?
Thanks
Alfonso
2024-05-23 02:18 PM
Flags:
No faults 0x0000
FOC Duration 0x0001
Over Voltage 0x0002
Under Voltage 0x0004
Overheat 0x0008
Start up failure 0x0010
Speed Feedback 0x0020
Overcurrent 0x0040
Software error 0x0080
Status:
Idle 0x0
Idle alignment 0x1
Alignment 0x2
Idle Start 0x3
Start 0x4
Start Run 0x5
Run 0x6
Any Stop 0x7
Stop 0x8
Stop idle 0x9
Fault Now 0xA
Fault Over 0xB
/
V*A = nm/Sec