Strictly necessary cookies are on by default and cannot be turned off. Functional, Performance and Tracking/targeting/sharing cookies can be turned on below based on your preferences (this banner will remain available for you to accept cookies). You may change your cookie settings by deleting cookies from your browser. Then this banner will appear again. You can learn more details about cookies HERE.
Strictly necessary (always on)
Functional, Performance and Tracking/targeting/sharing (default off)
Question: What is the total AMUX switching time taking into consideration the multiplexer switch instruction? How much time is involved when an input signal is switched inside an ISR?
The multiplexer transistors switching time is less than 1us. It depends not only on the multiplexer switching (which is really small), but also internal load capacitance charging, analog buffer setting time, etc. These values limit the upper bound of switching time.
With the software intervention (ISR), the amount of time is based on the amount of time between the IRQ pin being asserted to the firmware instruction that changes the AMUX register. This time is dependent on CPU clock cycles and therefore your CPU clock. It takes the M8C interrupt controller about 20 CPU cycles from interrupt detection to code execution in the ISR. The amount of time in your ISR is dependent on the code that you have written for the ISR. If the multiplexer switch is the first instruction in the ISR, you need to add 8 CPU cycles to the above 20.