EEWeb Pulse - Issue 79

Page 1

INTERVIEW

EEWeb Issue 79

January 1, 2013

Nicholas Abi-Samra Vice President, Asset Management Quanta Technology SPECIAL FEATURE

MCU Wars 2.5 Importance of Code Quality in an RTOS TECHNICAL ARTICLE

Bug Processing Machine

Electrical Engineering Community

Visit www.eeweb.com

1 eeweb.com



EEWeb PULSE

TABLE OF CONTENTS

4

Nicholas Abi-Samra QUANTA TECHNOLOGY Interview with Nicholas Abi-Samra - Vice President, Asset Management

Featured Products

13

The Bug Processing Machine

14

BY RAY SALEMI WITH MENTOR GRAPHICS CORPORATION Why thinking of your verification environment as a bug processing machine can cause you to consider aspects of verification beyond the test benches and tests.

MCU Wars 2.5: The Importance of Code Quality in an RTOS

18

Two experts in RTOS sit down to discuss the quality of the code in each of their RTOS products and the great lengths they go through to get their RTOS certified.

Product Review: TS1101 Bidirectional CurrentSense Amplifier Demo Board from Touchstone

24

RTZ - Return to Zero Comic

28

Visit www.eeweb.com

3


EEWeb PULSE

N

4

EEWeb | Electrical Engineering Community


INTERVIEW

Nicholas Abi-Samra Quanta Technology

Quanta Technology is a high-growth, independent consulting company providing business and technical expertise to energy utilities and assisting in deploying practical solutions to improve their business performance. In this first issue of Pulse for 2013, we spoke with Nicholas Abi-Samra, the Vice President at Quanta Technology leading the Asset Management practice at the firm. Nicholas shared some insights on power delivery maintenance, the aging power infrastructure, and effects of extreme weather events on the power grid.

Visit www.eeweb.com

5


EEWeb PULSE How did you get into electronics and engineering, and when did you start? I have been intrigued with electronics and electrical systems since childhood. That is why I went into electrical engineering. My idol as a child was my father, who owned a number of electronics shops, and who was the inventor of several electrical and electronic devices. One of his inventions in the early 1960’s was a voice-activated, phone answering system. How did you end up in Electrical Power Engineering? In graduate school I developed a passion for Electric Power Engineering, an area which had less emphasis in favor of the more popular engineering fields, such as Electronics and Digital Systems. In the USA, only a handful of engineering schools had reputable programs in power engineering, and this, unfortunately, is still the case today. This lack of emphasis on power engineering is a problem for the industry, though it does create an opportunity for engineering students. We also have a problem with what we call the “aging workface” in power engineering. Can you elaborate on the aging workforce issue? The U.S. Department of Labor has estimated that as much as 50 percent of the nation’s utility workforce (engineers, technicians and line workers) will retire in the next five to 10 years. The challenges associated with replacing the technical and institutional knowledge of these electric power professionals will be huge. The potential impact on day-to-day utility operations of this knowledge transfer will also be significant.

6

We are hearing a lot about deployments of smart grid technology, and issues such as distribution automation. Can you elaborate more on that? During the coming five years we should expect that the smart grid deployments by utilities will create a large number of positions for engineering graduates. These positions will be created across various categories, but most will be in electrical engineering. Smart grid is universally understood to be the key enabling technology for the nation’s ambitions towards renewable energy development, electric vehicle adoption, and energy efficiency improvements. The opposite is also true in my opinion; without smart grid investments, many electrical engineering jobs in the electrical utility industry will either be deferred or not created. The smart grid will do for the electrical utility sector what the Internet has done for the communications sector. Based on what you just said, do you have any advice for young engineering students who have not decided on a specialization? Yes! Specialize in Electric Power Engineering with an emphasis on smart grid technology! I always try to get this message across to engineering students at universities and high schools. Could you tell us a little bit about your company, Quanta Technology? Quanta Technology, http://quantatechnology.com/, is the independent consulting arm of Quanta Services. The industry looks towards us as the expertise-based consulting firm which covers the power systems

EEWeb | Electrical Engineering Community

The smart g will do for th electrical ut sector what Internet has done for the communicat sector.

from end-to-end, from power generation, transmission, and distribution, all the way down to enduse customers. We cover system, planning, engineering, operations and asset management. We have a very talented staff of 120 workers, many of whom are renowned in our industry. Headquartered in Raleigh, we also have offices in Boston, Chicago, Oakland, Toronto, and Rotterdam. You mentioned you are affiliated with Quanta Services. Can you explain who they are? Quanta Services, Inc. (http://www. quantaservices.com), is a publicly traded company (NYSE:PWR), with over 19,000 employees. It represents the largest union and non-union field forces in the energy industry. Quanta Services also owns one of the largest construction fleets


INTERVIEW

grid he tility t the s e ations ” in the industry, and enables rapid deployment to support emergency power restoration. The company’s headquarters are in Houston. You lead the Asset Management practice at Quanta Technology; can you tell us more about asset management? Well, Asset Management is interpreted in many different ways in the utility industry, but everybody agrees is very important, no matter how you look at it. For some, asset management means the management and maintenance of the capital equipment that makes up the power system, such as the transformers, breakers, poles, etc. To others, asset management refers to the risk assessment and mitigation associated with energy delivery infrastructure. Some view asset management as the management

of the capital investment required to own, operate and maintain the electric delivery infrastructure. To Quanta Technology, asset management covers all these things. Can you tell us more about the maintenance practices for the different grid components? Maintenance management is a complicated business. Maintenance budgets are continually scrutinized by fiscal managers in an ongoing effort to trim dollars, and asset managers are under constant pressure to squeeze every last bit of productivity out of every maintenance dollar. In the power grid we have literally millions of components. For example, large utilities may have several hundred thousand distribution transformers (better known as pad mounted transformers) mounted on

poles or on the ground. Maintaining these components can vary by utility, but there four main approaches: • Run-to-failure - In this approach there is no intervention or maintenance. A component is simply replaced when the component it fails. • Time-based maintenance Inspection follows a certain predetermined schedule, and thus a piece of equipment may be inspected whether it needs it or not. Simple approach… but not the most efficient and may not catch a problem in time to fix it. • Reliability centered maintenance (RCM) – RCM is a process which combines reliability analysis with a review of maintenance history to develop a recommended maintenance plan.

Visit www.eeweb.com

7


EEWeb PULSE • Condition-based maintenance (CBM) - Maintenance is performed when the need arises, that is, after one or more indicators show that equipment is going to fail or that equipment performance is deteriorating. Developing and implementing a maintenance philosophy is a critical step in an overall asset management strategy. The decisions of when and how to use a specific maintenance philosophy are best made based on information of degradation modes and the characteristics of specific equipment (as well as associate failure rates and patterns). A good approach to deal with maintenance strategies should be based on component life cycles and a life cycle management approach for the delivery infrastructure. At Quanta Technology, we assist our clients in defining and implementing maintenance programs based on current equipment condition and operational factors that define the maintenance requirement. What challenges do you foresee in your industry? I would have to say that the first is the aging power infrastructure and the second is the impact of extreme weather on it. The second is highly related to the first. What do you mean by aging power Infrastructure? Many utility systems in the United States, Canada, and the rest of the world, were originally built many decades ago - 50, 60, 70, or even older. As a piece of electrical system equipment (such as a transformer or a circuit breaker) gets older, it deteriorates due to the wear and tear of continued service or weathering. At some point, the equipment becomes worn out. It will

8

either fail outright, or weakened in condition and could no longer stand against extreme weather events. Such failures cause interruptions in service and require expensive emergency repairs and system restoration work. Failed pieces of equipment have to be replaced with new ones, so even in the oldest area of any utility system, there is a mix of equipment pieces of different age -- some quite old, and some much newer. In some places, however, over three quarters of the equipment is original -- in spite of being five or more decades old. Next time you drive by an established community, have a closer look at those distribution wood poles and the transformers on top of them… some of these have been there before many of your readers have been born. Does this mean we are going fall over an aging power Infrastructure cliff sometime soon? Oh no, it does not. Some of the old equipment is still in very good condition despite its age, and is expected to provide satisfactory service for years to come. Some of the equipment, however, albeit a small percentage, is badly deteriorated (perhaps not to extent that it shows visible signs of imminent failure, but to the extent that it cannot do its original job dependably) and needs to be replaced. Replacing that equipment before it fails is more easily said than done. That is because finding the future “bad actors” in a power system is a quite challenge. In many cases, badly deteriorated equipment does not give obvious signs of its undependability. Tests can be done to improve the knowledge that the utility has on its equipment condition, yet these tests

EEWeb | Electrical Engineering Community

At Quanta Tec we use our in equipment kn to assist our c defining and maintenance based on curr equipment co operational fa define the ma requirement. and implemen maintenance a critical step asset manage

are not entirely dependable. Tests are perhaps only 80-90% accurate in depicting the bad actors, and also sometimes lead to false positives.

- Ages in any infrastructure, particu - An aged infrastructure is made up - Equipment starts failing from the - Failure rate increases very gradua - Not all equipment fails at the sam - Finally, it’s not age, but the condit the most


INTERVIEW

chnology ndustry and nowledge clients in implementing programs rent ondition and actors that aintenance Developing nting a philosophy is p in an overall ement strategy. ” I can talk hours on this subject, as it is something we specialize in at Quanta Technology, but here are some takeaways:

ularly an old one, are well mixed p of survivors moment it is installed ally as a function of age me age tion of the equipment which matters

Many of these aging systems are not just aged, but obsolete. They weren’t designed to meet today’s service reliability needs or peak load levels. While they have been augmented over the decades, they are at or beyond their limit in many regards. Simple renewal of equipment and structures will not really give utilities what they need to face the future, particularly with regard to providing the 21st century “Smart” electric service many utilities and regulators envision. One can envision renewed systems, built to different design guidelines, incorporating different system layouts, with circuit automated switching and technologies. The problem is how to make an orderly, affordable transition from the existing aged, obsolete system to that new design. The transition must be made in a way that is both affordable and demonstrably justifiable to customers, investors, and ratepayers alike. How about the impacts of extreme weather on power systems? This is a very hot topic in the industry today, especially after superstorm Sandy. First let us define extreme weather. Extreme weather includes unusual, severe or unseasonal weather, or weather at the extremes of the historical distribution—the range that has been seen in the past. Some like to think of this as weather which occurs only 5% or less of the time. Some attribute the increase in extreme weather events to manmade global warming. Recent studies indicate an increasing threat from extreme weather. One senior vice president from a major utility noted that they are seeing the “storm of the century” every year now.

A report published this summer by National Oceanic and Atmospheric Administration (NOA), indicated that July 2012 was the hottest month on record for the contiguous United States. It also showed that over 63% of the contiguous United States also experienced “moderate to exceptional” drought conditions. It also indicated that the period between January 2012 and July 2012 was the warmest first seven months of any year on record for the contiguous United States, with most places seeing record and nearrecord temperatures. Most recently, Hurricane Sandy affected 24 states, with particularly severe damage in New Jersey and New York. Its storm surge hit New York City flooding streets, tunnels and subway lines and cutting power in and around the city with damage in the US is estimated at over $60 billion. A sizable of portion of this damage is in the power infrastructure. Sandy underlined the fragility of the aging power infrastructure. As extreme weather and fires have become more and more common over the past few years, aging power infrastructures and equipment - which have not been designed to such extremes - will be expected see relentless attacks. The aging infrastructure makes the power systems more vulnerable to failures that could damage human health and safety. Failures from components affected by extreme weather can cause interruptions in service to the utility’s customers, and require expensive emergency repairs and system restoration work. This comes at a time that all of us are requiring a higher level of reliability and security. There are some common approaches to hardening the power Visit www.eeweb.com

9


EE

Ele ct ric al En w gi w ne w er .e in ew g

C eb om .c m om un ity

W eb

EEWeb PULSE

Making Wireless Truly Wireless: Need For Universal Wireless Power Solution

Dave Baarman Director Of Advanced Technologies

"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium laudantium,

doloremque totam

rem

aperiam,

eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae

ARTICLES

dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil

JOBS

COMMUNITY

DEVELOPMENT TOOLS 10

EEWeb | Electrical Engineering Community

JOIN TODAY


INTERVIEW grid against extreme weather events which can be used across many different utilities. Yet, each utility is unique and some tailored measures need to be considered. Quanta Technology provides a wide range of assistance to electric utility companies for hardening their systems against extreme weather. Quanta Services provides emergency restoration services for many extreme weather events such as ice storms, hurricanes and wildfires. It has a fleet of more than 5,000 off-road vehicles to get the experienced work crew, emergency generators and materials needed to restore power following the outages. You mentioned conditionbased maintenance earlier; can you elaborate on that in the context of aging assets? Today’s utility environment includes expectations of higher reliability, lower costs and increased earnings, increased investment in environmentally friendly technologies, rapid fuel price escalation, and the challenge of aging in both the work force and the utility infrastructure. On top of that, there is regulatory and fiscal pressure to extend the life of existing power delivery assets through better understanding of the assets conditions, knowledge of operational issues that significantly impact the remaining life of the assets, and implementation of maintenance practices to support the operating objectives. Addressing aging infrastructure is difficult in traditional utility budgeting processes. Our experts are experienced in quantifying the future impact of aging equipment and developing justified multiyear plans that are acceptable to regulators. We provide services to

evaluate the current condition of power delivery assets such as power transformers, circuit breakers, and other substation infrastructure as well as distribution networks, cable systems and pole plants to assist utilities in their decision processes around capital equipment operations, refurbishment, and replacement. What are some of the hardest situations you faced professionally? Well, that is an interesting question. I have to say these have to be associated with appearing at large facility, like a large power generating nuclear plant, after a major incident, like a fire. My job responsibilities included root-cause analysis of the failure of major equipment, and investigating blackouts in the USA and overseas. These typically are very interesting to investigate (as no two are ever alike usually), but never-the-less they are not the most pleasant situations utilities face! When you arrive on-site of the incident, you get to meet people who are not in their best moods! Tensions are high as everybody scrambles to put the plant back in operation or system back together. Needless to say, you cannot make any mistakes and you have to think fast on your feet to find what went wrong in a hurry and under immense pressure. Those had to be some of the hardest situations I had faced, and I had many of them.

recognition award (two-time winner) • Chauncey Starr Award, EPRI’s highest recognition award (threetime winner) On the professional side, I served as the General Chair and Technical Program Coordinator for the IEEE Power & Energy General Meeting. Over 500 different organizations from over 50 countries were represented, h t t p : / / w w w. p e s - g m . o rg / 2 0 1 2 / images/general/Nick-WelcomeLetter-GM-2012.pdf. This year we had a record-breaking conference with 1,289 accepted publications which were critically-peer reviewed by 21 technical committees. We offered 170 technical sessions with topics ranging from developments and experiences in fields related to power generation, transmission, distribution, end-use, and of course, smart grid. I encourage readers to go to the conference site, http:// www.pes-gm.org/2012/, and watch the videos from our amazing keynote speakers. In addition, we have over 30 hours of videos of very deep dives into many topics from we called Super Sessions from world experts. It was really a great honor for me to be affiliated with such a great event in electrical power engineering.

Do you have any note-worthy engineering recognition? Some of the awards that I was fortunate and honored to have, are: • George Westinghouse Signature Award of Engineering Excellence, Westinghouse Electric’s highest

Visit www.eeweb.com

11


Technology You Can Trust

Take the Risk out of High Voltage Failure with Certified Avago Optocouplers IEC 60747-5-5 Certified

Optocouplers are the only isolation devices that meet or exceed the IEC 60747-5-5 International Safety Standard for insulation and isolation. Stringent evaluation

tests show Avago’s optocouplers deliver outstanding performance on essential safety and deliver exceptional High Voltage protection for your equipment. Alternative isolation technologies such as ADI’s magnetic or TI’s capacitive isolators do not deliver anywhere near the high voltage insulation protection or noise isolation capabilities that optocouplers deliver. For more details on this subject, read our white paper at:

www.avagoresponsecenter.com/672


FEATURED PRODUCTS Bidirectional Current Shunt Monitor The INA282 family, which includes the INA282, INA283, INA284, INA285, and INA286 devices, are voltage output current shunt monitors that can sense drops across shunts at common-mode voltages from –14V to +80V, independent of the supply voltage. The low offset of the Zerø-Drift architecture enables current sensing with maximum drops across the shunt as low as 10mV full-scale. These current shunt monitors operate from a single +2.7V to +18V supply, drawing a maximum of 900µA of supply current. They are specified over the extended operating temperature range of –40°C to +125°C, and offered in an SOIC-8 package. For more information, please click here.

USB Power Switch for Heavy Capacitive Loads The TPS20xxC and TPS20xxC-2 dual power-distribution switch family is intended for applications such as USB where heavy capacitive loads and short-circuits may be encountered. This family offers multiple devices with fixed current-limit thresholds for applications between 0.5 A and 2 A. The TPS20xxC and TPS20xxC-2 dual family limits the output current to a safe level by operating in a constant-current mode when the output load exceeds the current-limit threshold. This provides a predictable fault current under all conditions. The fast overcurrent response time eases the burden on the main 5 V supply to provide regulated power when the output is shorted. For more information, please click here.

Noncontact Temperature Measurement System Raytek, a worldwide provider of infrared (IR) thermometry, has introduced the Raytek Equipment Monitoring System with DataTemp® Multidrop software, a noncontact temperature measurement system that provides round-the-clock condition monitoring of actively powered components or operating machinery in support of predictive and preventive maintenance programs. Early detection of heat-related faults and failures, along with maintenance performed as needed and not when estimated, result in reduced maintenance costs and less waste from unexpected downtime. For more information, please click here.

Contactless Communication Transceiver IC The PN512 is a highly integrated transceiver IC for contactless communication at 13.56 MHz. This transceiver IC utilizes an outstanding modulation and demodulation concept completely integrated for different kinds of contactless communication methods and protocols at 13.56 MHz. Enabled in Reader/Writer mode for ISO/IEC 14443A/ MIFARE, the PN512’s internal transmitter part is able to drive a reader/ writer antenna designed to communicate with ISO/IEC 14443A/ MIFARE cards and transponders without additional active circuitry. The receiver part provides a robust and efficient implementation of a demodulation and decoding circuitry for signals from ISO/IEC 14443A/ MIFARE compatible cards and transponders. The digital part handles the complete ISO/IEC 14443A framing and error detection (Parity & CRC). For more information, please click here. Visit www.eeweb.com

13


EEWeb PULSE

14

EEWeb | Electrical Engineering Community

T


TECH ARTICLE

The Bug Processing

Machine Ray Salemi Senior Verification Consultant Mentor Graphics Corporation

The holiday season is upon us and once again we must field the question, “What do you do for a living?” We RTL design and verification engineers usually think of this as a throwaway question, a conversation starter, small talk. But when we consider the question more closely we see that it contains the key to RTL success. What do we do for a living? We process RTL bugs. We find ‘em and fix ‘em (some of us write RTL, but that quickly devolves into finding and fixing bugs). This is a key insight, because if we think of our daily activity as finding and fixing bugs, we realize that our success as a design team hinges on our ability to process as many bugs as possible in a day. The goal of processing as many bugs as possible in a day requires that we think of our verification environment not as a test bench, but as a bug processing machine. Thinking of your verification environment as a bug processing machine causes you to consider aspects of verification beyond the testbench and tests. Instead you need to think of all the things it takes to increase bug processing productivity. You need to find ‘em and fix ‘em faster. Let’s consider each of the pieces in a bug processing machine.

Visit www.eeweb.com

15


EEWeb PULSE

Regression Script

we’ll find more bugs, go into the bug tracking system.

Successful RTL development requires a daily cycle of bug processing. This means that you want to be able to run simulations overnight, come into work in the morning, and look through your simulation output for bugs. This is the “find ‘em” part of the day.

Google shows us that there are at least ten free bug tracking systems available. They all work like big state machines for bugs. The bugs come in with some open state, move to an assigned state, then a fixed state, and finally a closed state after they’ve successfully run through regression.

Running tests overnight is the single biggest thing you can do to improve your bug processing productivity. It beats the heck out of coming into work, starting a simulation, and getting a cup of coffee.

Bug tracking allows you to capture important metrics such as the number of open bugs, the bug arrival rate, and the bug fix rate.

One can write regression scripts in a variety of languages. Python is a common language. If you use ModelSim or Questa from Mentor Graphics, you can download an example of a TCL regression script at http://www.fpgasimulation.com/downloads/ fpgasimulation_examples.zip (Look in the folder called “Chapter26”).

Bug Tracking A bug processing system cannot exist without a bug tracking system. You’re likely to find, and fix, two broad categories of bugs: • Testbench Bugs—Sadly, this happens even to the best of us. Testbench bugs can vary from problems with the regression script, to incorrect testbench behavior. Flagging spurious RTL bugs is a common testbench bug. Another is RTL functionality that isn’t reflected in the test bench. • RTL Bugs—This is what we’re here for! To find and fix RTL bugs. As we add tests to the regression system,

Source Control Source control allows teams to work together on a design and merge the results back together in a controlled way. It also allows an individual engineer to save versions of a design in case of some disastrous deletion of code or misunderstanding about functionality. There are many source control systems, and all of them are hated by different engineers for different reasons. There’s no getting around it. My personal favorite is GIT because individual engineers can use it without having to set up a central server, but your company may already have one in place. Regression scripts work together with source control. On a properly working engineering team, the team members will run a short regression to make sure that they haven’t introduced bugs before checking their work into a central branch. Source Control systems can also create useful metrics in terms of files being modified and bugs being fixed.

Bug tracking allows you to capture important metrics such as the number of open bugs, the bug arrival rate, and the bug fix rate.

16

EEWeb | Electrical Engineering Community


Some source control systems integrate with bug tracking systems so that you can see the release that fixed a certain bug (or introduced another one).

Coverage Models One can think of an RTL design as a large black box full of bugs. You don’t know how many bugs are in the box, and you don’t know where they are, but you want to find them all. The only way to do this is to create a list of things that need to be verified before you can say that your debug work is completed. This is a coverage model. Some coverage models are simply test plans: the engineers say, ”We’ve fully tested the design when we’ve run all these tests.” Other coverage models measure the stimulus to the design: “We’ve fully tested this design when we’ve tested all these scenarios.” Other coverage models look at signals or data in the design and measure whether they’ve been tested: “We’ve fully tested this design when all the FIFOs have been filled at least once.” Finally some coverage models measure code coverage to determine when the design is fully tested.

TECH ARTICLE

Processing Bugs The key to bug-free RTL is to create a complete bug processing machine that helps you find bugs and fix them as quickly as possible. We’ve discussed the pieces of that bug processing machine in this article. The key to success is to recognize that you need all these pieces in place to deliver bug-free RTL as quickly as possible.

Your design goals will drive your coverage model, but you need to have a coverage model before you can claim to have fully tested a design.

Your design goals will drive your coverage model, but you need to have a coverage model before you can claim to have fully tested a design.

The Test Bench Finally, we have the test bench. I’m discussing the test bench last because it is usually the thing that an RTL team will develop first. In fact, many teams may think that their bug processing machine is complete when they’ve written the test case. This is not true. The test bench provides the core functionality that supports all the other parts of the bug processing machine. It allows regression scripts to run multiple tests. It records coverage and creates coverage reports. It catches bugs by stimulating the DUT and comparing the results to known good output. That said, it is not the complete solution to bug processing. You can write test benches many ways. Recent trends are to write test benches in SystemVerilog using the Universal Verification Methodology (UVM), but you can also write test benches in simple SystemVerilog, VHDL, or even C++. There are many ways to do the job.

About the Author Ray Salemi is a veteran of the EDA industry and has been working with Hardware Description Languages since he joined Gateway Design Automation—the company that invented Verilog. Over the course of his career he has worked at Cadence, Sun Microsystems, and Mentor Graphics. Ray is currently a Senior Verification Consultant with Mentor Graphics. Ray earned a BS in Computer Systems Engineering with a minor in English from the University of Massachusetts at Amherst. He earned his MBA from Babson College. He has used this unusual combination of skills to publish several books including the management book “Leading After a Layoff”, the engineering book “FPGA Simulation”, and, most recently, the humorous book “Robot Haiku”.

Visit www.eeweb.com

17


EEWeb PULSE

Episode 2.5

Importance of C Quality in an RT 18

EEWeb | Electrical Engineering Community


Code TOS

SPECIAL FEATURE

In this episode of MCU Wars, Jean Labrosse of Micrium and Richard Barry of FreeRTOS discuss the quality of code in each of their RTOS products and the great lengths they go through to get their RTOS certified. This series was filmed at DevCon 2012 by Renesas in Anaheim, California. DevCon provides an environment for valuable technical information exchange and access to Renesas’ technology experts and partenrs from around the world. Visit www.eeweb.com

19


EEWeb PULSE

Could you elaborate a little more about the quality of code in each of your RTOSs? It’s something that Jean and I take great pride in—the quality of the software Richard that we provide. Again, even though it’s open source, it’s developed through a strict coding standard. As I mentioned earlier, there is a safety-critical version, although it’s not the same now, but it grew out of the same product and is being reengineered. As far as the quality goes, it does prove the quality of the product. One thing I didn’t mention earlier is that on the show floor yesterday, we were actually launching an RX version of that and the product is called SafeRTOS, which comes with a whole load of certification documentation for both medical, European and American standards. Quality is one of our key attributes we like to promote. I would probably say the same thing for our product as well. MicroC/OS-II has been certified for a DO-178B Level A, Jean which is the most stringent certification from the FAA point of view and were flown in highly safety-critical applications. In fact, like I mentioned before, MicroC/OS-II has been used on the Mars Rover and we got a statement from NASA and JPL that basically said they did not change a single line of code to use it in the Mars Rover. That really speaks highly of it. We also have FDA certification, or at least pre-market approval, for FDA and, of course, the industrial safety body, so it’s very robust. When you say quality, to us, quality doesn’t just mean it works, it means it’s also impeccable and that we are extremely meticulous about following the coding standard and that everything is lined up. This is another reason to have the source code available. If you’re giving Richard people source code, you are letting yourself bare, especially when so many thousands of people are downloading it and looking at it. We have to concentrate on the quality for that reason, if nothing else. Of course, Jean and I have different opinions on coding style—Jean will obviously claim that his is superior to mine, and I am obviously going to claim that mine is superior—but at the end of the day, it’s purely about the end user. It’s a subjective thing and you can’t please every user at

20

When you say quality, to us it works, it means it’s also are extremely meticulous a standard and that everythin

the same time. Coming back to the certification, people really shouldn’t underestimate the amount of effort and time and expense that goes into that. The documentation that’s provided and the official certification that you have to go through for certain government bodies goes back to what we were saying about people doing it themselves; sure they can, but it’s going to cost them 10 times the cost and four times the time to do it, so these are very high quality products. To give you an example: just to certify MicroC/OS-II is about 6,000 pages of documentation and they have to run Jean every single function, F-statement, switch statement, and they need to verify that all boundary conditions are verified 100% and gone through the total code coverage. They also have to verify the comments, making sure that by putting a comment in the code, you are commenting on

EEWeb | Electrical Engineering Community


SPECIAL FEATURE

s, quality just doesn’t mean o impeccable and that we about following the coding ng is lined up. ” the proper thing, so that’s also an important thing. 6,000 pages of documentation is a phenomenal amount of work and millions of dollars. You don’t want to be doing that yourself when you can buy it. Going back to Richard the code coverage—in the SafeRTOS product, we use MCDC, which I’m sure Jean will be familiar with, but anyone outside of the aerospace industry won’t necessarily know what it means, but it is the highest level of code coverage that you can possibly provide. Every single route through the code, when you have multiple decisions in a condition, you have to have every single combination of everything to show that there is nothing that’s being generated that is not doing anything. The effort is intense.

Concluded in Episode 6... To view this episode of MCU Wars and other EEWeb videos:

Click Here Visit www.eeweb.com

21


Ele ct ric al En gi ne er in g

JOIN TODAY

BeStar

Need For Universal Wireless Power Solution

Dave Baarman Director Of Advanced Technologies

"Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium laudantium,

doloremque totam

rem

aperiam,

eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem

C om m un ity

EE W eb

ARTICLES

Making Wireless Truly Wireless:

JOBS

COMMUNITY

DEVELOPMENT TOOLS www.eeweb.com

®

Teamwork • Technology • Invention • Listen • Hear

ACOUSTICS & SENSORS PRODUCTS

INDUSTRIES

Speakers

Automotive

Buzzers

Durables

Piezo Elements

Medical

Back-up Alarms

Industrial

Horns

Mobile

Sirens/Bells

Fire / Safety

Beacons

Security

Microphones

Consumer

Sensors

Leisure

Preferred acoustic component supplier to OEMs worldwide

bestartech.com | sales@bestartech.com | 520.439.9204 QS9000 • TS/ISO16949 • IS O 14001 • IS O 13485 • IS O 9001


Get the Datasheet and Order Eval Boards http://www.intersil.com

Dual 15A/Single 30A Step-Down Power Module ISL8225M

Features

The ISL8225M is a fully-encapsulated step-down switching power supply that can deliver up to 100W output power from a small 17mm square PCB footprint. The two 15A outputs may be used independently or combined to deliver a single 30A output. Designing a high-performance board-mounted power supply has never been simpler -- only a few external components are needed to create a very dense and reliable power solution.

• Fully-encapsulated dual step-down switching power supply

Automatic current sharing and phase interleaving allow up to six modules to be paralleled for 180A output capability. 1.5% output voltage accuracy, differential remote voltage sensing and fast transient response create a very high-performance power system. Built-in output over-voltage, over-current and over-temperature protection enhance system reliability. The ISL8225M is available in a thermally-enhanced QFN package. Excellent efficiency and low thermal resistance permit full power operation without heat sinks or fans. In addition, the QFN package with external leads permits easy probing and visual solder inspection.

• Up to 100W output from a 17mm square PCB footprint • Dual 15A or single 30A output • Up to 95% conversion efficiency • 4.5V to 20V input voltage range • 0.6V to 6V output voltage range • 1.5% output voltage accuracy with differential remote sensing • Up to six modules may be paralleled to support 180A output current • Output over-voltage, over-current and over-temperature protection • Full power operation without heat sinks or fans • QFN package with exposed leads permits easy probing and visual solder inspection

Related Resources

Applications

• See AN1789 “ISL8225MEVAL2Z 6-Phase, 90A Evaluation Board Setup Procedure”

• Computing, networking and telecom infrastructure equipment

• See AN1790 “ISL8225MEVAL3Z 30A, Single Output Evaluation Board Setup Procedure”

• Industrial and medical equipment

• See AN1793, “ISL8225MEVAL4Z Dual 15A/Optional 30A Cascadable Evaluation Board”

• General purpose point-of-load (POL) power

• See ISL8225M 110A Thermal Performance Video

VIN

4.5V TO 20V

VIN1 VIN2

4x22µF

VOUT1 VOUT2 VSEN1+

EN/FF1

OFF ON

EN/FF2 VSEN2-

ISL8225M

PGND

SGND

MODE

VSEN1-

17m

m

17

mm

1kΩ RSET 1kΩ

5x100µF

7.5mm

VMON1 VMON2

VCC 4.7µF

1.2V@30A VOUT

COMP1 COMP2 470pF

NOTE: ALL PINS NOT SHOWN ARE FLOATING.

FIGURE 1. COMPLETE 30A STEP-DOWN POWER SUPPLY

December 3, 2012 FN7822.0

FIGURE 2. SMALL FOOTPRINT WITH HIGH POWER DENSITY

Intersil (and design) is a registered trademark of Intersil Americas Inc. Copyright Intersil Americas Inc. 2012 All Rights Reserved. All other trademarks mentioned are the property of their respective owners.


EEWeb PULSE

Review of the

TS1101 Bidirectional CurrentSense Amplifier Demo Board From Touchstone by Gary Crowell EEWeb This review will hopefully show you what Touchstone Semiconductor’s TS1101 bi-directional, symmetrical, high-side current sense amplifier can do. The TS1101 boasts super low 1uA power consumption, and no dead band when the current changes direction. This should allow for simpler designs, save power, and board space in your designs.

there are pads, they left off the pins that are easier to clip or connect to.

Figure 2: Connecting to the TS1101 Board

The TS1101 also features a low input offset voltage of less than 100uV, much lower than some of the competing parts on the market. This part has four available gain options of 25/50/100/200 V/V amplification, so you can choose one that works best in your application. Figure 1: TS1101 Bidirectional Current-Sense Amplifier Circuit

The TS1101 is made for low current, high-side currentsensing amplification in products like cell phones, notebooks, tablets, power management systems, motor control, load protection, and smart battery packs and chargers. What you get with the development board is a TS1101, resistor, and capacitor soldered to a PCB along with some test point pins. There are also large pads for soldering your connections to the board, however where

24

Figure 3: The TS1101 is available with different gain options

EEWeb | Electrical Engineering Community


PRODUCT REVIEW

Figure 4: The TS1101 features

The expression for the TS1101’s output voltage is given by: Vout=Iload x 50mOhm x Rout/Rgain[A/B] Plugging in the values: for the TS1101-100: 400ma x 50mOhm x 10kOhm/100Ohm = 2V for the TS1101-200: 200ma x 50mOhm x 20kOhm/100Ohm = 2V

Figure 6: My results over a range of voltages for TS1101-100

In conclusion, the Touchstone TS1101 is a neat little current sensing amplifier that takes up little real estate in its SOT23-5 package and can take the place of 2 unidirectional CSA’s while providing better performance. The TS1101 offers a variety of gains for your applications, consumes very little power, and is very accurate.

When connected to a 6V supply and 15-ohm or 30-ohm load the TS1101-100 and TS1101-200 demo boards’ Vout should be 2V.

Figure 5: My results at 6V

Figure 7: The TS1101 at work

Visit www.eeweb.com

25


Transform Your iPhone, iPad or iPod into an Oscilloscope with the iMSO-104 Begin Your Experience Now

Experience the iMSO-104 as Joe Wolin, co-founder of EEWeb, gives you an in-depth look into the future of oscilloscopes. UBM ELECTRONICS

2012

WI NNER


Breathe new life into medical product interfaces

NXP’s proven interface products enable medical and health system designers to add features with minimal modifications. Within our portfolio you’ll find LCD displays and capacitive touch interfaces, system connectivity bridges & UARTs, LED controllers, real-time clocks, and I2C-bus peripherals & enablers. To learn more, visit http://www.nxp.com/campaigns/medical-interfaces/2248


The Strike Part 1

Clean Conversation Part 2

Collateral Damage Part 3


Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.