SlideShare a Scribd company logo
1 of 6
Download to read offline
www.silabs.com | Smart. Connected. Energy-Friendly.
Configurable Logic
in Microcontrollers
Revolutionizes Small
Applications
By Stephen To, Applications Engineer,
Microcontrollers, Silicon Labs
www.silabs.com!!|!Configurable!Logic!in!Microcontrollers!Revolutionizes!Small!Applications!! ! !
! ! ! ! ! 1!
!
!
Introduction+
Microcontrollers!(MCU)!are!becoming!even!more!flexible!as!suppliers!integrate!more!external!components!onB
chip.!For!engineers,!this!means!a!new!arsenal!of!tools!and!possibilities!for!embedded!development.!Configurable!
logic!(CL)!hardware!is!one!of!these!relatively!new!addBons!to!the!microcontroller!market.!!
!
The!CL!hardware!implements!combinatorial!logic!like!the!basic!Boolean!AND,!OR,!or!XOR!functions,!as!well!as!
sequential!logic!like!latches.!This!flexibility!allows!embedded!programmers!to!easily!add!their!own,!custom!
functionality.!From!simple!signal!inverters!to!more!complex!Manchester!decoders,!the!configurable!logic!can!
operate!completely!independently!from!the!processor!core!(CPU).!The!configurable!logic!hardware!is!typically!
programmed!in!C!and!initializes!a!set!of!dedicated!registers.!With!C!as!the!programming!language,!embedded!
designers!will!not!need!to!learn!another!programming!language!such!as!VHDL.!!
!
Microcontrollers!with!configurable!logic!help!reduce!BOM!costs!and!minimize!board!size!by!integrating!offBchip!
glue!logic.!CPU!resources!are!freed!because!configurable!logic!operates!independently!from!the!core.!In!addition,!
the!capabilities!of!other!peripherals!are!extended!when!they!are!connected!to!configurable!logic.!With!all!this!
flexibility,!small,!powerBefficient!MCUs!can!be!used!in!applications!previously!exclusive!to!larger,!fullyBconfigurable!
devices!like!FPGAs!or!expensive!ASICs.!!
!
To!understand!the!capabilities!of!the!highlyBflexible!features!of!configurable!logic,!this!paper!will!explore!the!
general!operation!of!CL!hardware!on!currently!available!microcontrollers,!as!well!as!how!configurable!logic!drives!
smaller!and!cheaper!applications.!
!
!
Overview!
On!a!microcontroller,!a!configurable!logic!unit!(CLU)!is!a!piece!of!dedicated!hardware!consisting!of!userB
programmable!digital!logic!that!operates!without!CPU!intervention.!Multiple!CLUs!are!typically!provided!on!an!
MCU.!Figure!1!shows!a!simplified!block!diagram!of!a!single!CLU!with!three!inputs!and!one!output.!
!
www.silabs.com!!|!Configurable!Logic!in!Microcontrollers!Revolutionizes!Small!Applications!! ! !
! ! ! ! ! 2!
!
!
!
Figure'1:'Block'Diagram'of'a'Single'Configurable'Logic'Unit'
The!Configurable!Logic!Inputs!
The!three!key!input!signals!in!a!CLU!consists!of!!
•! Input!multiplexer!A!(MXA)!
•! Input!multiplexer!B!(MXB)!!
•! Carry!signal!
!
Multiplexer!A!can!select!from!a!set!of!inputs,!like!external!pins!or!signals!from!other!peripherals.!As!shown!in!
Figure!2,!these!inputs!can!vary!from!a!timer!overflow!to!a!PCA!channel.!The!CLU!can!also!operate!in!conjunction!
with!serial!peripherals!such!as!UART!or!SPI!because!the!external!pin!inputs!can!be!both!a!serial!peripheral!
output,!as!well!as!a!CLU!input.!Additionally,!input!multiplexer!A!can!select!the!output!of!any!CLU,!including!its!
own!output.!Input!multiplexer!B!operates!similarly,!but!with!a!different!set!of!external!pins!and!signals!from!other!
peripherals.!
!
!
!
!
!
!
www.silabs.com!!|!Configurable!Logic!in!Microcontrollers!Revolutionizes!Small!Applications!! ! !
! ! ! ! ! 3!
!
!
!
Figure'1:'Simplified'Block'Diagram'of'a'Configurable'Logic'Unit'
'
!
The!carry!signal!is!the!asynchronous!output!of!the!previous!CLU.!This!output!allows!multiple!CLUs!to!be!chained!
and!used!together.!For!example,!the!output!of!CLU0!is!the!carry!input!to!CLU1.!This!signal!assignment!is!fixed.!If!
an!embedded!programmer!wanted!to!connect!the!output!of!CLU0!to!CLU3,!they!would!use!the!destination!CLU’s!
input!multiplexers!A!or!B.!
!
Look!Up!Table+
At!the!heart!of!each!CLU!is!a!hardware!look!up!table,!which!is!a!multiplexer!with!MXA,!MXB,!and!the!carry!as!its!
select!signals!as!shown!in!Figure!3.!This!may!look!familiar!as!it’s!similar!to!a!lookBup,!tableBbased!FPGA!block.!
'
'
Figure'2:'Block'Diagram'of'a'Configurable'Logic'Unit'
The!embedded!programmer!chooses!the!output!state!for!every!possible!select!signal!state!combination.!Since!
there!are!three!select!signals,!there!are!8!possible!inputs,!and!8!LUT!outputs!must!be!determined.!An!incomplete!
lookup!table!is!shown!in!Table!1.!
www.silabs.com!!|!Configurable!Logic!in!Microcontrollers!Revolutionizes!Small!Applications!! ! !
! ! ! ! ! 4!
!
!
!
'
'
'
'
'
Table'1:'Look'Up'Table'
Implementing!AND!and!XORi!
Wth!MXA!and!MXB!as!the!inputs,!the!Boolean!AND!could!easily!be!implemented!in!the!CLU.!The!output!is!logic!
high!when!both!multiplexer!inputs!are!logic!high,!otherwise,!the!output!is!logic!low.!The!completed!look!up!table!is!
shown!in!Table!2.!
''
'
'
'
'
Table'2:'Look'Up'Table'–'MXA'AND'MXB'
Once!the!look!up!table!is!determined,!the!desired!LUT!output!is!written!to!a!CLU!register!by!firmware!during!
initialization.!In!the!example!above,!the!hex!value!0xC0!should!be!written!to!the!dedicated!CLU!LUT!output!
register.!
As!a!second!example,!let’s!implement!a!Boolean!XOR!function!with!MXA!and!MXB!as!the!inputs.!The!output!is!
logic!high!only!when!only!one!of!the!inputs!is!logic!high]!otherwise,!the!output!is!logic!low.!The!completed!look!up!
table!is!shown!in!Table!3,!and!the!value!0x3C!should!be!written!to!the!corresponding!CLU!register.!
!
!
www.silabs.com!!|!Configurable!Logic!in!Microcontrollers!Revolutionizes!Small!Applications!! ! !
! ! ! ! ! 5!
!
!
®'Copyright'2015,'Silicon'Laboratories'Inc.'All'Rights'Reserved.'Silicon'Laboratories,'Silicon'Labs,'SiLabs'and'the'
Silicon'Labs'logo,'CMEMS®,'EFM,'EFM32,'EFR,'Energy'Micro,'Energy'Micro'logo'and'combinations'thereof,'"the'
world’s'most'energy'friendly'microcontrollers",'Ember®,'EZLink®,'EZMac®,'EZRadio®,'EZRadioPRO®,'DSPLL®,'
ISOmodem'®,'Precision32®,'ProSLIC®,'SiPHY®,'USBXpress®'and'others'are'trademarks'or'registered'trademarks'of'
Silicon'Laboratories'Inc.'All'other'products'or'brand'names'mentioned'herein'are'trademarks'of'their'respective'holders.!
!
!
!
!
!
!
!
!
'
Table'3:'Look'Up'Table'–'MXA'XOP'MXB'
The!Configurable!Logic!Output!
The!asynchronous!output!of!the!CLU!look!up!table!is!connected!to!the!carry!input!of!the!next!CLU.!This!
asynchronous!output!can!also!be!routed!directly!to!a!port!pin,!for!instance,!to!connect!to!and!control!external!
components.!The!output!pin!of!a!CLU!can!also!be!an!input!pin!for!other!peripherals.!
Synchronizing!the!Output!!
Each!CLU!has!an!integrated!D!flipBflop.!Asynchronous!LUT!output!can!pass!through!this!optional!D!flipBflop!before!
the!signal!is!routed!to!a!port!pin.!The!D!flipBflop!can!be!clocked!by!number!of!sources,!including!the!MXA!and!
carry!inputs,!a!timer!overflow,!or!a!system!clock.!The!asynchronous!output!is!synchronized!to!the!system!clock!
and!routed!to!other!peripherals!on!the!MCU.!The!rising!and/or!falling!edge!of!the!synchronized!output!can!all!
trigger!an!interrupt,!allowing!firmware!to!take!action!upon!a!CLU!event.!
Applications!and!Benefits!
Microcontrollers!now!come!with!more!integrated!peripherals!and!building!blocks!than!ever!before,!and!some!of!
these!features!have!configurable!logic!that!allows!complex!functions!to!be!implemented!without!the!need!for!
external!components.!With!less!than!four!builtBin!configurable!logic!units!(CLUs),!an!embedded!programmer!now!
can!decide!to!implement!custom!and!integrated!button!debouncing,!D!and!SR!latching,!Manchester!
encoding/decoding,!or!Biphase!Mark!encoding/decoding!hardware.!!
!
For!more!information!on!these!examples!and!start!using!the!configurable!logic!units,!see!Silicon+Labs+
Application+Note+AN921,!which!uses!the!EFM8+Laser+Bee!(EFM8LB1)!microcontroller!family!featuring!4!CLUs,!
a!14Bbit!ADC!with!automatic!sequencing,!4!voltage!DACs,!calibrated!temperature!sensor,!and!a!72!MHz!pipelined!
8051!core.!!

More Related Content

Similar to Configurable logic-wp-in-template

Our Brave Modular Future
Our Brave Modular FutureOur Brave Modular Future
Our Brave Modular FutureOrchestrate
 
Use open source and rapid prototyping to put magic in magical products in IoT
Use open source and rapid prototyping to put magic in magical products in IoTUse open source and rapid prototyping to put magic in magical products in IoT
Use open source and rapid prototyping to put magic in magical products in IoTMoe Tanabian
 
Robust MLOps with Open-Source: ModelDB, Docker, Jenkins, and Prometheus
Robust MLOps with Open-Source: ModelDB, Docker, Jenkins, and PrometheusRobust MLOps with Open-Source: ModelDB, Docker, Jenkins, and Prometheus
Robust MLOps with Open-Source: ModelDB, Docker, Jenkins, and PrometheusManasi Vartak
 
Best Practices to create High Load Websites
Best Practices to create High Load WebsitesBest Practices to create High Load Websites
Best Practices to create High Load WebsitesManfred Furuholmen
 
Microservices, Kubernetes and Istio - A Great Fit!
Microservices, Kubernetes and Istio - A Great Fit!Microservices, Kubernetes and Istio - A Great Fit!
Microservices, Kubernetes and Istio - A Great Fit!Animesh Singh
 
Beginners_Guide_to_PLC_Programming_How_t.pdf
Beginners_Guide_to_PLC_Programming_How_t.pdfBeginners_Guide_to_PLC_Programming_How_t.pdf
Beginners_Guide_to_PLC_Programming_How_t.pdfMAamirAsghar
 
Building frameworks: from concept to completion
Building frameworks: from concept to completionBuilding frameworks: from concept to completion
Building frameworks: from concept to completionRuben Goncalves
 
Codemotion 2013 Madrid - Modern OOP embedded development with .NET Micro Fram...
Codemotion 2013 Madrid - Modern OOP embedded development with .NET Micro Fram...Codemotion 2013 Madrid - Modern OOP embedded development with .NET Micro Fram...
Codemotion 2013 Madrid - Modern OOP embedded development with .NET Micro Fram...Lorenzo Maiorfi
 
ES~Conference Mexico Nowadays Architecture Trends, from Monolith to Microserv...
ES~Conference Mexico Nowadays Architecture Trends, from Monolith to Microserv...ES~Conference Mexico Nowadays Architecture Trends, from Monolith to Microserv...
ES~Conference Mexico Nowadays Architecture Trends, from Monolith to Microserv...Alberto Salazar
 
IoT in the Cloud: Build & Unleash the Value in your Renewable Energy System
IoT in the Cloud: Build & Unleash the Value in your Renewable Energy SystemIoT in the Cloud: Build & Unleash the Value in your Renewable Energy System
IoT in the Cloud: Build & Unleash the Value in your Renewable Energy SystemMark Heckler
 
Node-RED workshop at IoT Toulouse
Node-RED workshop at IoT ToulouseNode-RED workshop at IoT Toulouse
Node-RED workshop at IoT ToulouseBoris Adryan
 
20240303 QFM006 Elixir Reading List February 2024
20240303 QFM006 Elixir Reading List February 202420240303 QFM006 Elixir Reading List February 2024
20240303 QFM006 Elixir Reading List February 2024Matthew Sinclair
 
Jconf Colombia Nowadays Architecture Trends, from Monolith to Microservices a...
Jconf Colombia Nowadays Architecture Trends, from Monolith to Microservices a...Jconf Colombia Nowadays Architecture Trends, from Monolith to Microservices a...
Jconf Colombia Nowadays Architecture Trends, from Monolith to Microservices a...Alberto Salazar
 
Coder sans peur du changement avec la meme pas mal hexagonal architecture
Coder sans peur du changement avec la meme pas mal hexagonal architectureCoder sans peur du changement avec la meme pas mal hexagonal architecture
Coder sans peur du changement avec la meme pas mal hexagonal architectureThomas Pierrain
 
22 Re-Engineering Traditional Learning Model with Outcome-Based Learning Curv...
22 Re-Engineering Traditional Learning Model with Outcome-Based Learning Curv...22 Re-Engineering Traditional Learning Model with Outcome-Based Learning Curv...
22 Re-Engineering Traditional Learning Model with Outcome-Based Learning Curv...ijtsrd
 
Lean and Easy IoT Applications with OSGi and Eclipse Concierge
Lean and Easy IoT Applications with OSGi and Eclipse ConciergeLean and Easy IoT Applications with OSGi and Eclipse Concierge
Lean and Easy IoT Applications with OSGi and Eclipse ConciergeDev_Events
 
WebLogic Event Server - Alexandre Alves, BEA
WebLogic Event Server - Alexandre Alves, BEAWebLogic Event Server - Alexandre Alves, BEA
WebLogic Event Server - Alexandre Alves, BEAmfrancis
 

Similar to Configurable logic-wp-in-template (20)

Our Brave Modular Future
Our Brave Modular FutureOur Brave Modular Future
Our Brave Modular Future
 
Use open source and rapid prototyping to put magic in magical products in IoT
Use open source and rapid prototyping to put magic in magical products in IoTUse open source and rapid prototyping to put magic in magical products in IoT
Use open source and rapid prototyping to put magic in magical products in IoT
 
Robust MLOps with Open-Source: ModelDB, Docker, Jenkins, and Prometheus
Robust MLOps with Open-Source: ModelDB, Docker, Jenkins, and PrometheusRobust MLOps with Open-Source: ModelDB, Docker, Jenkins, and Prometheus
Robust MLOps with Open-Source: ModelDB, Docker, Jenkins, and Prometheus
 
Best Practices to create High Load Websites
Best Practices to create High Load WebsitesBest Practices to create High Load Websites
Best Practices to create High Load Websites
 
Microservices, Kubernetes and Istio - A Great Fit!
Microservices, Kubernetes and Istio - A Great Fit!Microservices, Kubernetes and Istio - A Great Fit!
Microservices, Kubernetes and Istio - A Great Fit!
 
Beginners_Guide_to_PLC_Programming_How_t.pdf
Beginners_Guide_to_PLC_Programming_How_t.pdfBeginners_Guide_to_PLC_Programming_How_t.pdf
Beginners_Guide_to_PLC_Programming_How_t.pdf
 
Building frameworks: from concept to completion
Building frameworks: from concept to completionBuilding frameworks: from concept to completion
Building frameworks: from concept to completion
 
Codemotion 2013 Madrid - Modern OOP embedded development with .NET Micro Fram...
Codemotion 2013 Madrid - Modern OOP embedded development with .NET Micro Fram...Codemotion 2013 Madrid - Modern OOP embedded development with .NET Micro Fram...
Codemotion 2013 Madrid - Modern OOP embedded development with .NET Micro Fram...
 
ES~Conference Mexico Nowadays Architecture Trends, from Monolith to Microserv...
ES~Conference Mexico Nowadays Architecture Trends, from Monolith to Microserv...ES~Conference Mexico Nowadays Architecture Trends, from Monolith to Microserv...
ES~Conference Mexico Nowadays Architecture Trends, from Monolith to Microserv...
 
IoT in the Cloud: Build & Unleash the Value in your Renewable Energy System
IoT in the Cloud: Build & Unleash the Value in your Renewable Energy SystemIoT in the Cloud: Build & Unleash the Value in your Renewable Energy System
IoT in the Cloud: Build & Unleash the Value in your Renewable Energy System
 
Node-RED workshop at IoT Toulouse
Node-RED workshop at IoT ToulouseNode-RED workshop at IoT Toulouse
Node-RED workshop at IoT Toulouse
 
Software Patterns
Software PatternsSoftware Patterns
Software Patterns
 
20240303 QFM006 Elixir Reading List February 2024
20240303 QFM006 Elixir Reading List February 202420240303 QFM006 Elixir Reading List February 2024
20240303 QFM006 Elixir Reading List February 2024
 
Apiworld
ApiworldApiworld
Apiworld
 
Jconf Colombia Nowadays Architecture Trends, from Monolith to Microservices a...
Jconf Colombia Nowadays Architecture Trends, from Monolith to Microservices a...Jconf Colombia Nowadays Architecture Trends, from Monolith to Microservices a...
Jconf Colombia Nowadays Architecture Trends, from Monolith to Microservices a...
 
Coder sans peur du changement avec la meme pas mal hexagonal architecture
Coder sans peur du changement avec la meme pas mal hexagonal architectureCoder sans peur du changement avec la meme pas mal hexagonal architecture
Coder sans peur du changement avec la meme pas mal hexagonal architecture
 
nikhil.pptx
nikhil.pptxnikhil.pptx
nikhil.pptx
 
22 Re-Engineering Traditional Learning Model with Outcome-Based Learning Curv...
22 Re-Engineering Traditional Learning Model with Outcome-Based Learning Curv...22 Re-Engineering Traditional Learning Model with Outcome-Based Learning Curv...
22 Re-Engineering Traditional Learning Model with Outcome-Based Learning Curv...
 
Lean and Easy IoT Applications with OSGi and Eclipse Concierge
Lean and Easy IoT Applications with OSGi and Eclipse ConciergeLean and Easy IoT Applications with OSGi and Eclipse Concierge
Lean and Easy IoT Applications with OSGi and Eclipse Concierge
 
WebLogic Event Server - Alexandre Alves, BEA
WebLogic Event Server - Alexandre Alves, BEAWebLogic Event Server - Alexandre Alves, BEA
WebLogic Event Server - Alexandre Alves, BEA
 

Recently uploaded

10 Easiest Ways To Buy Verified TransferWise Accounts
10 Easiest Ways To Buy Verified TransferWise Accounts10 Easiest Ways To Buy Verified TransferWise Accounts
10 Easiest Ways To Buy Verified TransferWise Accountshttps://localsmmshop.com/
 
Elevate Your Online Presence with SEO Services
Elevate Your Online Presence with SEO ServicesElevate Your Online Presence with SEO Services
Elevate Your Online Presence with SEO ServicesHaseebBashir5
 
Goal Presentation_NEW EMPLOYEE_NETAPS FOUNDATION.pptx
Goal Presentation_NEW EMPLOYEE_NETAPS FOUNDATION.pptxGoal Presentation_NEW EMPLOYEE_NETAPS FOUNDATION.pptx
Goal Presentation_NEW EMPLOYEE_NETAPS FOUNDATION.pptxNetapsFoundationAdmi
 
MichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdfMichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdfmstarkes24
 
Moradia Isolada com Logradouro; Detached house with patio in Penacova
Moradia Isolada com Logradouro; Detached house with patio in PenacovaMoradia Isolada com Logradouro; Detached house with patio in Penacova
Moradia Isolada com Logradouro; Detached house with patio in Penacovaimostorept
 
SCI9-Q4-MOD8.1.pdfjttstwjwetw55k5wwtwrjw
SCI9-Q4-MOD8.1.pdfjttstwjwetw55k5wwtwrjwSCI9-Q4-MOD8.1.pdfjttstwjwetw55k5wwtwrjw
SCI9-Q4-MOD8.1.pdfjttstwjwetw55k5wwtwrjwadimosmejiaslendon
 
The Vietnam Believer Newsletter_May 13th, 2024_ENVol. 007.pdf
The Vietnam Believer Newsletter_May 13th, 2024_ENVol. 007.pdfThe Vietnam Believer Newsletter_May 13th, 2024_ENVol. 007.pdf
The Vietnam Believer Newsletter_May 13th, 2024_ENVol. 007.pdfbelieveminhh
 
Most Visionary Leaders in Cloud Revolution, Shaping Tech’s Next Era - 2024 (2...
Most Visionary Leaders in Cloud Revolution, Shaping Tech’s Next Era - 2024 (2...Most Visionary Leaders in Cloud Revolution, Shaping Tech’s Next Era - 2024 (2...
Most Visionary Leaders in Cloud Revolution, Shaping Tech’s Next Era - 2024 (2...CIO Look Magazine
 
Top^Clinic ^%[+27785538335__Safe*Women's clinic//Abortion Pills In Harare
Top^Clinic ^%[+27785538335__Safe*Women's clinic//Abortion Pills In HarareTop^Clinic ^%[+27785538335__Safe*Women's clinic//Abortion Pills In Harare
Top^Clinic ^%[+27785538335__Safe*Women's clinic//Abortion Pills In Hararedoctorjoe1984
 
Should Law Firms Outsource their Bookkeeping
Should Law Firms Outsource their BookkeepingShould Law Firms Outsource their Bookkeeping
Should Law Firms Outsource their BookkeepingYourLegal Accounting
 
Space Tech Expo Exhibitor List 2024 - Exhibitors Data
Space Tech Expo Exhibitor List 2024 - Exhibitors DataSpace Tech Expo Exhibitor List 2024 - Exhibitors Data
Space Tech Expo Exhibitor List 2024 - Exhibitors DataExhibitors Data
 
Shots fired Budget Presentation.pdf12312
Shots fired Budget Presentation.pdf12312Shots fired Budget Presentation.pdf12312
Shots fired Budget Presentation.pdf12312LR1709MUSIC
 
如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证ogawka
 
Navigating Tax Season with Confidence Streamlines CPA Firms
Navigating Tax Season with Confidence Streamlines CPA FirmsNavigating Tax Season with Confidence Streamlines CPA Firms
Navigating Tax Season with Confidence Streamlines CPA FirmsYourLegal Accounting
 
#Mtp-Kit Prices » Qatar. Doha (+27737758557) Abortion Pills For Sale In Doha,...
#Mtp-Kit Prices » Qatar. Doha (+27737758557) Abortion Pills For Sale In Doha,...#Mtp-Kit Prices » Qatar. Doha (+27737758557) Abortion Pills For Sale In Doha,...
#Mtp-Kit Prices » Qatar. Doha (+27737758557) Abortion Pills For Sale In Doha,...drm1699
 
Jual Obat Aborsi Di Sibolga wa 0851/7541/5434 Cytotec Misoprostol 200mcg Pfizer
Jual Obat Aborsi Di Sibolga wa 0851/7541/5434 Cytotec Misoprostol 200mcg PfizerJual Obat Aborsi Di Sibolga wa 0851/7541/5434 Cytotec Misoprostol 200mcg Pfizer
Jual Obat Aborsi Di Sibolga wa 0851/7541/5434 Cytotec Misoprostol 200mcg PfizerPusat Herbal Resmi BPOM
 
NewBase 17 May 2024 Energy News issue - 1725 by Khaled Al Awadi_compresse...
NewBase   17 May  2024  Energy News issue - 1725 by Khaled Al Awadi_compresse...NewBase   17 May  2024  Energy News issue - 1725 by Khaled Al Awadi_compresse...
NewBase 17 May 2024 Energy News issue - 1725 by Khaled Al Awadi_compresse...Khaled Al Awadi
 

Recently uploaded (20)

10 Easiest Ways To Buy Verified TransferWise Accounts
10 Easiest Ways To Buy Verified TransferWise Accounts10 Easiest Ways To Buy Verified TransferWise Accounts
10 Easiest Ways To Buy Verified TransferWise Accounts
 
Elevate Your Online Presence with SEO Services
Elevate Your Online Presence with SEO ServicesElevate Your Online Presence with SEO Services
Elevate Your Online Presence with SEO Services
 
Obat Aborsi Pasuruan 0851\7696\3835 Jual Obat Cytotec Di Pasuruan
Obat Aborsi Pasuruan 0851\7696\3835 Jual Obat Cytotec Di PasuruanObat Aborsi Pasuruan 0851\7696\3835 Jual Obat Cytotec Di Pasuruan
Obat Aborsi Pasuruan 0851\7696\3835 Jual Obat Cytotec Di Pasuruan
 
Goal Presentation_NEW EMPLOYEE_NETAPS FOUNDATION.pptx
Goal Presentation_NEW EMPLOYEE_NETAPS FOUNDATION.pptxGoal Presentation_NEW EMPLOYEE_NETAPS FOUNDATION.pptx
Goal Presentation_NEW EMPLOYEE_NETAPS FOUNDATION.pptx
 
MichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdfMichaelStarkes_UncutGemsProjectSummary.pdf
MichaelStarkes_UncutGemsProjectSummary.pdf
 
Moradia Isolada com Logradouro; Detached house with patio in Penacova
Moradia Isolada com Logradouro; Detached house with patio in PenacovaMoradia Isolada com Logradouro; Detached house with patio in Penacova
Moradia Isolada com Logradouro; Detached house with patio in Penacova
 
SCI9-Q4-MOD8.1.pdfjttstwjwetw55k5wwtwrjw
SCI9-Q4-MOD8.1.pdfjttstwjwetw55k5wwtwrjwSCI9-Q4-MOD8.1.pdfjttstwjwetw55k5wwtwrjw
SCI9-Q4-MOD8.1.pdfjttstwjwetw55k5wwtwrjw
 
The Vietnam Believer Newsletter_May 13th, 2024_ENVol. 007.pdf
The Vietnam Believer Newsletter_May 13th, 2024_ENVol. 007.pdfThe Vietnam Believer Newsletter_May 13th, 2024_ENVol. 007.pdf
The Vietnam Believer Newsletter_May 13th, 2024_ENVol. 007.pdf
 
Most Visionary Leaders in Cloud Revolution, Shaping Tech’s Next Era - 2024 (2...
Most Visionary Leaders in Cloud Revolution, Shaping Tech’s Next Era - 2024 (2...Most Visionary Leaders in Cloud Revolution, Shaping Tech’s Next Era - 2024 (2...
Most Visionary Leaders in Cloud Revolution, Shaping Tech’s Next Era - 2024 (2...
 
Top^Clinic ^%[+27785538335__Safe*Women's clinic//Abortion Pills In Harare
Top^Clinic ^%[+27785538335__Safe*Women's clinic//Abortion Pills In HarareTop^Clinic ^%[+27785538335__Safe*Women's clinic//Abortion Pills In Harare
Top^Clinic ^%[+27785538335__Safe*Women's clinic//Abortion Pills In Harare
 
Should Law Firms Outsource their Bookkeeping
Should Law Firms Outsource their BookkeepingShould Law Firms Outsource their Bookkeeping
Should Law Firms Outsource their Bookkeeping
 
Space Tech Expo Exhibitor List 2024 - Exhibitors Data
Space Tech Expo Exhibitor List 2024 - Exhibitors DataSpace Tech Expo Exhibitor List 2024 - Exhibitors Data
Space Tech Expo Exhibitor List 2024 - Exhibitors Data
 
WAM Corporate Presentation May 2024_w.pdf
WAM Corporate Presentation May 2024_w.pdfWAM Corporate Presentation May 2024_w.pdf
WAM Corporate Presentation May 2024_w.pdf
 
Shots fired Budget Presentation.pdf12312
Shots fired Budget Presentation.pdf12312Shots fired Budget Presentation.pdf12312
Shots fired Budget Presentation.pdf12312
 
如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证
如何办理(SUT毕业证书)斯威本科技大学毕业证成绩单本科硕士学位证留信学历认证
 
Navigating Tax Season with Confidence Streamlines CPA Firms
Navigating Tax Season with Confidence Streamlines CPA FirmsNavigating Tax Season with Confidence Streamlines CPA Firms
Navigating Tax Season with Confidence Streamlines CPA Firms
 
#Mtp-Kit Prices » Qatar. Doha (+27737758557) Abortion Pills For Sale In Doha,...
#Mtp-Kit Prices » Qatar. Doha (+27737758557) Abortion Pills For Sale In Doha,...#Mtp-Kit Prices » Qatar. Doha (+27737758557) Abortion Pills For Sale In Doha,...
#Mtp-Kit Prices » Qatar. Doha (+27737758557) Abortion Pills For Sale In Doha,...
 
Jual Obat Aborsi Di Sibolga wa 0851/7541/5434 Cytotec Misoprostol 200mcg Pfizer
Jual Obat Aborsi Di Sibolga wa 0851/7541/5434 Cytotec Misoprostol 200mcg PfizerJual Obat Aborsi Di Sibolga wa 0851/7541/5434 Cytotec Misoprostol 200mcg Pfizer
Jual Obat Aborsi Di Sibolga wa 0851/7541/5434 Cytotec Misoprostol 200mcg Pfizer
 
Obat Aborsi Surabaya 0851\7696\3835 Jual Obat Cytotec Di Surabaya
Obat Aborsi Surabaya 0851\7696\3835 Jual Obat Cytotec Di SurabayaObat Aborsi Surabaya 0851\7696\3835 Jual Obat Cytotec Di Surabaya
Obat Aborsi Surabaya 0851\7696\3835 Jual Obat Cytotec Di Surabaya
 
NewBase 17 May 2024 Energy News issue - 1725 by Khaled Al Awadi_compresse...
NewBase   17 May  2024  Energy News issue - 1725 by Khaled Al Awadi_compresse...NewBase   17 May  2024  Energy News issue - 1725 by Khaled Al Awadi_compresse...
NewBase 17 May 2024 Energy News issue - 1725 by Khaled Al Awadi_compresse...
 

Configurable logic-wp-in-template

  • 1. www.silabs.com | Smart. Connected. Energy-Friendly. Configurable Logic in Microcontrollers Revolutionizes Small Applications By Stephen To, Applications Engineer, Microcontrollers, Silicon Labs
  • 2. www.silabs.com!!|!Configurable!Logic!in!Microcontrollers!Revolutionizes!Small!Applications!! ! ! ! ! ! ! ! 1! ! ! Introduction+ Microcontrollers!(MCU)!are!becoming!even!more!flexible!as!suppliers!integrate!more!external!components!onB chip.!For!engineers,!this!means!a!new!arsenal!of!tools!and!possibilities!for!embedded!development.!Configurable! logic!(CL)!hardware!is!one!of!these!relatively!new!addBons!to!the!microcontroller!market.!! ! The!CL!hardware!implements!combinatorial!logic!like!the!basic!Boolean!AND,!OR,!or!XOR!functions,!as!well!as! sequential!logic!like!latches.!This!flexibility!allows!embedded!programmers!to!easily!add!their!own,!custom! functionality.!From!simple!signal!inverters!to!more!complex!Manchester!decoders,!the!configurable!logic!can! operate!completely!independently!from!the!processor!core!(CPU).!The!configurable!logic!hardware!is!typically! programmed!in!C!and!initializes!a!set!of!dedicated!registers.!With!C!as!the!programming!language,!embedded! designers!will!not!need!to!learn!another!programming!language!such!as!VHDL.!! ! Microcontrollers!with!configurable!logic!help!reduce!BOM!costs!and!minimize!board!size!by!integrating!offBchip! glue!logic.!CPU!resources!are!freed!because!configurable!logic!operates!independently!from!the!core.!In!addition,! the!capabilities!of!other!peripherals!are!extended!when!they!are!connected!to!configurable!logic.!With!all!this! flexibility,!small,!powerBefficient!MCUs!can!be!used!in!applications!previously!exclusive!to!larger,!fullyBconfigurable! devices!like!FPGAs!or!expensive!ASICs.!! ! To!understand!the!capabilities!of!the!highlyBflexible!features!of!configurable!logic,!this!paper!will!explore!the! general!operation!of!CL!hardware!on!currently!available!microcontrollers,!as!well!as!how!configurable!logic!drives! smaller!and!cheaper!applications.! ! ! Overview! On!a!microcontroller,!a!configurable!logic!unit!(CLU)!is!a!piece!of!dedicated!hardware!consisting!of!userB programmable!digital!logic!that!operates!without!CPU!intervention.!Multiple!CLUs!are!typically!provided!on!an! MCU.!Figure!1!shows!a!simplified!block!diagram!of!a!single!CLU!with!three!inputs!and!one!output.! !
  • 3. www.silabs.com!!|!Configurable!Logic!in!Microcontrollers!Revolutionizes!Small!Applications!! ! ! ! ! ! ! ! 2! ! ! ! Figure'1:'Block'Diagram'of'a'Single'Configurable'Logic'Unit' The!Configurable!Logic!Inputs! The!three!key!input!signals!in!a!CLU!consists!of!! •! Input!multiplexer!A!(MXA)! •! Input!multiplexer!B!(MXB)!! •! Carry!signal! ! Multiplexer!A!can!select!from!a!set!of!inputs,!like!external!pins!or!signals!from!other!peripherals.!As!shown!in! Figure!2,!these!inputs!can!vary!from!a!timer!overflow!to!a!PCA!channel.!The!CLU!can!also!operate!in!conjunction! with!serial!peripherals!such!as!UART!or!SPI!because!the!external!pin!inputs!can!be!both!a!serial!peripheral! output,!as!well!as!a!CLU!input.!Additionally,!input!multiplexer!A!can!select!the!output!of!any!CLU,!including!its! own!output.!Input!multiplexer!B!operates!similarly,!but!with!a!different!set!of!external!pins!and!signals!from!other! peripherals.! ! ! ! ! ! !
  • 4. www.silabs.com!!|!Configurable!Logic!in!Microcontrollers!Revolutionizes!Small!Applications!! ! ! ! ! ! ! ! 3! ! ! ! Figure'1:'Simplified'Block'Diagram'of'a'Configurable'Logic'Unit' ' ! The!carry!signal!is!the!asynchronous!output!of!the!previous!CLU.!This!output!allows!multiple!CLUs!to!be!chained! and!used!together.!For!example,!the!output!of!CLU0!is!the!carry!input!to!CLU1.!This!signal!assignment!is!fixed.!If! an!embedded!programmer!wanted!to!connect!the!output!of!CLU0!to!CLU3,!they!would!use!the!destination!CLU’s! input!multiplexers!A!or!B.! ! Look!Up!Table+ At!the!heart!of!each!CLU!is!a!hardware!look!up!table,!which!is!a!multiplexer!with!MXA,!MXB,!and!the!carry!as!its! select!signals!as!shown!in!Figure!3.!This!may!look!familiar!as!it’s!similar!to!a!lookBup,!tableBbased!FPGA!block.! ' ' Figure'2:'Block'Diagram'of'a'Configurable'Logic'Unit' The!embedded!programmer!chooses!the!output!state!for!every!possible!select!signal!state!combination.!Since! there!are!three!select!signals,!there!are!8!possible!inputs,!and!8!LUT!outputs!must!be!determined.!An!incomplete! lookup!table!is!shown!in!Table!1.!
  • 5. www.silabs.com!!|!Configurable!Logic!in!Microcontrollers!Revolutionizes!Small!Applications!! ! ! ! ! ! ! ! 4! ! ! ! ' ' ' ' ' Table'1:'Look'Up'Table' Implementing!AND!and!XORi! Wth!MXA!and!MXB!as!the!inputs,!the!Boolean!AND!could!easily!be!implemented!in!the!CLU.!The!output!is!logic! high!when!both!multiplexer!inputs!are!logic!high,!otherwise,!the!output!is!logic!low.!The!completed!look!up!table!is! shown!in!Table!2.! '' ' ' ' ' Table'2:'Look'Up'Table'–'MXA'AND'MXB' Once!the!look!up!table!is!determined,!the!desired!LUT!output!is!written!to!a!CLU!register!by!firmware!during! initialization.!In!the!example!above,!the!hex!value!0xC0!should!be!written!to!the!dedicated!CLU!LUT!output! register.! As!a!second!example,!let’s!implement!a!Boolean!XOR!function!with!MXA!and!MXB!as!the!inputs.!The!output!is! logic!high!only!when!only!one!of!the!inputs!is!logic!high]!otherwise,!the!output!is!logic!low.!The!completed!look!up! table!is!shown!in!Table!3,!and!the!value!0x3C!should!be!written!to!the!corresponding!CLU!register.! ! !
  • 6. www.silabs.com!!|!Configurable!Logic!in!Microcontrollers!Revolutionizes!Small!Applications!! ! ! ! ! ! ! ! 5! ! ! ®'Copyright'2015,'Silicon'Laboratories'Inc.'All'Rights'Reserved.'Silicon'Laboratories,'Silicon'Labs,'SiLabs'and'the' Silicon'Labs'logo,'CMEMS®,'EFM,'EFM32,'EFR,'Energy'Micro,'Energy'Micro'logo'and'combinations'thereof,'"the' world’s'most'energy'friendly'microcontrollers",'Ember®,'EZLink®,'EZMac®,'EZRadio®,'EZRadioPRO®,'DSPLL®,' ISOmodem'®,'Precision32®,'ProSLIC®,'SiPHY®,'USBXpress®'and'others'are'trademarks'or'registered'trademarks'of' Silicon'Laboratories'Inc.'All'other'products'or'brand'names'mentioned'herein'are'trademarks'of'their'respective'holders.! ! ! ! ! ! ! ! ! ' Table'3:'Look'Up'Table'–'MXA'XOP'MXB' The!Configurable!Logic!Output! The!asynchronous!output!of!the!CLU!look!up!table!is!connected!to!the!carry!input!of!the!next!CLU.!This! asynchronous!output!can!also!be!routed!directly!to!a!port!pin,!for!instance,!to!connect!to!and!control!external! components.!The!output!pin!of!a!CLU!can!also!be!an!input!pin!for!other!peripherals.! Synchronizing!the!Output!! Each!CLU!has!an!integrated!D!flipBflop.!Asynchronous!LUT!output!can!pass!through!this!optional!D!flipBflop!before! the!signal!is!routed!to!a!port!pin.!The!D!flipBflop!can!be!clocked!by!number!of!sources,!including!the!MXA!and! carry!inputs,!a!timer!overflow,!or!a!system!clock.!The!asynchronous!output!is!synchronized!to!the!system!clock! and!routed!to!other!peripherals!on!the!MCU.!The!rising!and/or!falling!edge!of!the!synchronized!output!can!all! trigger!an!interrupt,!allowing!firmware!to!take!action!upon!a!CLU!event.! Applications!and!Benefits! Microcontrollers!now!come!with!more!integrated!peripherals!and!building!blocks!than!ever!before,!and!some!of! these!features!have!configurable!logic!that!allows!complex!functions!to!be!implemented!without!the!need!for! external!components.!With!less!than!four!builtBin!configurable!logic!units!(CLUs),!an!embedded!programmer!now! can!decide!to!implement!custom!and!integrated!button!debouncing,!D!and!SR!latching,!Manchester! encoding/decoding,!or!Biphase!Mark!encoding/decoding!hardware.!! ! For!more!information!on!these!examples!and!start!using!the!configurable!logic!units,!see!Silicon+Labs+ Application+Note+AN921,!which!uses!the!EFM8+Laser+Bee!(EFM8LB1)!microcontroller!family!featuring!4!CLUs,! a!14Bbit!ADC!with!automatic!sequencing,!4!voltage!DACs,!calibrated!temperature!sensor,!and!a!72!MHz!pipelined! 8051!core.!!