Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
User5327
Level 4
Level 4
Hi all,
How can I change Rounding mode for float data type?
Is it possible?

(I use XMC4500)

BR
Koumak
0 Likes
3 Replies
Prakash
Employee
Employee
Dear Koumak.

You may write to Rmode bitfield of FPDSCR register. This register is available in FPU_Type data structure defined in core_cm4.h.

Regards
Prakash Kalanjeri Balasubramanian
0 Likes
Not applicable
Hi David,

You can use either “FPU -> FPDSCR” or “PPB -> FPDSCR” to access FPDSCR register since it is also defined in XMC4500.h under PPB_Type.
Moreover, the MVFR0 & MVFR0 registers contain a summary of supported FPU features.

Best regards,
Sophia
0 Likes
User5327
Level 4
Level 4
sophia, Prakash,

Thank you very much! 🙂

Best regards,
Koumak
0 Likes