Why use hex file? Well, everything seems fine and perfect! But - TopicsExpress



          

Why use hex file? Well, everything seems fine and perfect! But did you give it a thought why did we burn the hex file and not the C file? Well, it’s a natural fact that hex files execute much faster than c files. But let us consider the following facts: 1. Suppose we use a 16MHz crystal in order to generate clock pulses. Even a substantially large C file will execute in a flash. So, why convert it to hex? 2. Let’s say we program using BASIC. Still then it is converted to hex. If the BASIC files are executed faster than C files, do we need to convert it to hex? Yes! We do! Here’s why: Sticking to the natural fact that hex files execute the fastest, they introduce very little delay. Using a C or BASIC file may introduce undesirable delays, which may add up and slow down the system in the end. Say, let us even consider the best case, where the execution time of hex file is nearly same as that of C or BASIC. This will do well for general applications. But suppose we design a solution to be installed in a car, where the MCU controls the airbag and releases it as soon as an accident happens. This is where speed comes into play. Your C and BASIC files will take too long to respond, and by the time they respond, the worst would have happened.
Posted on: Thu, 30 Oct 2014 12:16:41 +0000

Trending Topics



Recently Viewed Topics




© 2015