An embedded system is an electronic system designed to perform a specific function. It contains both hardware and firmware. Embedded systems are application-specific, unlike general purpose computers. They are used in consumer electronics, industrial equipment, medical devices, vehicles, and other applications. An embedded system typically contains a microcontroller or digital signal processor as its core component to perform the desired functions.