Computer architecture - Embedded architectures - lecture 9b - Charles Fox - University of Lincoln
Overview
Charles Fox surveys embedded architectures by showing how their communication protocols, processors, and programmable logic are chosen to fit specific tasks, often prioritizing cost, reliability, or real-time performance over general-purpose computing. Examples range from serial links, I²C, and automotive CAN to Arduino, ESP32, PIC, DSP, Infineon AURIX, Raspberry Pi Zero, ladder logic, and FPGA, with safety and the blurred boundary between embedded and smart computing as recurring themes.
Key takeaways
- Embedded communication choices reflect the physical setting: serial links connect devices over RX/TX, I²C shares a short-range board-level bus, and CAN coordinates communication among automotive components.
- A prototype can become a cheaper production product by removing unused Arduino circuitry, selecting a suitably small PIC or other microcontroller, and manufacturing a purpose-built PCB.
- ESP32 combines a 32-bit processor, increased memory, and built-in Wi-Fi in a low-cost platform that can still use the Arduino development ecosystem.
- DSP workloads benefit from fixed-point arithmetic and pipelining because audio and video processing often repeat predictable operations on continuous data streams.
- Automotive systems must account for safety standards such as ISO 26262, while shared networks such as CAN make separation of safety-critical controls and less-trusted systems important.
- Embedded computing is defined partly by use rather than hardware: a Raspberry Pi Zero can serve as a single-purpose controller or, with an operating system, as a small general-purpose computer.
Chapters
- A basic serial connection uses RX and TX wires to transmit bits, commonly grouped into eight-bit ASCII characters.
- Both devices must agree on settings such as baud rate, character length, and start, stop, or error-checking bits.
- USB adapters let desktop PCs communicate with Arduino boards, while Zigbee carries serial-like data over radio for devices such as smart bulbs.
- I²C, or I-squared-C, connects chips on a shared bus, commonly on a printed circuit board or between Arduino and sensor boards.
- Devices use bus addresses, commonly seven-bit addresses, so a controller can select a sensor such as an inertial measurement unit.
- The lecture describes multimaster operation: devices can take the bus-manager role and coordinate access rather than relying on a permanently fixed manager.
- I²C is used for embedded sensor links at rates ranging from about 100 kilobits per second to several megabits per second.
- CAN, short for Controller Area Network, is a shared bus used by automotive components to exchange data and report fault codes.
- A diagnostic interface can read CAN error codes, which help technicians identify problems in a car's electronic systems.
- Because many components share the network, Fox highlights the importance of separating entertainment systems from safety-critical functions such as braking.
- CAN-based vehicle experimentation can affect dangerous systems, so Fox cautions that work involving brakes or other vehicle controls risks harm to occupants and pedestrians.
- Arduino is presented as a convenient prototyping platform; production designs can remove unused circuitry and use only the microcontroller and components required.
- A project can move from a breadboard to a PCB designed with KiCad, then be manufactured and assembled by a PCB service.
- The ESP32 offers a 32-bit processor, more memory, and built-in Wi-Fi in a compact, low-cost board that can also be programmed through the Arduino IDE.
- Microchip PIC microcontrollers come in many sizes, allowing manufacturers to choose a low-cost part for simple products such as vending machines or a more capable one for complex applications.
- Digital signal processors are specialized for real-time streams such as audio and video, with features for handling incoming and outgoing signals.
- DSPs commonly use fixed-point values for bounded signals such as audio normalized between minus one and plus one.
- Fourier transforms identify frequency content, while convolution supports effects such as reverberation and audio cleanup.
- Predictable streaming workloads with limited branching suit pipelining, and ring buffers let producers and consumers handle data at different points in a continuous stream.
- Automotive electronics are shaped by safety requirements, including ISO 26262, which covers both software practices and system architecture.
- Infineon's AURIX microcontroller family is designed for automotive applications and uses a TriCore CPU.
- AURIX systems commonly use 32-bit RISC processors and may include DSP capabilities for analyzing sensor signals.
- Fox connects modern car maintenance to embedded computing: diagnostic tools read CAN data, while electronic control units process sensor information and report faults.
- The Raspberry Pi Zero has a 32-bit ARM processor, a GPU, about 512 megabytes of RAM, USB, and HDMI, making it more capable than many traditional microcontrollers.
- Whether the Pi Zero counts as embedded depends partly on how it is used: running one program as part of a larger system differs from acting as a desktop computer.
- Fox notes that inexpensive general-purpose hardware can replace simpler controllers when its extra capabilities are affordable.
- Industrial control systems may favor ladder logic in programmable logic controllers because its simple rules are easy for engineers to inspect and reason about.
- Ladder logic expresses conditions such as activating an output when specified input signals are on or off, limiting complexity in safety-critical settings.
- Programmable logic arrays once used fuses to configure AND and OR connections, including for short-run ROM production.
- FPGAs replace fuse-based configuration with electronic switches controlled by programmed registers, allowing logic to be configured without fabricating a custom chip.
Transcript excerpt
0:00 Beyond regular IO, embedded devices have to communicate, especially with sensors and actuators, often built into the same physical system, part of the same embedded system. So [snorts] different forms of communication tend to be used. As with the rest of embedded design, they can be a bit lower tech than what you find on a PC. And being low tech can often give you the extra confidence in actually working, in their reliability. So one one communication protocol still very much used in embedded world is the classic ancient serial port. The serial port protocol has been around for forever. It was found on eight bit
0:47 home computers and on devices even before those times, often associated with a connector looking like this. But at its core, a serial port is really just two wires called RX and TX. That's for receive and transmit. And it's it's literally each of these is literally a wire which over time takes different voltage levels, zero or one. And those represent bits of communication. They are usually grouped into eight bit bytes [snorts] and then used to send ASCII characters. So you still find ASCII very much in use over an embedded world. Serial port protocol comes in several variants. So if you are speaking serial protocol,
1:35 you need to know what version of it the other side is expecting. So so for example, say say you're plugging your Arduino into a sensor, laser lidar sensor, or temperature sensor or anything speaking this protocol. You first got to agree on the speed that you will communicate at. Okay, that's called the the baud rate. The baud rate how many bits per second are you both planning to send on the wire. So you both got to configure your serial ports to be going at the same
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Charles Fox.