Sunday, November 14, 2010

Scientists, Politicians Take Electromagnetic Pulse (EMP) Threat Seriously. Human Exposure to EM Fields.

Damage to electronic devices, and nation wide infrastructure collapse, due to Electromagnetic Pulse (EMP) from Natural or Man-made sources has been in the open press a few times in the last several months. For example Britain vulnerable to space nuclear attack or 'solar flare' storm, conference told, Scientists, politicians take the threat of an electromagnetic pulse very seriously, and Researchers work to protect, restore vulnerable networks.

It is hard for me to judge how many readers of this blog have any knowlage of EMP, so over at the Ask A Scientist Physics Archive, part of the Newton Project to help students with their homework, we find 16 year old Michael asking about EMP:

Question - When's there's a nuclear blast, how does it create the EMP? - Michael

When a nuclear blast occurs, a number of things happen at once. Manyhigh-energy photons (x-rays and gamma rays) are produced. These photons collide with electrons in the bomb debris or the surrounding air and strip them from their nuclei. This causes a movement of the electrons away from the atomic nuclei. This separation of charges generates an electric field, and the motion of the charged particles (electrons) also induces a magnetic field. Magnetic and electric fields that change with time are all you need to generate electromagnetic radiation.

Because of the high energy of a nuclear explosion and the high temperatureof the fireball, these electromagnetic pulses pack quite a whallop. The frequency of the radiation in an EMP is fairly low, just in the range that electronic devices are sensitive to. Susceptible electronic circuits act as receivers, and pick up damaging voltage and current surges. The electronic components overheat, and that's the end of the device.

Richard Barrans Jr., Ph.D.


If we move up the knowledge scale, in what can be found with simple Internet Searches we find over at the Air University, specifically the Air War College (AWC), on Maxwell Air Force Base, in Montgomery, Alabama, we come across some class training material:
Electromagnetic Pulse Threats in 2010 by Colin R. Miller, Major, USAF; from the Introduction:

Introduction

Current U.S. military transformation strategy centers on information dominance, network-centric warfare, and expeditionary operations. Operations Desert Storm and Iraqi Freedom demonstrated a spectacular evolution of capability in these key areas. Certainly, adversaries learned from Saddam's poor decision to face American forces head-on and will increasingly employ asymmetric attacks to defeat U.S. forces in the future. Electromagnetic pulse (EMP) weapons represent one of the most likely and potentially devastating opportunities for this type of attack in the near future. Ranging from sophisticated intercontinental nuclear weapons specifically designed to generate EMP effects to relatively crude and cheap electromagnetic bombs, these weapons can destroy all electronic devices within a target area as small as an automobile or as large as the continental United States. As U.S. forces continue to modernize and rely on electronic systems for effectiveness, it will become increasingly probable that an adversary will use EMP to strike at America's Achilles' heel. This paper addresses the threat EMP weapons will pose to U.S. expeditionary operations in the near future in terms of their ability to deny access to foreign soil, level the playing field in theater wars, and/or attack the U.S. homeland as a retaliatory or preemptive strike. It begins by discussing the nature of EMP and its effect on vulnerable systems, and then outlines the different methods of generating EMP while categorizing them by probability of use, lethal range, types of (electronic) targets they affect, and who is likely to use them. The paper considers three near-term scenarios for adversary use of EMP and recommends cost-effective response measures. It proposes a diplomatic policy to levy drastic consequences on the perpetrator of an EMP attack, rapid establishment of an EMP-hardened expeditionary force, hardening critical elements of civil infrastructures, integration of EMP attack response in large-scale training scenarios, and congressional action to establish and mandate compliance with EMP hardening standards for future military and civilian systems...

Electronic Circuit Vulnerability to EMP

Electromagnetic pulses damage electrical and electronic circuits by inducing voltages and currents that they are not designed to withstand. To understand how this occurs, it is necessary to understand both the characteristics of electromagnetic pulses and the circuits they offend. An electromagnetic pulse is defined by its rise time (measured in volts/second), its electrical field strength (measured in volts/meter (v/m), and its frequency content (measured in Hertz [Hz]). These factors combine to determine the threat EMP pose to a given system.

Rise time (how long it takes the pulse to reach
peak amplitude) is primarily a factor for protected systems, such as those employing surge protectors. When rise times are less than a few thousandths of a second, protection circuitry often cannot react in time. Field strength defines the amount of energy available to transfer to the target system, and frequency determines the efficiency of that transfer. Electric field orientation is also critical but, for the sake of simplicity, is not considered in this paper. EMPs are typified by fast rise times, high field strengths, and broad frequency content—factors that combine to make them lethal to electronic systems.

EMP induce large voltage and current transients on electrical conductors such as antennas and wires as well as conductive tracks on electronic circuit boards. When pulses enter a system through a path designed to gather electromagnetic energy, such as an antenna, they are said to have entered through the 'front door.' In contrast, when they enter through an unplanned path, such as cracks, seems, trailing wires or conduits, they have entered through the 'back door.' The efficiency of the energy transfer from pulse to system depends upon the frequency compatibility between the pulse and the entry path and on the conductivity of the material. When system characteristics match the offending EMP pulse, higher levels of damage occur. In general, sophisticated integrated circuits with short signal paths are susceptible to high frequency pulses while large electrical systems, such as commercial power characterized by long transmission lines, are vulnerable to low frequency EMP. It follows that a broadband EMP weapon threatens a greater number of systems than a narrowband weapon, though the power requirement for a broadband weapon is much higher.

Regardless of how EMP enters a system, it damages components simply by overloading them. For example, high density metal oxide semiconductor (MOS) computer chips, which rely on extremely narrow internal 'wires' {Bond-wires internal to the IC's.} to connect densely packed components, are permanently damaged when exposed to more than tens of volts or a few tenths of an amp. While it is extremely difficult to calculate the minimum field strength required to induce signals of this magnitude for all cases and systems, testing has shown that pulses of 10 kV/m are sufficient to cause widespread damage.

Ten kV/m could induce electrical charges a billion times more powerful than systems were designed for, not just burning them out, but in some cases melting critical components. As a result, unhardened computers used in data processing systems, communications systems, displays, industrial controls, military systems (including signal processors and electronic engine and flight control systems), telecommunications equipment, radar, satellites, UHF, VHF, HF, and television equipment are all vulnerable to the EMP at and above this level...



In 2009 Newt Gingrich and William Forstchen published the paper A Single Nuke Could Destroy America; a few of the quotes from the paper:

A rocket that can carry a satellite into orbit can also drop a nuclear warhead over any location on the planet in less than forty-five minutes.

...

An electromagnetic pulse (EMP) is a by-product of detonating an atomic bomb above the Earth’s atmosphere. When a nuclear weapon is detonated in space, the gamma rays emitted trigger a massive electrical disturbance in the upper atmosphere. Moving at the speed of light, this overload will short out all electrical equipment, power grids and delicate electronics on the earth’s surface.

...

One small nuclear weapon, delivered by an [Inter Continental Ballistic Missile] ICBM can, in fact, destroy the United States by maximizing the effect of the resultant electromagnetic pulse upon detonation.

...

Within weeks after such an attack, tens of millions of Americans would perish. The impact has been likened to a nationwide Hurricane Katrina. Some studies estimate that 90% of all Americans might very well die in the year after such an attack as our transportation, food distribution, communications, public safety, law enforcement and medical infrastructures collapse.


Less you think the above is nothing but paranoia, on June 9th 2010 the US House of Representatives passed H.R.5026, know as the "GRID Act":

Grid Reliability and Infrastructure Defense Act or GRID Act - (Sec. 2) Amends the Federal Power Act to authorize the Federal Energy Regulatory Commission (FERC), with or without notice, hearing, or report, to issue orders for emergency measures to protect the reliability of either the bulk-power system or the defense critical electric infrastructure whenever the President issues a written directive or determination identifying an imminent grid security threat.

Requires either the President or the Secretary of Energy to notify specified congressional committees promptly whenever the President issues such directive.

Instructs FERC, to the extent practicable in light of the nature of the grid security threat and the urgency for emergency measures, to consult with certain governmental authorities, including Canada and Mexico, regarding implementation of such emergency measures.

Prescribes: (1) implementation procedures; and (2) related cost recovery measures affecting owners, operators, or users of either the bulk-power system or the defense critical electric infrastructure.

Directs FERC to require any owner, user, or operator of the bulk-power system in the United States to implement measures necessary to protect the bulk-power system against specified vulnerabilities.

Directs FERC to order the Electric Reliability Organization (ERO) to submit reliability standards to: (1) protect the bulk-power system from a reasonably foreseeable geomagnetic storm event; and (2) require entities that own or operate large transformers to ensure their adequate availability to restore promptly the reliable operation of the bulk-power system in the event that any such transformer is destroyed or disabled as a result of a reasonably foreseeable physical or other attack or a geomagnetic storm event.

Directs the President to designate for FERC the domestic facilities that are: (1) critical to the national defense; and (2) vulnerable to an electric energy supply disruption.

Directs FERC to require an owner or operator of defense critical electric infrastructure to implement measures to protect it against any vulnerability that has not been adequately addressed.

Directs FERC, before promulgating a rule or issuing such order, to request and consider recommendations from the ERO.

Directs the Secretary to establish a program to develop technical expertise in the protection of systems for the generation, transmission, and distribution of electric energy against either geomagnetic storms or malicious acts using electronic communications or electromagnetic pulse.

Exempts the Tennessee Valley Authority and the Bonneville Power Administration for 11 years from any requirement under this Act pertaining to emergency response measures or measures to address Grid security vulnerabilities (except for a requirement addressing a malicious act using electronic communication).

(Sec. 3) States that the budgetary effects of this Act shall be determined by reference to the latest statement titled "Budgetary Effects of PAYGO Legislation" for this Act, provided that such statement has been submitted prior to the vote on passage.

The bill now awaits US Senate action.

The Federal Energy Regulatory Commission, or FERC, is an independent agency that regulates the interstate transmission of electricity, natural gas, and oil. FERC also reviews proposals to build liquefied natural gas (LNG) terminals and interstate natural gas pipelines as well as licensing hydropower projects. Per the FERC 'About', FERC is the enforcer that oversees environmental matters related to natural gas and hydroelectricity projects and other matters through imposition of civil penalties and other means.

EMP does not have to be cause by Mankind, it could be caused by Solar Storms. A repeat of the Carrington Event in our modern technical society will be devastating, beyound the belief of most people today.

So devastating in fact that The Electric Infrastructure Security (EIS) Council hosts international initiatives to coordinate infrastructure protection against electromagnetic threats, in partnership with government representatives, NGOs and corporations. They just hosted a conference on Solar Flares, about taking out the electric grid, and our collectivly poorly designed Embedded Systems in the name of cost savings.

Are your designs ready for EMP, ESD, or even EMC/RFI?

You can test out your design to see if has even a remote hope of surviving an EMP event with an Avalanche Generator. Avalanche Generator create extremely fast rise time pulses. I don't mean to imply that a simple Avalanche Generator is in any way going to have the same energy level as a real EMP event, but if your circuit doesn't make it through a AG test run, there is no hope for EMP survival. Do note that Avalanche Generator have enough energy to kill you! If you have no experience with high energy circuits this is not the place to start!

Some application notes to get you started:


While many see the above as paranoia, a few people do serious research into related areas such as Louis Slesin of Microwave News, check out his new column Short Takes. Among the recent posts are:

  • ICNIRP's stunning rejection of precautionary policies for power-frequency EMFs.
  • An Australian TV video on a brain tumor victim who blames her glioma on heavy use of a mobile phone. The piece includes an interview with Interphone's Bruce Armstrong.
  • Another video on the latest EMF scam.
  • The New York Times' outlook on EMF/RF health risks (with a link to Mike Repacholi's WHO EMF Project).

I can not stress enough that anyone interested in the medical research field and/or the effects of our ever increasing exposure to EMF's, must read The Body Electric: Electromagnetism and the Foundation of Life by the late Robert Becker and Gary Selden. All research in the field starts here. One key point worth mentioning is that Becker's research showed that low power signals of the same frequency had biological effects that higher power levels of the same signals did not have.

Even the International Electrical Congress (IEC) is getting into the act with their new Assessment of the compliance of low-power electronic and electrical equipment with the basic restrictions related to human exposure to electromagnetic fields (10 MHz to 300 GHz); IEC 62479:2010. Do note that Beckers research was at much lower frequencies.

Saturday, November 13, 2010

Test Driven Development Embedded C with James Grenning *Canceled*

Recently I wrote:

It is rare that anyone of interest comes to the Pittsburgh/Cleveland region to speak, on any subject at all. They might make Philadelphia, but never Pittsburgh, sadly for those who live in this part of the world.

Nick Barendt has gotten James Grenning to give a three day class at The Lean Dog boat in Cleveland Ohio, November 30-Dec 1, 2010, on Test Driven Development for Embedded C.

$1495 After 11/11/10. $1195 Early Bird Price until 11/11/10. Register here.

I covered James upcoming new book Test Driven Development for Embedded C [Nov./2010] in my blog about Makefile tip #0 on automatic serial numbers to be embedded in C code.

Test Driven Development is a powerful technique for building embedded software. This hands-on course teaches the practice of Test Driven Development in the challenging environment of C. In this course you will learn how TDD helps overcome some of the challenges embedded developers face including: unpredictable schedules, poor quality, and the problems that follow. In addition, embedded software developers must conquer the realities of concurrent hardware/software development, scarce target hardware availability, long download times, high deployment costs, as well as the challenges of testing embedded C.

TDD leads to better designs, towards more object oriented approaches to C. In this call you will also learn some of the design principles that can help to guide engineers to better designs.

Most of you have existing legacy code. In this class you will learn valuable techniques for dealing with legacy code. You will see incremental approaches to getting control of the legacy code with tests making improvements to the design less risky.

Test-Driven Development, a key agile practice, helps software developers improve schedule predictability and product quality and can do the same for embedded developers. TDD is valuable even outside of agile development methods.

This course describes the problems addressed by TDD, as well as the additional challenges and benefits of applying it to embedded software. You will learn the test driven techniques as well as specific design approaches to make your C code to testable today, maintainable tomorrow, and ready for a long useful life.

This course will get you and your team well on the way to applying TDD for Embedded C in your development efforts.


Today I'm sorry to say that James's class has been canceled due to lack of interest. Not enough people signed up to make it worth his wile to come to Cleveland. Makes me wonder why so few are interested. No one wants to come to Cleveland, or Pittsburgh? Few are interested in improving their skill set? That is a sure way to be out of a job in this industry. There is little interest in Test Driven Development specifically? What do you think?

Sunday, November 7, 2010

Microsoft Open Sources F#. Will Functional Languages save us?

Michael Barr recently [September, 2010] wrote a column on The Sad State of Embedded Software Process, which tells us that the first embedded system was done about forty years ago, and we still are doing a collectively poor job at building them.

The VDC Research Report What languages do you use to develop software?, tells us that after those forty years 81.9% of our Embedded Systems are still using the language 'C'.

Perhaps there is a connection to using a forty year old language,with not having any great improvements in reliability after forty years?

Why can't any modern language gain significant traction in the Embedded Space? Whom has the clout to develop and promote a new, safe, language for limited resource hard real time (dead line can not be missed without catastrophic consequences) Embedded Systems that will actually gain traction?

I do not have those answers. I'm sure I could come up with a language, as I'm sure you could too, but how to get it used is the question?

Some of the 'safest' languages don't even make VDC's list, unless they are perhaps grouped into the 'Other' category of 11.5%, languages like Esterel and Erlang for example.

To me Esterel seems to be the most obscure language that is used in the most safety critical applications such as flight controls and railroad safety. Esterel has the company Esterel Technologies behind it, as well as an Open Source implementation of an Esterel Compiler. To get a feel of what it is like at the top end of the Safety Critical scale check out some of the Webinars such as Software and Hardware Foundations for Safety Critical.

Next in my obscure list of safe languages would be Erlang. Erlang runs a large percentage of the worlds telephone network, and is considered a 'soft' real time system (dead line can be missed without catastrophic consequences). There has been no larger and longer running networked system than the telephone company. I'm always amused to see such things as 'new' networking technologies rediscovering and reinventing problems and solutions that Erlang solved over a decade ago.


Because Erlang almost has what I'm looking for such as being small (in the sense of running on small micros), and meeting hard real time deadlines, Erlang is the one Functional Language that I play with the most, but does not meet those two criteria.

Functional Languages, in contrast to Procedural Languages like C, take a different approach and mind set to creating safe code.

WikiPedia details the concepts behind Functional programming, the two most important concepts being:

  • Functions have no side effects; a function can not change a global variable for exmple.
  • Data is immutable. Variables are single assignment; Variables don't change value after being set the first time.

Eliminating side effects can make it much easier to understand and predict the behavior of a program, because you are never asking yourself questions like "What is the value of X right now?", X can only be assigned once, so you always know its value.

Professor Stephen A. Edwards whom is a tenured associate professor in the Computer Science Department of Columbia University, once told me that freshman students to his class that had no programming experience picked up Functional Languages, and languages like Esterel quickly, while people that had experience with programming languages such as 'C', struggled to make the transition. Variables that never vary their value can be tough to get your mind around at first, if you programmed in 'C'.

Professor Edwards has put fourth his paper High-level Synthesis from Functional Languages proposing that Functional Languages can be directly compiled to FPGA hardware.

Functional Languages where destined to live in obscurity until this week [Nov. 5th, 2010] when Don Syme of Microsoft announced that the F# Compiler plus Library Source Code is now available as a free download.

While F#,which has its roots in Objective CAML, has little hope of running on a microprocessor based Embedded System, Functional Languages just got a big push in to being more main stream with potential integration to things like Visual Studio. It is my hope that soon there will be a micro friendly Functional Language, that gains widespread adoption.

Will Functional Languages save us? We can only hope.

In closing it is worth mentioning that UML comes in at 5.8% on the VDC report, so I thought I'd mention Miro Samek's new graphical modeling tool QM, that I'm just starting to learn myself. The QM tool is available now for a free download and free, unrestricted use.

Saturday, November 6, 2010

Software Safety enters spotlight in Oil and Gas industry

E&P magazine that covers the upstream oil and gas industry, published an introductory article Software safety enters spotlight by Don Shafer, to Software Safety. Introductory in the sense that Software Safety is a new concept to the readers of the magazine in that industry. An industry that is use to hydraulics and motors rather than firmware and micros.

Back in July [2010] I covered the Testimony of Mike Williams Deepwater Horizon Incident, Gulf Oil Spill, where Mr. Williams explains what happens when Software Safety is not given proper consideration.

Mr. Shafer's article points out that software guidelines and regulations will be coming to the Oil and Gas Industry per David Reid of the International Association of Drilling Contractors.

My own house sets atop the Marcellus Shale and the deeper Utica Shale deposits. Not much activity beyond marketing is happening here in the Oil City area, where the Oil Industry started 150+ years ago, yet. However in the regions where a lot of drilling has started a few have gotten rich beyond their imagination overnight, while others have had their water wells ruined dropping their property values to nothing.

Introducing the Lithium Ion *Capacitor* and yet more burdensome battery regulations

At last, a bit of new energy technology on the scene.

Taiyo-Yuden has introduced the new Cylinder Type Lithium Ion Capacitor.

This new style of component is a hybrid of Lithium-Ion Battery and Electric Double Layer Capacitors (EDLC) more commonly known as SuperCaps or BoostCaps, depending on who's trade mark you want to infringe.

They operate in the voltage ranges of 2.2V to 3.8V. Higher than your typical EDLC and lower than your typical Lithium Ion battery when charging, so it makes using most existing controllers problematic for either type.

Three capacities are offered at 40 Farads (LIC1235R 3R8406), 100 Farads (LIC1840R 3R8107) and 200 Farads (LIC2540R 3R8207).

Alas the data sheet is a bit vague in many places, as I don't think anyone really knows how these might work over the long term. The data sheet is also perplexing in some places with comments like this in the footnotes:

  • #7 Consult us about the discharging current.
  • #12 Consult us about cleaning condition when cleaning circuit-board after soldering. Cleaning may affect lithium ion capacitor. Consult us about cleaning conditions beforehand.

I did consult the Midwest Sales Office and they had no idea what those meant, and I'm still waiting for their reply back from the factory. The Sales Office told me that DigiKey and other distributors had been given pricing that was in the $50 class before distribution markup. Expensive for a LiIon Battery, and low for a EDLC. Hopefully these don't have the hazards shipping charges like I covered last week.

With charge currents in the two to five amp range it will be interesting to see how fast these can be charged up. On the discharge side things are a bit whimper showing that these would be good for LED Flash Lights or memory backup rather than arc welding. Can't wait to get my hands on some to play with.

Now that we have covered the really exciting stuff that keeps you and I in this field, we have to cover the depressing stuff that wants to drive us all screaming from the field, yet more regulations.

UL is warnings us that even more onerous regulations will be coming to batteries in Developments in Battery Research Lead to New Safety Standards as detailed in their new White Paper Safety Issues for Lithium-Ion Batteries (Alas registration is required so that the UL may spam you).

While I'm sure UL does make the world a safer place, I detest that it is an entity that continually creates high price documents that I must purchase and comply to so that they profit and I don't. It is a really good gig if you can figure out how to create such an industry for yourself.

Have you ever actually tried to get a UL1642 test report from a battery manufacture? They don't want to give them up because the say things like "Flamed but did not ignite Cheesecloth". Statements like that kill using that product in places like Coal Mines where Intrinsic Safety is required. Saft Batteries are probably our best hope for such and environment right now.

Ever wonder where some of these hideous laws and regulations come from? Read Shaping State Laws With Little Scrutiny by Laura Sullivan, and you will be appalled, but probably not suprized.

What will the next new energy technology be? Can't wait to find out...

Saturday, October 30, 2010

Watts Humphrey, 1927 - 2010 may he Rest In Peace

Anyone with an interest in Quality Software, or Software Quality, knows the name Watts Humphrey, who was founder of the Software Process Program at the Carnegie Mellon Software Engineering Institute (SEI), and recipient of the National Medal of Technology.

I regret to inform you that he died Thursday, October 28 2010 at his home in Sarasota, Florida. He was 83.

Details may be found here.

I have a couple of his many books on improving the quality of software on my own bookshelf, worth your time to check them out for yourself if you have an interest in improving the quality of the software that you write:


The Coming Lithium Battery Shortage

Politicians are never slow to let a accident or a crises go to waste:

"WASHINGTON (Associated Press) By JOAN LOWY, October/27/2010

Safety advocates have warned for more than a decade that someday an air shipment of lithium batteries like those used in cameras, cell phones and countless other products would catch fire, causing a plane to crash and people to die.

That day may have arrived last month.

A United Parcel Service cargo plane with a fire raging on board, and carrying a large quantity of lithium batteries, crashed near Dubai in the United Arab Emirates on Sept. 3, killing both pilots. The cause of the accident isn’t likely to be determined for months, but investigators suspect the batteries were either the source of the fire or contributed to its severity. The Federal Aviation Administration was concerned enough by the accident to warn air carriers about risks posed by lithium battery shipments.

The accident has given new urgency to a high-stakes lobbying struggle under way in Washington. Pilot unions and safety advocates are urging the government to treat air shipments of lithium batteries as hazardous materials. But rules proposed by the Obama administration are opposed by many of the nation’s top retailers, electronics manufacturers, battery makers and cargo airlines, including UPS.

...

"

To avoid the wrath of Copyright Lawyers you can find many variations of the full text here, some more detailed than others.

The investigation into the UPS airliner crash will not be completed for months, but regulators are taking this opportunity to increase the costs of Lithium Batteries significantly. Better stock up now.

There already are significant regulations about the shipping of Lithium Batteries, in the form of UN Manual of Tests and Criteria, Part III, SubSection 38.3 Lithium Batteries) and Hazardous Material Shipping - Hazard Class 9: Lithium Battery.

Did you know that since January 1, 2008, you may not pack spare lithium batteries in your checked baggage?

I looked into doing a custom Lithium Ion battery pack at one time. There was several thousands of dollars involved just to cover the cost of dealing with the UN shipping regulations.

Less you think that you might be able to use Super Capacitors as a substitute, there are already new regulations on shipping these high farad value capacitors, where the shipping fees exceed the costs of low volume quantities of the capacitors themselves. For example the following is taken from Shipping Information for Maxwell Boostcap® Ultracapacitor Products from Mouser:

Maxwell Boostcap® Ultracapacitor products employ an organic electrolyte, quaternary salt (tetraethylammonium tetraflouroborate) with an organic solvent (acetonitrile).

The following shipping restrictions and fees apply:

The organic solvent acetonitrile is classified as flammable and is subject to shipping restrictions in quantities as outlined in Maxwell Technology's document "Shipping information for transportation of Ultracapacitors".

Ground Shipments to the 48 contiguous United States: Shipped by UPS Ground only. Shipping costs and $25.00 USD hazmat fee will be applied to each box. [As of today October/30/2010.]

Air Shipments to the US and to eligible countries: Shipped by FedEx only. Shipping costs and $110 USD hazmat fee will be applied to each box. [As of today October/30/2010.]

FedEx Customer Reference: http://www.fedex.com/us/dangerousgoods

BatteryUniversity.eu will introduce you to the many regulations.

Soon you and I will not be able to afford the regulation that we must meet to ship products. I'm Taxed Enough Already aren't you?



Take note of the TSA's response to the XKCD 'Bag Check' cartoon shown above; place Mouse Pointer over above image if it is to small. [Note that some XKCD cartoons may be offensive to some, and not recommend for those under 18 years of age.]

Sunday, October 24, 2010

Renesas Devcon2010 was a blast!

For the last eight years or so I've used almost exclusively Atmel AVR chips, and their supporting DataFlash memories. Atmel decided they were not going to deliver DataFlash chips to anyone but "a preferred customer". Keep in mind they told Arrow this, not my company. Arrow has far more volume that I do. If Arrow is not a preferred customer then what am I, and what are you in Atmel's mind?

Mike Scott of Catalyst Sales the regional rep. for Renesas heard of our pain. So he graciously paid my expenses to spend four days at Renesas's four day long Devcon 2010 event near Disneyland in California.

Murray Slovick blogged live from Devcon, while "David L. Jones filmed the highlights:

From my involvement with the Open Source project gEDA and PCB, Dave's focus on those in Day #3 is of particularly interest to me. Pick up the software and do the "Open Hardware with Open Tools" class at home from here. Get the instructions for building the Open Source GCC based tool chain here. Also with the gEDA logo on my shirt, I was put to work manning the Open Source Booth for a couple of hours so that Brandt and DJ of Redhat could spend a bit of time checking out the reset of the exhibits on the show floor on Day #1.

On Day #0, after the nearly eight hour flight, I spent the evening with DJ Delorie, of the DOS port of GCC fame. DJ showed me the Rulz Boards that he designed, that every attendee at Devcon received when they registered, and explained some of the background. For example the LED Blink code was based on Bresenham's line algorithm. That link also shows off the photo-realistic rendering mode of PCB. Did you think those were real boards? They are not.

DJ does a lot of work on GCC as part of his Day Job, and we got into some interesting discussions on 'volatile'. We have discussed volatility of the C keyword volatile before here and here among others in the past.

We got in to the volatile discussion because I commented on a busy loop:


 while( counter-- )
 {
 }

that in AVR's implementation of GCC would have been optimized out of existences. In RX GCC the loop would remain, because you do want the 'counter' function to be optimized "and RX GCC is smart enough to know what is going on there".

For portability add an empty asm("") which is volatile. Note that asm("..." : ...) is not volatile, but asm volatile ("..." : ...) is volatile.

 while( counter-- )
 {
 asm("")
 }

DJ commented on the C standards idea of 'volatile' verses a test-and-set instruction. The standard tells us that there must be explicit read and write operations for such a instruction, which completely negates the purpose of the indivisible test-and-set instruction in the first place.

One thing AVR GCC has over RX GCC is better documentation. DJ referred me to the GCC source code (gcc/config/rx/rx.md and gcc/config/rx/rx.c) to find out how volatile worked, where AVR-LibC documents and FAQ tells us.

Anyone that has used the Atmel AVR for any length of time knows that AVR Freaks is the main community around the parts. Renesas has its own equivalent community called Renesas Rulzs. At Devcon Renesas launched the RX Microcontroller $110,000 Design Contest, which is now the hottest topic on Rulzs.

Something that I found of interest because of having to deal with world wide Paper Pushers (Regulators) is the Outstanding Electromagnetic Immunity of the RX600 Microcontroller Family.

I keep bringing up the RX Family because Renesas intends it to be their "ARM Killer".

Renesas Interactive has Dr. Micro. tips and introductions to the family of parts, and an extensive library of software.

I ran in to Jean Labrosse of Micrium, Inc. again. We bump into each other in person about every five years it seems. Back in 1999 I worked with Jean on his then new uC/OS-II system. If you come across the First Edition of the book, you find my name in the credits. Back then we discussed my idea for a different scheduler, one based on process aging to prevent task starvation, but Jean said things were to far along. Looks like ~ten years later some of those ideas are now in uC/OS-III. I got Jean to autograph my new uC/COS-III book that covers the RX62N board being given away to the attendees first to arrive. This is the same board the RX Contest is based upon.

Something that took me a bit by surprise are the comments I've seen, for example in Dave's eevblog, that people have never heard of Renesas. Renesas is the merger of the old Hitachi (Remember the H8300?) and Mitsubishi microcomputer divisions, several years ago. Also in April of 2010, NEC Electronics and Renesas Technology merge to form Renesas Electronics Corporation.

On the way out of the conference on the last day, I over heard two Renesas people walking by: "What do you think this all cost?" "It was in the seven-figures." Renesas intends to make their presence known in the American Market in a big way.

As Devcon wrapped up at 1PM on Thursday, and my flight back to Pittsburgh was not until 6:45AM Friday morning, I walked the short one mile distance to Disneyland, and spent the afternoon walking around Downtown Disney. Downtown Disney has free admission, unlike the rest of Disney in that area. My frugal nature would just not let me spend $72 to walk around the main park. I rode the free parking-tram to the parking lot, and rode it back, just so I could say I rode a ride at Disneyland. :-) Only money I did spend there was at Jamba Juice drinking a nice healthy Orange Juice Smoothy. I was so impressed that I'd start one of those myself if there was a good location for such a business around here.


In closing here are some Devcon events in the trade press:

Maybe I'll see you at the next Devcon in 2012?