In this 'Tips 'n Tricks' article from Microchip Technologies, the company describes a method of structuring faster code for detecting change.
When using a comparator to monitor a sensor, it is often just as important to know when a change occurs as it is to know what the change is. To detect a change in the output of a comparator, the traditional method has been to store a copy of the output and periodically compare the held value to the actual output to determine the change. An example of this type of routine is shown in Figure 1.
Figure 1. Routine 1
This routine requires five instructions for each test; nine instructions if a change occurs and one RAM location for storage of the old output state. A faster method for microcontrollers with a single comparator is to use the comparator interrupt-flag to determine when a change has occurred.
Routine 2 (Figure 2) requires two instructions for each test; three instructions if a change occurs and no RAM storage. If the interrupt flag cannot be used or if two comparators share an interrupt flag, an alternate method that uses the comparator output polarity bit can be used.
Figure 2. Routine 2
Routine 3 (Figure 3) requires two instructions for each test; five instructions if a change occurs and no GPR storage.
Programmable logic redefined
DSP, Micros & Memory
Microchip’s CLB-based PIC MCUs combine programmable logic and embedded control in a single device to help reduce latency, cost, and design complexity.
Read more...Compact MCU for IoT endpoints iCorp Technologies
DSP, Micros & Memory
Quectel’s FCM266D combines single-band 2,4 GHz Wi-Fi 6 with Bluetooth LE 5.4 in an ultra-compact LCC package measuring just 20 x 18 x 2,4 mm.
Read more...Industrial-grade ESP32-S3 controller
DSP, Micros & Memory
Erqos Technologies has introduced the EQSP32CE, a CE-certified, industrial-grade ESP32-S3 controller designed for developers who want the flexibility of the ESP32 ecosystem in hardware that can be deployed directly into real-world automation.
Read more...Compact direct Time-of-Flight 3D LiDAR module Altron Arrow
Opto-Electronics Electronics Technology AI & ML
The VL53L9 from STMicroelectronics is the first direct Time-of-Flight (dToF) 3D LiDAR all-in-one module in ST’s portfolio, offering a resolution of 2,3K zones, wide field of view, on-chip processing, 100 frames per second, and sensing range from 5 centimeters to 9 meters.
Read more...Duxbury Cybersecurity sharpens reseller offering Duxbury Networking
Information Security News & Events
Duxbury Networking has strengthened its Duxbury Cybersecurity business unit by adding WatchGuard and Cynet, giving South African resellers broader, more integrated coverage for the security risks customers are now asking them to address.
Read more...Generating negative voltages from a positive supply Altron Arrow
Editor's Choice Passive Components
It is common for IoT devices, industrial sensors, meters, and medical equipment to require both a positive and negative voltage, and this article explains the options available to produce a negative rail from a positive rail supply.
Read more...Advanced sensing powers modern drones Future Electronics
DSP, Micros & Memory
Allegro MicroSystems has a portfolio of sensors, motor drivers, and power management devices specifically designed to enhance drone efficiency, reliability, and control.
Read more...Addressing latency and signal integrity challenges Altron Arrow
DSP, Micros & Memory
Strengthening Microchip Technology’s data centre solutions portfolio, its XpressConnect retimers support high-bandwidth architectures, while helping reduce integration complexity.
Read more...Precision timing in compact package Altron Arrow
Telecoms, Datacoms, Wireless, IoT
Designed for use in harsh environments, the EX-423 incorporates a four-point mounted quartz crystal structure that improves shock resistance and reduces g-sensitivity.
While every effort has been made to ensure the accuracy of the information contained herein, the publisher and its agents cannot be held responsible for any errors contained, or any loss incurred as a result. Articles published do not necessarily reflect the views of the publishers. The editor reserves the right to alter or cut copy. Articles submitted are deemed to have been cleared for publication. Advertisements and company contact details are published as provided by the advertiser. Technews Publishing (Pty) Ltd cannot be held responsible for the accuracy or veracity of supplied material.