You need to test, we're here to help.

You need to test, we're here to help.
Showing posts with label SPI. Show all posts
Showing posts with label SPI. Show all posts

07 September 2021

Correlating Low to High-Speed Events in Complex Embedded Systems

Figure 1: A challenge when testing embedded systems is to correlate events in a low-speed interface like SPI to events in a high-speed interface like PCIe.
Figure 1: A challenge when testing embedded systems
is to correlate events in a low-speed interface like SPI
to events in a high-speed interface like PCIe.
A common requirement when testing embedded systems is to measure the timing between signals with low data rates and those with high data rates. Looking at the functional block diagram of our typical deeply embedded system in Figure 1, we see low-speed serial interfaces like SPI and I2C along with high-speed serial links, like PCIe (often serving as the high-speed serial PHY in our diagram).

Take for example testing the initialization of the system. When power is first turned on, the ROM bios and flash memory initialize program elements that are required by the embedded system’s microprocessor. Once the initialization is complete, the microprocessor has to notify the motherboard via PCIe that it is active and ready to receive data via the high-speed serial bus. This all has to happen within 200 milliseconds. 

07 August 2018

About Ground Bounce and How to Measure It

Shown are five I/O drivers within a package driving signal lines on a PC board
Figure 1: Shown are five I/O drivers
within a package driving signal
lines on a PC board
Designing and/or troubleshooting a system with, say, an MCU driving signals across transmission lines, can be an interesting exercise in patience and diligent sleuthing. Perhaps you're seeing an inordinate amount of bit errors at the receive end of I/O lines but having some difficulty nailing down the source. In many cases, the problem is ground bounce, an issue that can be tough to diagnose and cure. Let's begin an examination of the ground-bounce phenomenon by explaining how it arises and then outlining an approach for finding it.

08 May 2018

Debugging CANbus For IoT Devices

Temperature data from thermocouples is shown both encoded and decoded on the oscilloscope's display
Figure 1: Temperature data from
thermocouples is shown both
encoded and decoded on the
oscilloscope's display
A myriad of serial-data standards come into play when we're discussing Internet of Things (IoT) devices. We've talked about I2C, SPI, and UART in a previous post. Yet another serial-bus standard that comes under the IoT umbrella is the Controller Area Network (or CANbus) standard. CANbus enables microcontrollers and peripheral devices to communicate with each other in applications without an intervening host computer. In the past, it's been typically used in automotive applications, but CANbus has found its way into a wider scope of applications of late.

04 May 2018

Debugging Low-Speed Serial Data on IoT Devices

Serial-data links handle traffic between ICs and peripheral devices in the IoT world
Figure 1: Serial-data links handle traffic between ICs
and peripheral devices in the IoT world
Our last post discussed the difficulties in acquiring the many sensor signals that may be input to a deeply embedded system such as an IoT device as well as a hardware solution to the problem. Another aspect of IoT debugging and validation is the low-speed serial data standards used to facilitate communication between ICs and between controllers and peripheral devices (Figure 1). To that end, let's take a look at three such low-speed standards: I2C, SPI, and UART.

11 September 2015

For UART Debugging, Triggering is Key

A typical screen capture of UART serial decode/trigger software
Figure 1: A typical screen capture of UART
serial decode/trigger software
In our survey of how modern oscilloscopes and trigger/decode software (Figure 1) can ease the task of debugging embedded systems, we've covered the I2C and SPI protocols. Now we'll turn to the UART format, where triggering capabilities are of particular importance.

03 September 2015

Shaking Bugs Out of SPI Buses

Figure 1: Debugging of SPI on a Teledyne LeCroy WaveSurfer 3000 oscilloscope
Figure 1: Debugging of SPI on a Teledyne LeCroy
WaveSurfer 3000 oscilloscope
In the first post of this series, we considered some of the challenges of debugging embedded systems in general and I2C buses in particular. Modern digital oscilloscopes equipped with powerful trigger/decode software for the serial protocol in play go a long way toward easing the path to a properly functioning embedded system. Now we'll consider the particularities of the Serial Peripheral Interface and how the proper tools can make debugging SPI buses easier.

22 July 2015

Debugging I2C Buses in Embedded Systems

Debugging of I2C on a Teledyne LeCroy WaveSurfer 3000 oscilloscope
Figure 1: Debugging of I2C on a Teledyne LeCroy
WaveSurfer 3000 oscilloscope
Embedded systems became ubiquitous decades ago and are now found in everything from mobile devices to vehicles to the traffic lights that control their movements. These days, they're typically based on microcontrollers and perform some specific task(s) within a larger system, such as controlling your car's ABS system. They may or may not have any sort of user interface, and can range widely in terms of complexity and functionality.