AC/DC FAULT TOLERANT CODE