Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Thread Closed: Became flame-war

???
02/07/05 20:28
Read: times


 
#86814 - re: the obvious one
Responding to: ???'s previous message
Neil Kurzman said:
Sitting in one interupt so long that multiple interupts are missed in ther interupts.


Yeah, like the temperature-control code I fixed once. Basically, there was a timer tick interrupt every so often where a temperature sensor would be read. The original author (a Ph.D. in controls, no less) was doing his PID loop calculations IN THE ISR, and he couldn't figure out why his serial port was dropping characters.

Worse was the fact that his PID loop calculations required degrees Centigrade as its input, and its output was volts since the output drove a DAC that set a heater's power. He actually converted the 12-bit temperature sensor ADC value to degrees Centigrade (to three decimal places) and his loop had to convert volts (also to three decimal places) to DAC bits.

He originally tried to do all of these conversions using floating point in the ISR, but his programs crashed. He was eventually told that the floating point library (Avocet C) was not re-entrant. So, he came up with this icky multi-byte fixed-point representation for the degrees and the volts and his loop constants, rather than go back to his Matlab/Simulink model and rework it in terms of 12-bit ADC and 12-bit DAC values.

-a

List of 52 messages in thread
TopicAuthorDate
Ignoring Interrupts            01/01/70 00:00      
   I think you got it....            01/01/70 00:00      
      true, not to the point and about books            01/01/70 00:00      
   Yes but no but..            01/01/70 00:00      
      Being Dazzled....            01/01/70 00:00      
      Book Sales            01/01/70 00:00      
         Ignoring interrupts            01/01/70 00:00      
            Ignoring Interrupts            01/01/70 00:00      
               Level trig interrupts            01/01/70 00:00      
                  re: Level trig interrupts            01/01/70 00:00      
                  High Reliability Systems.....            01/01/70 00:00      
                  Cogent Explanation            01/01/70 00:00      
                     poor design and            01/01/70 00:00      
                     The Obvious one            01/01/70 00:00      
                        what's in the name            01/01/70 00:00      
                        Another Design Issue            01/01/70 00:00      
                           a maintenance nightmare            01/01/70 00:00      
                              Maintenance Heaven            01/01/70 00:00      
                                 reality            01/01/70 00:00      
                                    reality            01/01/70 00:00      
                                       huh?            01/01/70 00:00      
                                          Responding to Interrupts            01/01/70 00:00      
                                             nope            01/01/70 00:00      
                                                Yup            01/01/70 00:00      
                                                   theory and practice            01/01/70 00:00      
                                                   read trhe bible            01/01/70 00:00      
                                                      Read carefully            01/01/70 00:00      
                                                         now you lose me            01/01/70 00:00      
                                                            Back on Track            01/01/70 00:00      
                                                               of course            01/01/70 00:00      
                                                                  Absolutely.            01/01/70 00:00      
                                 nope            01/01/70 00:00      
                                    do not get me wrong            01/01/70 00:00      
                                       Real Time vs Fast            01/01/70 00:00      
                                          not very fast            01/01/70 00:00      
                                             Quite Fast Actually            01/01/70 00:00      
                                                why not call a spade a spade            01/01/70 00:00      
                                                   coming to think of it            01/01/70 00:00      
                                                   Why say Spade when you mean Shovel            01/01/70 00:00      
                                    Timing a Task            01/01/70 00:00      
                                       there is cause you WILL miss one            01/01/70 00:00      
                                          Politeness            01/01/70 00:00      
                                             what is impolite about a fact            01/01/70 00:00      
                                                Offensive            01/01/70 00:00      
                                                   not you, the word            01/01/70 00:00      
                        re: the obvious one            01/01/70 00:00      
                        It seemed to be a trend            01/01/70 00:00      
                           seem to            01/01/70 00:00      
               re:            01/01/70 00:00      
   Pity..            01/01/70 00:00      
      that would indicate doubt            01/01/70 00:00      
         Peer Review            01/01/70 00:00      

Back to Subject List