Float point view

Discussion on both general simulation and Proteus VSM microcontroller simulation.
Post Reply
uriotech
Professional User
Posts: 164
Joined: Sun 2010-05-30 22:13

Float point view

Post by uriotech »

Hi, Is there some configuration to see float point variable values at debug window ? I maked a example, using PROTON to generate the code, I can see integer but not float values at CPU variables window.

Ricardo Urio
Attachments
FloatPoint Test.rar
(16.97 KiB) Downloaded 88 times
Ettore
Labcenter Staff
Posts: 2929
Joined: Fri 2006-03-03 11:56
Location: Milan
Contact:

Re: Float point view

Post by Ettore »

uriotech wrote:Hi, Is there some configuration to see float point variable values at debug window ?
Yes, if you've got an update Proteus version then you should add the following property into the 'Other Properties' field of the PIC18:
DT_FLOAT=MICROCHIP_BIGENDIAN

We have added this format new support for the .cof files used by CCS C compiler but I cannot see reason why it shouldn't work for .cof files generated by PROTON.
Find also attached your example modified as above mentioned.
Attachments
FloatPoint Test_1.rar
(31.24 KiB) Downloaded 253 times
Kind regards,
Ettore Arena - Labcenter Electronics.
Post Reply