Podcast
Questions and Answers
What is the potential consequence of poorly designed embedded code?
What is the potential consequence of poorly designed embedded code?
Undefined state = BAD MCU interpreted negative values as positive values
How does writing code for an embedded system differ from writing code for a PC system?
How does writing code for an embedded system differ from writing code for a PC system?
Embedded system is resource constrained; Use hardware call stack; Limited call stack on a PIC; Headless (generally runs without a display unit); Use only LEDs / 7 segment displays to indicate status
What are some reasons for poorly designed embedded code?
What are some reasons for poorly designed embedded code?
Acceleration pedal pushed in too far; Stack overflow condition; Sign bit 'flipped'; Developers did not anticipate this; Two’s complement calculations continue
What can happen if an embedded system interprets negative values as positive values?
What can happen if an embedded system interprets negative values as positive values?
Signup and view all the answers
What is the consequence of approaching writing code for an embedded system like a PC system?
What is the consequence of approaching writing code for an embedded system like a PC system?
Signup and view all the answers
What is the potential consequence of a stack overflow condition in embedded code?
What is the potential consequence of a stack overflow condition in embedded code?
Signup and view all the answers
What can happen if an embedded system interprets negative values as positive values?
What can happen if an embedded system interprets negative values as positive values?
Signup and view all the answers
What are some challenges of writing code for an embedded system compared to a PC system?
What are some challenges of writing code for an embedded system compared to a PC system?
Signup and view all the answers
Why is it important for embedded code to anticipate and handle undefined states?
Why is it important for embedded code to anticipate and handle undefined states?
Signup and view all the answers
What are some potential consequences of approaching writing code for an embedded system like a PC system?
What are some potential consequences of approaching writing code for an embedded system like a PC system?
Signup and view all the answers