SlideShare a Scribd company logo
#ESCBOS #ESCBOS
Integra(ng	
  Safety	
  in	
  Silicon:	
  Failsafe	
  cells	
  for	
  IoT	
  Designs	
  
Jonny	
  Doin	
  –	
  GridVortex	
  
#ESCBOS
h"p://www.funfix.com/Gallery/Images/lg_Rock-­‐Climbing-­‐in-­‐Talkeetna-­‐Alaska.jpg	
  
Agenda
•	
  Safety:	
  What	
  is	
  Safety?	
  
•	
  Failure:	
  What	
  consJtutes	
  Failure?	
  
•	
  Failsafe	
  /	
  Failsafe	
  cell	
  Design	
  
•	
  LT	
  Spice	
  as	
  a	
  system	
  modeling	
  tool	
  
•	
  Modeling	
  the	
  Firmware/Hardware	
  interfaces	
  
•	
  SimulaJng	
  SoPware	
  failure	
  at	
  the	
  interface	
  
•	
  Circuit	
  behavior	
  under	
  failure	
  scenarios	
  
•	
  Final	
  thoughts	
  
#ESCBOS
Safety:  What  is  Safety?
A	
  Safe	
  System	
  is	
  one	
  that	
  exhibits:	
  
• DeterminisJc	
  responses	
  
Ø  Controlled	
  Behaviors	
  for	
  all	
  inputs	
  
Ø  Never	
  place	
  its	
  outputs	
  in	
  a	
  
hazardous	
  state	
  
h"p://large.stanford.edu/publicaJons/coal/references/
hvistendahl/images/f1big.jpg	
  
#ESCBOS
Safety:  What  is  Safety?  (2)
REALITY: !
ALL SYSTEMS !
WILL FAIL!
h"p://stat.ks.kidsklik.com/staJcs/files/2012/10/13496768121110667387.jpg	
  
#ESCBOS
Safety:  What  is  Safety?  (3)
In	
  the	
  real	
  world,	
  systems	
  are	
  
always	
  connected	
  to	
  other	
  
systems.	
  
	
  
Hazardous	
  output	
  states	
  
must	
  be	
  qualified	
  from	
  the	
  
downstream	
  (external)	
  
systems	
  point	
  of	
  view.	
  
	
   h"ps://www.engineerjobs.co.uk/images/industry-­‐sectors/img_60_instrumentaJon.jpg	
  
#ESCBOS
Failure
Failure	
  is	
  a	
  malfuncJon	
  on	
  the	
  system,	
  or	
  a	
  deviaJon	
  on	
  
designed	
  behavior.	
  
On	
  any	
  system,	
  such	
  a	
  deviaJon	
  on	
  the	
  chain	
  of	
  processing	
  
can	
  lead	
  to	
  system	
  failure.	
  
h"p://photos1.blogger.com/blogger/4548/1285/1600/Matrix%20System%20Failure.jpg	
  
#ESCBOS
Failsafe  Design
Failsafe	
  design	
  can	
  be	
  “costly”	
  in	
  
system	
  resources.	
  	
  
For	
  example,	
  achieving	
  funcJonal	
  
safety	
  in	
  Microcontollers	
  may	
  
require	
  fully	
  redundant	
  
processors,	
  running	
  in	
  lockstep	
  
mode.	
  	
  	
  
	
  
h"p://img.deusm.com/designnews/2011/09/233762/114610_803509.jpg	
  
Example:	
  Cortex-­‐R4	
  in	
  Lockstep	
  
#ESCBOS
Failsafe  Design  (2)
One	
  example	
  where	
  cost	
  is	
  paramount	
  is	
  
IoT	
  chips,	
  designed	
  in	
  mature	
  processes	
  
(e.g.	
  180nm)	
  with	
  mixed-­‐signal	
  circuitry.	
  
These	
  designs	
  usually	
  have	
  small,	
  low-­‐
cost	
  processor	
  cores,	
  such	
  as	
  an	
  ARM	
  
Cortex-­‐M0.	
  
A	
  hybrid	
  failsafe	
  approach	
  can	
  be	
  
beneficial	
  on	
  many	
  of	
  those	
  IoT	
  cases.	
  
ARM	
  Cortex-­‐M0	
  
Controlled	
  Subsystem	
  
(actuators,	
  power)	
  
GPIOs"
#ESCBOS
Failsafe  Design  (3)
Designs	
  can	
  handle	
  system	
  failures	
  at	
  
the	
  criJcal	
  interfaces,	
  by	
  idenJfying	
  
signal	
  state	
  failure	
  and	
  insuring	
  a	
  
known	
  system	
  state.	
  
	
  
This	
  design	
  pa"ern	
  is	
  recursive,	
  i.e.,	
  
can	
  be	
  applied	
  to	
  subsystems	
  down	
  
to	
  the	
  smaller	
  modules,	
  to	
  ensure	
  
that	
  the	
  whole	
  system	
  fails	
  in	
  a	
  safe	
  
mode.	
  
Complex	
  Control	
  
System	
  
Controlled	
  Subsystem	
  
(actuators,	
  motors)	
  
Cri(cal	
  Interface	
  
#ESCBOS
Failsafe  cell  design
The	
  design	
  case	
  we’ll	
  look	
  into	
  is	
  a	
  hybrid	
  
IoT	
  applicaJon	
  chip,	
  with	
  an	
  integrated	
  
Cortex-­‐M0.	
  	
  
The	
  design	
  goals	
  are:	
  
• Firmware	
  failure	
  detecJon	
  
• Safe	
  reboot	
  of	
  the	
  CPU	
  
• Safe	
  drive	
  logic	
  for	
  no	
  loss	
  of	
  control	
  
	
  
ARM	
  Cortex-­‐M0	
  
Controlled	
  Subsystem	
  
(actuators,	
  power)	
  
GPIOs"
Failsafe	
  Logic	
  
CONTROL I/Os"
#ESCBOS
Failsafe  cell  design  (2)
Failsafe	
  cells	
  use	
  dynamic	
  signals	
  as	
  
control	
  commands,	
  or	
  use	
  encoded	
  
states.	
  	
  
Signals	
  that	
  are	
  “frozen”	
  at	
  ‘0’	
  or	
  ‘1’,	
  or	
  
illegal	
  states,	
  indicate	
  a	
  failed	
  soPware	
  
control	
  funcJon.	
  
The	
  failsafe	
  logic	
  takes	
  over	
  and	
  
guarantees	
  failsafe	
  behavior.	
  
ARM	
  Cortex-­‐M0	
  
Controlled	
  Subsystem	
  
(actuators,	
  power)	
  
GPIOs"
Failsafe	
  Logic	
  
CONTROL I/Os"
#ESCBOS
Failsafe  cell  design  (3)
The	
  failsafe	
  cell	
  can	
  be	
  a	
  digital	
  
funcJon	
  that	
  validates	
  the	
  
control	
  states,	
  or	
  a	
  detector	
  for	
  
the	
  invalid	
  steady	
  state	
  control	
  
signals.	
  	
  
Failsafe	
  circuitry	
  contain	
  
hardwired	
  logic	
  that	
  takes	
  
control	
  and	
  guarantees	
  
behavior	
  like	
  basic	
  control	
  loop	
  
and	
  failsafe	
  responses.	
  
#ESCBOS
LTSpice  as  a  System  tool
LT	
  Spice	
  is	
  a	
  fast	
  and	
  accurate	
  circuit	
  
simulaJon	
  tool.	
  
Used	
  as	
  a	
  circuit	
  simulator,	
  LT	
  Spice	
  can	
  
predict	
  actual	
  behavior	
  with	
  high	
  
precision.	
  
Modelling	
  interacJon	
  of	
  Firmware	
  and	
  
Analog	
  hardware	
  in	
  the	
  design	
  stage	
  is	
  a	
  
powerful	
  capability.	
  
130.5ms 132.0ms 133.5ms 135.0ms 136.5ms
V5942.1
V8942.1
V1052.1
V4052.1
V7052.1
V0152.1
V3152.1
V6152.1
V9152.1
V2252.1
V5252.1
V68052.1
V88052.1
V09052.1
V29052.1
V49052.1
V69052.1
V89052.1
V00152.1
V20152.1
V40152.1
V0.0
V1.0
V2.0
V3.0
V4.0
V5.0
V6.0
V7.0
V8.0
V9.0
V0.1
V(adc_val) V(adc_in)
V(vip)
V(isr_block)
#ESCBOS
LTSpice  as  a  System  tool  (2)
LT	
  Spice	
  allows	
  modeling	
  mixed-­‐signal	
  
systems,	
  including	
  Firmware	
  behavior	
  
interacJon	
  with	
  Analog	
  hardware:	
  
•  Behavioral	
  sources	
  (B)	
  
•  Digital	
  Gate	
  primiJves	
  (Axxx)	
  
•  Hierarchical	
  subcircuits	
  
•  Waveform	
  and	
  data	
  file	
  generators	
  
#ESCBOS
Modelling  system  interfaces
Designing	
  the	
  Fw/Hw	
  interface	
  as	
  a	
  
failsafe	
  node	
  has	
  a	
  number	
  of	
  
advantages:	
  
•  ImplementaJon	
  Decoupling	
  of	
  
Firmware	
  and	
  Hardware	
  
•  Addresses	
  CPU	
  failure	
  
•  Lower	
  cost	
  of	
  implementaJon	
  
#ESCBOS
Modelling  system  interfaces  (2)
Some	
  examples	
  of	
  System	
  interfaces	
  for	
  
failsafe	
  funcJons	
  on	
  control	
  circuitry	
  and	
  
Firmware	
  /	
  Hw	
  interface:	
  	
  
•  Failsafe	
  “Passive”	
  drivers	
  
•  AC	
  coupled	
  commands	
  
•  Failsafe	
  “ON”	
  actuators	
  
#ESCBOS
Example:  Failsafe  “passive”
Output	
  analog	
  drivers	
  can	
  be	
  designed	
  to	
  fail	
  in	
  high-­‐
impedance	
  mode	
  
#ESCBOS
Example:  Failsafe  “passive”  (2)
The	
  2	
  analog	
  outputs	
  are	
  buffered	
  with	
  failsafe	
  drivers	
  that	
  go	
  
high	
  impedance	
  when	
  VCC	
  is	
  lost	
  
#ESCBOS
Example:  Failsafe  “passive”  (3)
Each	
  output	
  is	
  buffered	
  and	
  isolated	
  with	
  2	
  
transistors.	
  
When	
  VCC	
  fails,	
  the	
  transistors	
  cut	
  off,	
  with	
  
very	
  high	
  impedance.	
  
A	
  68K	
  resistor	
  is	
  seen	
  by	
  the	
  output	
  current	
  
source	
  and	
  will	
  drive	
  the	
  output	
  voltage	
  to	
  
6.8V,	
  bringing	
  the	
  output	
  to	
  100%.	
  
This	
  failsafe	
  guarantees	
  the	
  downstream	
  
system	
  is	
  ON,	
  even	
  on	
  loss	
  of	
  control.	
  
#ESCBOS
Example:  AC-­‐coupled  cmds
On	
  a	
  firmware	
  failure,	
  toggling	
  signals	
  will	
  stop	
  at	
  VCC	
  or	
  GND.	
  
AC-­‐coupled	
  commands	
  can	
  detect	
  such	
  firmware	
  failures.	
  
#ESCBOS
Example:  Failsafe  “ON”
A	
  firmware	
  failure	
  will	
  keep	
  the	
  actuator	
  ON.	
  
The	
  firmware	
  commands	
  are	
  designed	
  to	
  turn	
  it	
  OFF.	
  	
  
#ESCBOS
Firmware  control  Loop:  Servo  DAC
PWM	
  value	
  is	
  set	
  to	
  50%	
  when	
  the	
  error	
  is	
  Zero.	
  
PosiJve	
  errors	
  make	
  the	
  PWM	
  duty	
  cycle	
  to	
  be	
  
>	
  50%,	
  driving	
  the	
  net	
  integrated	
  voltage	
  
“down”.	
  
NegaJve	
  errors	
  set	
  <	
  50%	
  duty	
  cycles,	
  driving	
  the	
  
net	
  integrated	
  voltage	
  “up”.	
  
Delays	
  in	
  the	
  Firmware	
  control	
  loop	
  can	
  
adversely	
  affect	
  the	
  output	
  correcJon.	
  
We	
  can	
  simulate	
  the	
  effects	
  of	
  interrupts	
  causing	
  
long	
  control	
  loop	
  latencies.	
  
#ESCBOS
Detail:  firmware  interference
•  For	
  comparison,	
  we	
  removed	
  the	
  PWM	
  from	
  
the	
  control	
  loop:	
  direct	
  interrupt-­‐driven	
  GPIO	
  
mode	
  instead	
  of	
  Servo	
  PWM	
  mode	
  
•  SimulaJng	
  perturbaJon	
  by	
  Interrupts	
  blocking	
  
Jme	
  delaying	
  GPIO	
  control	
  loop	
  
•  Any	
  firmware	
  latency	
  directly	
  affects	
  the	
  
output	
  stability	
  
•  Hard	
  realJme	
  requirements	
  for	
  direct	
  GPIO	
  
control	
  loop	
  
130.5ms 132.0ms 133.5ms 135.0ms 136.5ms
V5942.1
V8942.1
V1052.1
V4052.1
V7052.1
V0152.1
V3152.1
V6152.1
V9152.1
V2252.1
V5252.1
V68052.1
V88052.1
V09052.1
V29052.1
V49052.1
V69052.1
V89052.1
V00152.1
V20152.1
V40152.1
V0.0
V1.0
V2.0
V3.0
V4.0
V5.0
V6.0
V7.0
V8.0
V9.0
V0.1
V(adc_val) V(adc_in)
V(vip)
V(isr_block)
#ESCBOS
Detail:  firmware  interference  (2)
•  Control	
  loop	
  via	
  PWM	
  as	
  Servo	
  drive	
  
•  Same	
  delays	
  caused	
  by	
  Interrupts	
  blocking	
  
Jme,	
  delaying	
  PWM	
  error	
  update	
  
•  PWM	
  servo	
  maintains	
  DC	
  voltage,	
  with	
  minor	
  
error	
  deviaJons	
  
•  SoP	
  realJme	
  requirements	
  for	
  PWM	
  Servo	
  
control	
  loop	
  
•  Accept	
  soP	
  Jming	
  failures	
  from	
  Firmware	
  
operaJon	
  
#ESCBOS
Final  thoughts
• Failsafe	
  design	
  is	
  an	
  essenJal	
  part	
  of	
  Embedded	
  Systems	
  
• On	
  ultralow	
  cost	
  IoT	
  systems,	
  funcJonal	
  safety	
  can	
  be	
  hard	
  
to	
  achieve	
  
• Failsafe	
  cells	
  operate	
  at	
  the	
  interfaces	
  of	
  the	
  control	
  chain	
  
• ImplementaJon	
  cost	
  is	
  very	
  a"racJve,	
  enabling	
  use	
  of	
  low-­‐
end	
  processors	
  
• Simple	
  Mixed-­‐Signal	
  techniques	
  can	
  be	
  used	
  in	
  failsafe	
  cells	
  
#ESCBOS
Thank	
  you	
  
Jonny	
  Doin	
  
jonnydoin@gridvortex.com	
  
	
  

More Related Content

What's hot

Laptop repairing course details
Laptop repairing course detailsLaptop repairing course details
Laptop repairing course details
jyotichhabra
 
44CON 2014 - Simple Hardware Sidechannel Attacks for 10 GBP or Less, Joe Fitz...
44CON 2014 - Simple Hardware Sidechannel Attacks for 10 GBP or Less, Joe Fitz...44CON 2014 - Simple Hardware Sidechannel Attacks for 10 GBP or Less, Joe Fitz...
44CON 2014 - Simple Hardware Sidechannel Attacks for 10 GBP or Less, Joe Fitz...
44CON
 
Apple A8 Series Application Processor
Apple A8 Series Application ProcessorApple A8 Series Application Processor
Apple A8 Series Application Processor
JJ Wu
 
Apple A10 Series Application Processor
Apple A10 Series Application ProcessorApple A10 Series Application Processor
Apple A10 Series Application Processor
JJ Wu
 
Kkmulticopter V5 .5 Blackboard Flash Tool & Programming
Kkmulticopter V5 .5 Blackboard Flash Tool & ProgrammingKkmulticopter V5 .5 Blackboard Flash Tool & Programming
Kkmulticopter V5 .5 Blackboard Flash Tool & Programming
Robomart.com
 
PEW PEW PEW: Designing Secure Boot Securely
PEW PEW PEW: Designing Secure Boot SecurelyPEW PEW PEW: Designing Secure Boot Securely
PEW PEW PEW: Designing Secure Boot Securely
Niek Timmers
 
Nvidia’s tegra line of processors for mobile devices2 2
Nvidia’s tegra line of processors for mobile devices2 2Nvidia’s tegra line of processors for mobile devices2 2
Nvidia’s tegra line of processors for mobile devices2 2
Sukul Yarraguntla
 
量測儀表聯網
量測儀表聯網量測儀表聯網
量測儀表聯網
艾鍗科技
 
Introduction to Vortex86DX2 Motion-Control Evaluation Board
Introduction to Vortex86DX2 Motion-Control Evaluation BoardIntroduction to Vortex86DX2 Motion-Control Evaluation Board
Introduction to Vortex86DX2 Motion-Control Evaluation Board
roboard
 
APFeatures_BuyersGuide
APFeatures_BuyersGuideAPFeatures_BuyersGuide
APFeatures_BuyersGuide
Eugene Yu
 
The GNU Debugger GDB for the benefit of Embedded Engineering
The GNU Debugger GDB for the benefit of Embedded EngineeringThe GNU Debugger GDB for the benefit of Embedded Engineering
The GNU Debugger GDB for the benefit of Embedded Engineering
Julio Guerra
 
OSIS18_IoT : Solution de mise au point pour les systemes embarques, par Julio...
OSIS18_IoT : Solution de mise au point pour les systemes embarques, par Julio...OSIS18_IoT : Solution de mise au point pour les systemes embarques, par Julio...
OSIS18_IoT : Solution de mise au point pour les systemes embarques, par Julio...
Pôle Systematic Paris-Region
 
⭐⭐⭐⭐⭐ #PROTEUS #PCB DESIGN (2020 PAO2)
⭐⭐⭐⭐⭐ #PROTEUS #PCB DESIGN (2020 PAO2)⭐⭐⭐⭐⭐ #PROTEUS #PCB DESIGN (2020 PAO2)
⭐⭐⭐⭐⭐ #PROTEUS #PCB DESIGN (2020 PAO2)
Victor Asanza
 
Adventures in Femtoland: 350 Yuan for Invaluable Fun
Adventures in Femtoland: 350 Yuan for Invaluable FunAdventures in Femtoland: 350 Yuan for Invaluable Fun
Adventures in Femtoland: 350 Yuan for Invaluable Fun
arbitrarycode
 
Musclenerd - Evolution of iPhone Baseband and Unlocks
Musclenerd - Evolution of iPhone Baseband and UnlocksMusclenerd - Evolution of iPhone Baseband and Unlocks
Musclenerd - Evolution of iPhone Baseband and Unlocks
Mike Webb
 
Raspberry Pi - best friend for all your GPIO needs
Raspberry Pi - best friend for all your GPIO needsRaspberry Pi - best friend for all your GPIO needs
Raspberry Pi - best friend for all your GPIO needs
Dobrica Pavlinušić
 
NVIDIA Tegra K1
NVIDIA Tegra K1 NVIDIA Tegra K1
NVIDIA Tegra K1
Akash Maheshwari
 
[CB20] Don't Be Silly - It's Only a Lightbulb by Eyal Itkin
[CB20] Don't Be Silly - It's Only a Lightbulb by Eyal Itkin[CB20] Don't Be Silly - It's Only a Lightbulb by Eyal Itkin
[CB20] Don't Be Silly - It's Only a Lightbulb by Eyal Itkin
CODE BLUE
 
Athens IoT Meetup #3 - Introduction to ESP8266 (Pavlos Isaris)
Athens IoT Meetup #3 - Introduction to ESP8266 (Pavlos Isaris)Athens IoT Meetup #3 - Introduction to ESP8266 (Pavlos Isaris)
Athens IoT Meetup #3 - Introduction to ESP8266 (Pavlos Isaris)
Athens IoT Meetup
 
Aircraft Anti collision system using ZIGBEE Communication
Aircraft Anti collision system using ZIGBEE CommunicationAircraft Anti collision system using ZIGBEE Communication
Aircraft Anti collision system using ZIGBEE Communication
PavanKalyan314
 

What's hot (20)

Laptop repairing course details
Laptop repairing course detailsLaptop repairing course details
Laptop repairing course details
 
44CON 2014 - Simple Hardware Sidechannel Attacks for 10 GBP or Less, Joe Fitz...
44CON 2014 - Simple Hardware Sidechannel Attacks for 10 GBP or Less, Joe Fitz...44CON 2014 - Simple Hardware Sidechannel Attacks for 10 GBP or Less, Joe Fitz...
44CON 2014 - Simple Hardware Sidechannel Attacks for 10 GBP or Less, Joe Fitz...
 
Apple A8 Series Application Processor
Apple A8 Series Application ProcessorApple A8 Series Application Processor
Apple A8 Series Application Processor
 
Apple A10 Series Application Processor
Apple A10 Series Application ProcessorApple A10 Series Application Processor
Apple A10 Series Application Processor
 
Kkmulticopter V5 .5 Blackboard Flash Tool & Programming
Kkmulticopter V5 .5 Blackboard Flash Tool & ProgrammingKkmulticopter V5 .5 Blackboard Flash Tool & Programming
Kkmulticopter V5 .5 Blackboard Flash Tool & Programming
 
PEW PEW PEW: Designing Secure Boot Securely
PEW PEW PEW: Designing Secure Boot SecurelyPEW PEW PEW: Designing Secure Boot Securely
PEW PEW PEW: Designing Secure Boot Securely
 
Nvidia’s tegra line of processors for mobile devices2 2
Nvidia’s tegra line of processors for mobile devices2 2Nvidia’s tegra line of processors for mobile devices2 2
Nvidia’s tegra line of processors for mobile devices2 2
 
量測儀表聯網
量測儀表聯網量測儀表聯網
量測儀表聯網
 
Introduction to Vortex86DX2 Motion-Control Evaluation Board
Introduction to Vortex86DX2 Motion-Control Evaluation BoardIntroduction to Vortex86DX2 Motion-Control Evaluation Board
Introduction to Vortex86DX2 Motion-Control Evaluation Board
 
APFeatures_BuyersGuide
APFeatures_BuyersGuideAPFeatures_BuyersGuide
APFeatures_BuyersGuide
 
The GNU Debugger GDB for the benefit of Embedded Engineering
The GNU Debugger GDB for the benefit of Embedded EngineeringThe GNU Debugger GDB for the benefit of Embedded Engineering
The GNU Debugger GDB for the benefit of Embedded Engineering
 
OSIS18_IoT : Solution de mise au point pour les systemes embarques, par Julio...
OSIS18_IoT : Solution de mise au point pour les systemes embarques, par Julio...OSIS18_IoT : Solution de mise au point pour les systemes embarques, par Julio...
OSIS18_IoT : Solution de mise au point pour les systemes embarques, par Julio...
 
⭐⭐⭐⭐⭐ #PROTEUS #PCB DESIGN (2020 PAO2)
⭐⭐⭐⭐⭐ #PROTEUS #PCB DESIGN (2020 PAO2)⭐⭐⭐⭐⭐ #PROTEUS #PCB DESIGN (2020 PAO2)
⭐⭐⭐⭐⭐ #PROTEUS #PCB DESIGN (2020 PAO2)
 
Adventures in Femtoland: 350 Yuan for Invaluable Fun
Adventures in Femtoland: 350 Yuan for Invaluable FunAdventures in Femtoland: 350 Yuan for Invaluable Fun
Adventures in Femtoland: 350 Yuan for Invaluable Fun
 
Musclenerd - Evolution of iPhone Baseband and Unlocks
Musclenerd - Evolution of iPhone Baseband and UnlocksMusclenerd - Evolution of iPhone Baseband and Unlocks
Musclenerd - Evolution of iPhone Baseband and Unlocks
 
Raspberry Pi - best friend for all your GPIO needs
Raspberry Pi - best friend for all your GPIO needsRaspberry Pi - best friend for all your GPIO needs
Raspberry Pi - best friend for all your GPIO needs
 
NVIDIA Tegra K1
NVIDIA Tegra K1 NVIDIA Tegra K1
NVIDIA Tegra K1
 
[CB20] Don't Be Silly - It's Only a Lightbulb by Eyal Itkin
[CB20] Don't Be Silly - It's Only a Lightbulb by Eyal Itkin[CB20] Don't Be Silly - It's Only a Lightbulb by Eyal Itkin
[CB20] Don't Be Silly - It's Only a Lightbulb by Eyal Itkin
 
Athens IoT Meetup #3 - Introduction to ESP8266 (Pavlos Isaris)
Athens IoT Meetup #3 - Introduction to ESP8266 (Pavlos Isaris)Athens IoT Meetup #3 - Introduction to ESP8266 (Pavlos Isaris)
Athens IoT Meetup #3 - Introduction to ESP8266 (Pavlos Isaris)
 
Aircraft Anti collision system using ZIGBEE Communication
Aircraft Anti collision system using ZIGBEE CommunicationAircraft Anti collision system using ZIGBEE Communication
Aircraft Anti collision system using ZIGBEE Communication
 

Viewers also liked

Will and would
Will and wouldWill and would
Reverse auctioning engine
Reverse auctioning engine Reverse auctioning engine
Reverse auctioning engine
srivaishnavikarusala
 
Esc 209 paper_doin
Esc 209 paper_doinEsc 209 paper_doin
Esc 209 paper_doin
Jonny Doin
 
Transmission Summit 2016- Halpern
Transmission Summit 2016- HalpernTransmission Summit 2016- Halpern
Transmission Summit 2016- Halpern
Jack Halpern
 
Titulos valores dip
Titulos valores dipTitulos valores dip
Titulos valores dip
NesmaryPalluotto
 
Jonny doin safe io t- lt_spice failsafe
Jonny doin safe io t- lt_spice failsafeJonny doin safe io t- lt_spice failsafe
Jonny doin safe io t- lt_spice failsafe
Jonny Doin
 
curriculum Vitae (updated)
curriculum Vitae (updated)curriculum Vitae (updated)
curriculum Vitae (updated)
kashaf imran
 
Sts 401 slides-doin
Sts 401 slides-doinSts 401 slides-doin
Sts 401 slides-doin
Jonny Doin
 
Family members and words to describe people
Family members and words to describe peopleFamily members and words to describe people
Family members and words to describe people
Universidad Tecnológica de Pereira
 
Esc 209 slides-doin
Esc 209 slides-doinEsc 209 slides-doin
Esc 209 slides-doin
Jonny Doin
 
5ta actividad
5ta actividad5ta actividad
5ta actividad
NesmaryPalluotto
 
Personas juridicas del dip
Personas juridicas del dipPersonas juridicas del dip
Personas juridicas del dip
NesmaryPalluotto
 
Content Marketing_Tiyasa Saha
Content Marketing_Tiyasa SahaContent Marketing_Tiyasa Saha
Content Marketing_Tiyasa Saha
tiyasa saha
 
AutoCAD
AutoCAD   AutoCAD
Info cc
Info ccInfo cc
Info cc
Kat Hallaert
 
Modelados con solidos
Modelados con solidosModelados con solidos
Modelados con solidos
Hamerly Sanchez Vilchez
 
Irfan_Ahmed_CV
Irfan_Ahmed_CVIrfan_Ahmed_CV
Irfan_Ahmed_CV
Irfan Ahmed Shakir
 
sectores economicos
sectores economicossectores economicos
sectores economicos
dianba26
 
The wondercrump world of roald dahl
The wondercrump world of roald dahlThe wondercrump world of roald dahl
The wondercrump world of roald dahl
Carol Clifton
 

Viewers also liked (20)

Will and would
Will and wouldWill and would
Will and would
 
Reverse auctioning engine
Reverse auctioning engine Reverse auctioning engine
Reverse auctioning engine
 
Esc 209 paper_doin
Esc 209 paper_doinEsc 209 paper_doin
Esc 209 paper_doin
 
Transmission Summit 2016- Halpern
Transmission Summit 2016- HalpernTransmission Summit 2016- Halpern
Transmission Summit 2016- Halpern
 
Titulos valores dip
Titulos valores dipTitulos valores dip
Titulos valores dip
 
Comercio
ComercioComercio
Comercio
 
Jonny doin safe io t- lt_spice failsafe
Jonny doin safe io t- lt_spice failsafeJonny doin safe io t- lt_spice failsafe
Jonny doin safe io t- lt_spice failsafe
 
curriculum Vitae (updated)
curriculum Vitae (updated)curriculum Vitae (updated)
curriculum Vitae (updated)
 
Sts 401 slides-doin
Sts 401 slides-doinSts 401 slides-doin
Sts 401 slides-doin
 
Family members and words to describe people
Family members and words to describe peopleFamily members and words to describe people
Family members and words to describe people
 
Esc 209 slides-doin
Esc 209 slides-doinEsc 209 slides-doin
Esc 209 slides-doin
 
5ta actividad
5ta actividad5ta actividad
5ta actividad
 
Personas juridicas del dip
Personas juridicas del dipPersonas juridicas del dip
Personas juridicas del dip
 
Content Marketing_Tiyasa Saha
Content Marketing_Tiyasa SahaContent Marketing_Tiyasa Saha
Content Marketing_Tiyasa Saha
 
AutoCAD
AutoCAD   AutoCAD
AutoCAD
 
Info cc
Info ccInfo cc
Info cc
 
Modelados con solidos
Modelados con solidosModelados con solidos
Modelados con solidos
 
Irfan_Ahmed_CV
Irfan_Ahmed_CVIrfan_Ahmed_CV
Irfan_Ahmed_CV
 
sectores economicos
sectores economicossectores economicos
sectores economicos
 
The wondercrump world of roald dahl
The wondercrump world of roald dahlThe wondercrump world of roald dahl
The wondercrump world of roald dahl
 

Similar to SiliconFailsafeForIoT_Doin

Jonny doin lt spice servo_dac
Jonny doin lt spice servo_dacJonny doin lt spice servo_dac
Jonny doin lt spice servo_dac
Jonny Doin
 
AVR HOW-TO GUIDE Interfacing SPI-Ethernet With AVR Slicker Contents At A Glance
AVR HOW-TO GUIDE Interfacing SPI-Ethernet With AVR Slicker Contents At A GlanceAVR HOW-TO GUIDE Interfacing SPI-Ethernet With AVR Slicker Contents At A Glance
AVR HOW-TO GUIDE Interfacing SPI-Ethernet With AVR Slicker Contents At A Glance
Scott Faria
 
PLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
PLC, DCS and PLC vs DCS Presentation by Jitender Singh ShekhawatPLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
PLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
Jitender Singh Shekhawat
 
Michael Ledford Fall 2014 Resume
Michael Ledford Fall 2014 ResumeMichael Ledford Fall 2014 Resume
Michael Ledford Fall 2014 Resume
Michael Ledford
 
Density based traffic light controlling (2)
Density based traffic light controlling (2)Density based traffic light controlling (2)
Density based traffic light controlling (2)
hardik1240
 
Embedded System for begners and good for seminar
 Embedded System for begners and good for seminar Embedded System for begners and good for seminar
Embedded System for begners and good for seminar
Swaraj Nayak
 
Embedded two mark question
Embedded two mark questionEmbedded two mark question
Embedded two mark question
JCT COLLEGE OF ENGINEERING AND TECHNOLOGY
 
Low cost embedded system
Low cost embedded systemLow cost embedded system
Low cost embedded system
ece svit
 
Intro to IO-Link
Intro to IO-LinkIntro to IO-Link
Intro to IO-Link
Neil Farrow, P.E.
 
Embeded system
Embeded systemEmbeded system
Embeded system
sanjay joshi
 
Troubleshooting & Tools
Troubleshooting & ToolsTroubleshooting & Tools
Troubleshooting & Tools
Prabu U
 
01 introduction to_plc-pac_rev01_fa16
01 introduction to_plc-pac_rev01_fa1601 introduction to_plc-pac_rev01_fa16
01 introduction to_plc-pac_rev01_fa16
John Todora
 
ELECTRONIC AND - Copy (1)
ELECTRONIC AND - Copy (1)ELECTRONIC AND - Copy (1)
ELECTRONIC AND - Copy (1)
Abu Md Choudhury
 
Embeded system
Embeded systemEmbeded system
Embeded system
sanjay joshi
 
LayerZero Series 70: eRPP-FS Front/Side Access Remote Power Panel
LayerZero Series 70: eRPP-FS Front/Side Access Remote Power PanelLayerZero Series 70: eRPP-FS Front/Side Access Remote Power Panel
LayerZero Series 70: eRPP-FS Front/Side Access Remote Power Panel
LayerZero Power Systems, Inc.
 
Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)
Future Insights
 
Obstacle Avoidance Robotic Vehicle
Obstacle Avoidance Robotic VehicleObstacle Avoidance Robotic Vehicle
Obstacle Avoidance Robotic Vehicle
Edgefxkits & Solutions
 
Wireless stepper motor control using zigbee
Wireless stepper motor control  using zigbeeWireless stepper motor control  using zigbee
Wireless stepper motor control using zigbee
savan Darji
 
FPGA based 10G Performance Tester for HW OpenFlow Switch
FPGA based 10G Performance Tester for HW OpenFlow SwitchFPGA based 10G Performance Tester for HW OpenFlow Switch
FPGA based 10G Performance Tester for HW OpenFlow Switch
Yutaka Yasuda
 
WIZnet Inc Overview
WIZnet Inc OverviewWIZnet Inc Overview
WIZnet Inc Overview
AndrewPark84
 

Similar to SiliconFailsafeForIoT_Doin (20)

Jonny doin lt spice servo_dac
Jonny doin lt spice servo_dacJonny doin lt spice servo_dac
Jonny doin lt spice servo_dac
 
AVR HOW-TO GUIDE Interfacing SPI-Ethernet With AVR Slicker Contents At A Glance
AVR HOW-TO GUIDE Interfacing SPI-Ethernet With AVR Slicker Contents At A GlanceAVR HOW-TO GUIDE Interfacing SPI-Ethernet With AVR Slicker Contents At A Glance
AVR HOW-TO GUIDE Interfacing SPI-Ethernet With AVR Slicker Contents At A Glance
 
PLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
PLC, DCS and PLC vs DCS Presentation by Jitender Singh ShekhawatPLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
PLC, DCS and PLC vs DCS Presentation by Jitender Singh Shekhawat
 
Michael Ledford Fall 2014 Resume
Michael Ledford Fall 2014 ResumeMichael Ledford Fall 2014 Resume
Michael Ledford Fall 2014 Resume
 
Density based traffic light controlling (2)
Density based traffic light controlling (2)Density based traffic light controlling (2)
Density based traffic light controlling (2)
 
Embedded System for begners and good for seminar
 Embedded System for begners and good for seminar Embedded System for begners and good for seminar
Embedded System for begners and good for seminar
 
Embedded two mark question
Embedded two mark questionEmbedded two mark question
Embedded two mark question
 
Low cost embedded system
Low cost embedded systemLow cost embedded system
Low cost embedded system
 
Intro to IO-Link
Intro to IO-LinkIntro to IO-Link
Intro to IO-Link
 
Embeded system
Embeded systemEmbeded system
Embeded system
 
Troubleshooting & Tools
Troubleshooting & ToolsTroubleshooting & Tools
Troubleshooting & Tools
 
01 introduction to_plc-pac_rev01_fa16
01 introduction to_plc-pac_rev01_fa1601 introduction to_plc-pac_rev01_fa16
01 introduction to_plc-pac_rev01_fa16
 
ELECTRONIC AND - Copy (1)
ELECTRONIC AND - Copy (1)ELECTRONIC AND - Copy (1)
ELECTRONIC AND - Copy (1)
 
Embeded system
Embeded systemEmbeded system
Embeded system
 
LayerZero Series 70: eRPP-FS Front/Side Access Remote Power Panel
LayerZero Series 70: eRPP-FS Front/Side Access Remote Power PanelLayerZero Series 70: eRPP-FS Front/Side Access Remote Power Panel
LayerZero Series 70: eRPP-FS Front/Side Access Remote Power Panel
 
Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)
 
Obstacle Avoidance Robotic Vehicle
Obstacle Avoidance Robotic VehicleObstacle Avoidance Robotic Vehicle
Obstacle Avoidance Robotic Vehicle
 
Wireless stepper motor control using zigbee
Wireless stepper motor control  using zigbeeWireless stepper motor control  using zigbee
Wireless stepper motor control using zigbee
 
FPGA based 10G Performance Tester for HW OpenFlow Switch
FPGA based 10G Performance Tester for HW OpenFlow SwitchFPGA based 10G Performance Tester for HW OpenFlow Switch
FPGA based 10G Performance Tester for HW OpenFlow Switch
 
WIZnet Inc Overview
WIZnet Inc OverviewWIZnet Inc Overview
WIZnet Inc Overview
 

More from Jonny Doin

Impacto metrologialegal jonnydoin
Impacto metrologialegal jonnydoinImpacto metrologialegal jonnydoin
Impacto metrologialegal jonnydoin
Jonny Doin
 
Network insecuritysimplehackscortexm jonnydoin
Network insecuritysimplehackscortexm jonnydoinNetwork insecuritysimplehackscortexm jonnydoin
Network insecuritysimplehackscortexm jonnydoin
Jonny Doin
 
Io t hurdles_i_pv6_slides_doin
Io t hurdles_i_pv6_slides_doinIo t hurdles_i_pv6_slides_doin
Io t hurdles_i_pv6_slides_doin
Jonny Doin
 
Implementing lora smartcity doin
Implementing lora smartcity doinImplementing lora smartcity doin
Implementing lora smartcity doin
Jonny Doin
 
Csc jonny doin_painel1_sm
Csc jonny doin_painel1_smCsc jonny doin_painel1_sm
Csc jonny doin_painel1_sm
Jonny Doin
 
ParallelLogicToEventDrivenFirmware_Doin
ParallelLogicToEventDrivenFirmware_DoinParallelLogicToEventDrivenFirmware_Doin
ParallelLogicToEventDrivenFirmware_Doin
Jonny Doin
 
ImplementingCryptoSecurityARMCortex_Doin
ImplementingCryptoSecurityARMCortex_DoinImplementingCryptoSecurityARMCortex_Doin
ImplementingCryptoSecurityARMCortex_Doin
Jonny Doin
 

More from Jonny Doin (7)

Impacto metrologialegal jonnydoin
Impacto metrologialegal jonnydoinImpacto metrologialegal jonnydoin
Impacto metrologialegal jonnydoin
 
Network insecuritysimplehackscortexm jonnydoin
Network insecuritysimplehackscortexm jonnydoinNetwork insecuritysimplehackscortexm jonnydoin
Network insecuritysimplehackscortexm jonnydoin
 
Io t hurdles_i_pv6_slides_doin
Io t hurdles_i_pv6_slides_doinIo t hurdles_i_pv6_slides_doin
Io t hurdles_i_pv6_slides_doin
 
Implementing lora smartcity doin
Implementing lora smartcity doinImplementing lora smartcity doin
Implementing lora smartcity doin
 
Csc jonny doin_painel1_sm
Csc jonny doin_painel1_smCsc jonny doin_painel1_sm
Csc jonny doin_painel1_sm
 
ParallelLogicToEventDrivenFirmware_Doin
ParallelLogicToEventDrivenFirmware_DoinParallelLogicToEventDrivenFirmware_Doin
ParallelLogicToEventDrivenFirmware_Doin
 
ImplementingCryptoSecurityARMCortex_Doin
ImplementingCryptoSecurityARMCortex_DoinImplementingCryptoSecurityARMCortex_Doin
ImplementingCryptoSecurityARMCortex_Doin
 

SiliconFailsafeForIoT_Doin

  • 1. #ESCBOS #ESCBOS Integra(ng  Safety  in  Silicon:  Failsafe  cells  for  IoT  Designs   Jonny  Doin  –  GridVortex  
  • 2. #ESCBOS h"p://www.funfix.com/Gallery/Images/lg_Rock-­‐Climbing-­‐in-­‐Talkeetna-­‐Alaska.jpg   Agenda •  Safety:  What  is  Safety?   •  Failure:  What  consJtutes  Failure?   •  Failsafe  /  Failsafe  cell  Design   •  LT  Spice  as  a  system  modeling  tool   •  Modeling  the  Firmware/Hardware  interfaces   •  SimulaJng  SoPware  failure  at  the  interface   •  Circuit  behavior  under  failure  scenarios   •  Final  thoughts  
  • 3. #ESCBOS Safety:  What  is  Safety? A  Safe  System  is  one  that  exhibits:   • DeterminisJc  responses   Ø  Controlled  Behaviors  for  all  inputs   Ø  Never  place  its  outputs  in  a   hazardous  state   h"p://large.stanford.edu/publicaJons/coal/references/ hvistendahl/images/f1big.jpg  
  • 4. #ESCBOS Safety:  What  is  Safety?  (2) REALITY: ! ALL SYSTEMS ! WILL FAIL! h"p://stat.ks.kidsklik.com/staJcs/files/2012/10/13496768121110667387.jpg  
  • 5. #ESCBOS Safety:  What  is  Safety?  (3) In  the  real  world,  systems  are   always  connected  to  other   systems.     Hazardous  output  states   must  be  qualified  from  the   downstream  (external)   systems  point  of  view.     h"ps://www.engineerjobs.co.uk/images/industry-­‐sectors/img_60_instrumentaJon.jpg  
  • 6. #ESCBOS Failure Failure  is  a  malfuncJon  on  the  system,  or  a  deviaJon  on   designed  behavior.   On  any  system,  such  a  deviaJon  on  the  chain  of  processing   can  lead  to  system  failure.   h"p://photos1.blogger.com/blogger/4548/1285/1600/Matrix%20System%20Failure.jpg  
  • 7. #ESCBOS Failsafe  Design Failsafe  design  can  be  “costly”  in   system  resources.     For  example,  achieving  funcJonal   safety  in  Microcontollers  may   require  fully  redundant   processors,  running  in  lockstep   mode.         h"p://img.deusm.com/designnews/2011/09/233762/114610_803509.jpg   Example:  Cortex-­‐R4  in  Lockstep  
  • 8. #ESCBOS Failsafe  Design  (2) One  example  where  cost  is  paramount  is   IoT  chips,  designed  in  mature  processes   (e.g.  180nm)  with  mixed-­‐signal  circuitry.   These  designs  usually  have  small,  low-­‐ cost  processor  cores,  such  as  an  ARM   Cortex-­‐M0.   A  hybrid  failsafe  approach  can  be   beneficial  on  many  of  those  IoT  cases.   ARM  Cortex-­‐M0   Controlled  Subsystem   (actuators,  power)   GPIOs"
  • 9. #ESCBOS Failsafe  Design  (3) Designs  can  handle  system  failures  at   the  criJcal  interfaces,  by  idenJfying   signal  state  failure  and  insuring  a   known  system  state.     This  design  pa"ern  is  recursive,  i.e.,   can  be  applied  to  subsystems  down   to  the  smaller  modules,  to  ensure   that  the  whole  system  fails  in  a  safe   mode.   Complex  Control   System   Controlled  Subsystem   (actuators,  motors)   Cri(cal  Interface  
  • 10. #ESCBOS Failsafe  cell  design The  design  case  we’ll  look  into  is  a  hybrid   IoT  applicaJon  chip,  with  an  integrated   Cortex-­‐M0.     The  design  goals  are:   • Firmware  failure  detecJon   • Safe  reboot  of  the  CPU   • Safe  drive  logic  for  no  loss  of  control     ARM  Cortex-­‐M0   Controlled  Subsystem   (actuators,  power)   GPIOs" Failsafe  Logic   CONTROL I/Os"
  • 11. #ESCBOS Failsafe  cell  design  (2) Failsafe  cells  use  dynamic  signals  as   control  commands,  or  use  encoded   states.     Signals  that  are  “frozen”  at  ‘0’  or  ‘1’,  or   illegal  states,  indicate  a  failed  soPware   control  funcJon.   The  failsafe  logic  takes  over  and   guarantees  failsafe  behavior.   ARM  Cortex-­‐M0   Controlled  Subsystem   (actuators,  power)   GPIOs" Failsafe  Logic   CONTROL I/Os"
  • 12. #ESCBOS Failsafe  cell  design  (3) The  failsafe  cell  can  be  a  digital   funcJon  that  validates  the   control  states,  or  a  detector  for   the  invalid  steady  state  control   signals.     Failsafe  circuitry  contain   hardwired  logic  that  takes   control  and  guarantees   behavior  like  basic  control  loop   and  failsafe  responses.  
  • 13. #ESCBOS LTSpice  as  a  System  tool LT  Spice  is  a  fast  and  accurate  circuit   simulaJon  tool.   Used  as  a  circuit  simulator,  LT  Spice  can   predict  actual  behavior  with  high   precision.   Modelling  interacJon  of  Firmware  and   Analog  hardware  in  the  design  stage  is  a   powerful  capability.   130.5ms 132.0ms 133.5ms 135.0ms 136.5ms V5942.1 V8942.1 V1052.1 V4052.1 V7052.1 V0152.1 V3152.1 V6152.1 V9152.1 V2252.1 V5252.1 V68052.1 V88052.1 V09052.1 V29052.1 V49052.1 V69052.1 V89052.1 V00152.1 V20152.1 V40152.1 V0.0 V1.0 V2.0 V3.0 V4.0 V5.0 V6.0 V7.0 V8.0 V9.0 V0.1 V(adc_val) V(adc_in) V(vip) V(isr_block)
  • 14. #ESCBOS LTSpice  as  a  System  tool  (2) LT  Spice  allows  modeling  mixed-­‐signal   systems,  including  Firmware  behavior   interacJon  with  Analog  hardware:   •  Behavioral  sources  (B)   •  Digital  Gate  primiJves  (Axxx)   •  Hierarchical  subcircuits   •  Waveform  and  data  file  generators  
  • 15. #ESCBOS Modelling  system  interfaces Designing  the  Fw/Hw  interface  as  a   failsafe  node  has  a  number  of   advantages:   •  ImplementaJon  Decoupling  of   Firmware  and  Hardware   •  Addresses  CPU  failure   •  Lower  cost  of  implementaJon  
  • 16. #ESCBOS Modelling  system  interfaces  (2) Some  examples  of  System  interfaces  for   failsafe  funcJons  on  control  circuitry  and   Firmware  /  Hw  interface:     •  Failsafe  “Passive”  drivers   •  AC  coupled  commands   •  Failsafe  “ON”  actuators  
  • 17. #ESCBOS Example:  Failsafe  “passive” Output  analog  drivers  can  be  designed  to  fail  in  high-­‐ impedance  mode  
  • 18. #ESCBOS Example:  Failsafe  “passive”  (2) The  2  analog  outputs  are  buffered  with  failsafe  drivers  that  go   high  impedance  when  VCC  is  lost  
  • 19. #ESCBOS Example:  Failsafe  “passive”  (3) Each  output  is  buffered  and  isolated  with  2   transistors.   When  VCC  fails,  the  transistors  cut  off,  with   very  high  impedance.   A  68K  resistor  is  seen  by  the  output  current   source  and  will  drive  the  output  voltage  to   6.8V,  bringing  the  output  to  100%.   This  failsafe  guarantees  the  downstream   system  is  ON,  even  on  loss  of  control.  
  • 20. #ESCBOS Example:  AC-­‐coupled  cmds On  a  firmware  failure,  toggling  signals  will  stop  at  VCC  or  GND.   AC-­‐coupled  commands  can  detect  such  firmware  failures.  
  • 21. #ESCBOS Example:  Failsafe  “ON” A  firmware  failure  will  keep  the  actuator  ON.   The  firmware  commands  are  designed  to  turn  it  OFF.    
  • 22. #ESCBOS Firmware  control  Loop:  Servo  DAC PWM  value  is  set  to  50%  when  the  error  is  Zero.   PosiJve  errors  make  the  PWM  duty  cycle  to  be   >  50%,  driving  the  net  integrated  voltage   “down”.   NegaJve  errors  set  <  50%  duty  cycles,  driving  the   net  integrated  voltage  “up”.   Delays  in  the  Firmware  control  loop  can   adversely  affect  the  output  correcJon.   We  can  simulate  the  effects  of  interrupts  causing   long  control  loop  latencies.  
  • 23. #ESCBOS Detail:  firmware  interference •  For  comparison,  we  removed  the  PWM  from   the  control  loop:  direct  interrupt-­‐driven  GPIO   mode  instead  of  Servo  PWM  mode   •  SimulaJng  perturbaJon  by  Interrupts  blocking   Jme  delaying  GPIO  control  loop   •  Any  firmware  latency  directly  affects  the   output  stability   •  Hard  realJme  requirements  for  direct  GPIO   control  loop   130.5ms 132.0ms 133.5ms 135.0ms 136.5ms V5942.1 V8942.1 V1052.1 V4052.1 V7052.1 V0152.1 V3152.1 V6152.1 V9152.1 V2252.1 V5252.1 V68052.1 V88052.1 V09052.1 V29052.1 V49052.1 V69052.1 V89052.1 V00152.1 V20152.1 V40152.1 V0.0 V1.0 V2.0 V3.0 V4.0 V5.0 V6.0 V7.0 V8.0 V9.0 V0.1 V(adc_val) V(adc_in) V(vip) V(isr_block)
  • 24. #ESCBOS Detail:  firmware  interference  (2) •  Control  loop  via  PWM  as  Servo  drive   •  Same  delays  caused  by  Interrupts  blocking   Jme,  delaying  PWM  error  update   •  PWM  servo  maintains  DC  voltage,  with  minor   error  deviaJons   •  SoP  realJme  requirements  for  PWM  Servo   control  loop   •  Accept  soP  Jming  failures  from  Firmware   operaJon  
  • 25. #ESCBOS Final  thoughts • Failsafe  design  is  an  essenJal  part  of  Embedded  Systems   • On  ultralow  cost  IoT  systems,  funcJonal  safety  can  be  hard   to  achieve   • Failsafe  cells  operate  at  the  interfaces  of  the  control  chain   • ImplementaJon  cost  is  very  a"racJve,  enabling  use  of  low-­‐ end  processors   • Simple  Mixed-­‐Signal  techniques  can  be  used  in  failsafe  cells  
  • 26. #ESCBOS Thank  you   Jonny  Doin   jonnydoin@gridvortex.com