Keil Logo Arm Logo

Discussion Forum

Monitor Program

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Read-Only
Author
Mohit Gupta
Posted
22-Dec-2000 16:30 GMT
Toolset
C51
New! Monitor Program
Hello,
Please let me know
1) What is a monitor program and how is it used?
2) My program uses a lot of floating point numbers as many floating point calculations are required. Should one try to avoid using floating point numbers and how can it be accomplished?

Regards,
Mohit
Read-Only
Author
Leonhard Fuchs
Posted
3-Jan-2001 12:57 GMT
Toolset
C51
New! RE: Monitor Program
1. A monitorprogram can be used to debug your program directly on the target system. Therefore you have to program your hardware with the monitorprogram. After this you can connect the pc to your hardware and download your application. You can run your application, stop it, place breakpoints, evaluate or change variables and a lot more.

2. floating point calculations are taking a lot of your speed ressources. Though man should avoid using it. Most of the time it is possible to use bytes or int/word instead. For example if you have to set up a temperature between -50 and +200 °C. you can store the value internally as an integer. If you need a resolution of 0.1 take the internal value multiplied with 10. So internally 257 digit repesent 25.7 °C. To show the correct value to the user you just need a division of an integer.

Bye
Leo

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Keil logo

Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.