Advanced Microcontrollers Grzegorz Budzyń Lecture 3: Electrical parameters of microcontrollers 8051 family
Plan Electrical parameters of microcontrollers 8051 core(8-bit) Main features 8051 based microcontrollers
Electrical parameters
Electricalparameters Important parameters: Maximum ratings Power supply: Voltage Current consumption Clocking Reset I/O ports parameters
Electrical parameters Maximum ratings
Maximumratings Microcontrollershaveto be viewedas a complicated device, sensitive to many factors Each device have their own Absolute Maximum Ratings that must be viewed very carefully ThevaluesfoundinthattableMUST NOT be exceeded
Main parameters: Maximumratings Operating temperature Usually from -40C to 130C Differs fromchip vendorto chip vendor Usually different temperature versions available Thermal resistance should be taken into consideration in order to avoid problems with overheating Microcontrollers are usually NOT protected against overheating!
Main parameters: Maximumratings Maximum operating voltage: Maximumvalueofvoltagethatcanbe connectedto power supply input of the microcontroller For microcontrollers with multiple power supplies inputs, themaximumoperatingvoltageisdefinedfor each input separately
Main parameters: Maximumratings Input/ output voltage range: Maximumvalueofvoltagethatcanbe connectedto any pin of the microcontroller Thevalueisusuallylimittedby theactualpowersupply valueandmaystaywithinsomelimits(i.e. -0.5V to VCC+0.5V) The input-output voltage range can be extended when the CLAMP CURRENT parameter is used properly
Main parameters: Clamp Current: Maximumratings Themaximumcurrentthattheinputcansinkorthe output can source without any damage UsuallyinmArange Ifa seriesresistorisusedthenevenveryhigh or negative voltages can be directly connected to the microcontroller Usable in ESD protection
Electrical parameters Power supply
Power supply Delivering power to microcontrollers is usually a delicate task Most ofmicrocontrollershavemorethan1 power supply input Each power supply input have usually different requirements The most problematic for proper power supply are microcontrollers with analog part
Power supply Single supply Dual supply
System grounding Grounds shortened only on uc Ground shortened only on power supply Grounds shortened only on uc
Currentconsumption The requirements on power consumption reduction are nowdays very high Theactivesupplycurrentisintherangeof 1mA/MIPS Theactivesupplycurrentdependson the main clock frequency Microcontrollers offer many supply modes in order to reduce power consumption
Currentconsumption
Electrical parameters Clocking
Clocking External Crystal Oscillator: An external crystal oscillator is connected between XTAL inputs Modifying clock frequency requires change of the physical object(crystal) Clock stability can be high (1-10ppm)
Clocking Low Frequency Crystal Oscillator: Optimised for low frequency crystals mainly the 32.768 khz Similar stability like standard Crystal Oscillator
Clocking External RC Oscillator: Verysimpleandcheapoption Just two discreet components necessary Limitedto a fewmhzrange Ease of frequency regulation Very low stability(100-1000 ppm)
Clocking Internal RC Oscillator: Verysimpleandcheapoption Limitedto a fewmhzrange Easeoffrequencyregulation onlysoftware register change necessary Possibility of frequency calibration Very low stability(100-1000 ppm)
Clocking External Clock: The most expensive option Just one (but complicated!) component necessary the clock generator Very wide frequency range available(even above 100MHz) No possiblity of frequency regulation High to Ultra high stability(0.000001-10 ppm)!!!
Clocking Internal PLL: Requires external clock or external oscillator Wide frequency range available Ease of frequency regulation via software register Stabilitydependson theclocksourceandthe jitter of PLL. Usually not better than 1ppm
Electrical parameters Reset
Reset During Reset: alli/o Registersareset to theirinitialvalues the program starts execution from the Reset Vector Theresetcircuitrydoes not require any clock source to be running(it is asynchronous)
Reset In most microcontrollers there are available a few reset sources: Power-on Reset. TheMCU isresetwhenthesupply voltage is below the Power-on Reset threshold(vpot) ExternalReset.TheMCU isresetwhena lowlevelis presenton thereset pin for longerthantheminimum pulse length WatchdogReset. TheMCU isresetwhenthewatchdog Timer period expires and the Watchdog is enabled Brown-out Reset. TheMCU isresetwhenthesupply voltage VCC is below the Brown-out Reset threshold (VBOT) and the Brown-out Detector is enabled
Power-on Reset
ExternalReset
Brown-out Reset
WatchdogReset
Electrical parameters I/O ports
GeneralI/O port structure
I/O port withinternalpull-up
I/O port withpush-pull
Introduction - 8051
Introduction Familyof8051 originatesfromintel8051 microcontroller constructed in 1980 8051 microcontrollerswere, for thelongtime, the most popular microcontrollers on the market
Introduction One ofthesourceofsuccessisthefactthat 8051 basemicrocontrollersareofferedby many vendors(e.g. Siemens, Infineon, Atmel, Philips, Dallas Semiconductors, Analog Devices) 8051 based microcontrollers are still very popular because of backward compatibility andbecausepresentconstructionsaremuch more efficient than original ones
Introduction blockdiagram External interrupts Interrupt Control On-chip ROM for program code On-chip RAM Timer/Counter Timer 1 Timer 0 Counter Inputs CPU OSC Bus Control 4 I/O Ports Serial Port P0 P1 P2 P3 TxD RxD Address/Data
Introduction-Architecture Main features: 8-bit CISC processor Modified Harvard architecture(instructions and data on separate busses) 4 banksof8 x 8b universalregisters Instructionsexecutedin1, 2 or3 instructionclock cycles(12 clock pulses)
Introduction-Architecture Main features: 4kB ofinternalrom 128B ofinternalsram four parallel ports P0..P3 1 x UART Two timers(one used for UART transmission) interrupt subsystem with priorities
Source: [1] PIC10
8051 -pinout Source: [1]
Mainpins: RST activehigh 8051 -pinout EA ExternalAccess logic 0 meansexecution of program from internal ROM PSEN -Program StoreEnable OE for external memory ALE -AddressLatchEnable signalusedfor demultiplexing of data and address
8051 -registers A B R0 R1 DPTR DPH DPL R2 R3 R4 PC PC Some 8051 16-bit Register Source: [1] R5 R6 R7 Some 8-bitt Registers of the 8051
8051 Mainproducers ChipCON (TI) versions with internal wireless communications blocks Analog Devices very good Analog microcontrollers with embedded, high-quality, analog-digital and digital-analog converters
8051 Mainproducers Dallas Semiconductors very high performance (33MIPS in comparison to original 1MIPS!!!); excellent communication blocks (CAN, Ethernet) NXP a lot of classical models, power supply current reduction, improved performance
8051 by ChipCON (TI)
8051 by ChipCON Source: [2]
Main features: CC2430 SoC chip integrated processor and RF circuits 8051 CPU, 32MHz 8kB ofsram 128kB Flash RF 2.4GHz, 802.15.4 transceiver Low supply voltage Very small component count
CC2430 Source: [3]
8051 by Analog Devices
PIC12F615 blockdiagram
ADuC824 Named Analog microcontroller : Mainpart areprecisionadc sanddac s Microprocessor is only an addition Fully integrated 24-bit data acquisition system Software compatible with 8052 processors
ADuC824 Source: [4]
Main features: ADuC824 High Resolution Sigma-Delta ADCs Two Independent ADCs(16- and 24-Bit Resolution) Programmable Gain Front End 24-Bit No Missing Codes, Primary ADC 13-Bit p-presolution@ 20 Hz, 20 mvrange 18-Bit p-presolution@ 20 Hz, 2.56 V Range Memory: 8kB Program Memory, 640 B Data Memory(Flash) 256B Data RAM
Main features: 8051-Based Core ADuC824 8051-Compatible Instruction Set (12.58 MHz Max) 32 khz External Crystal, On-Chip Programmable PLL Three 16-Bit Timer/Counters 26 Programmable I/O Lines 11 Interrupt Sources, Two Priority Levels Power Specified for 3 V and 5 V Operation Normal: 3 ma@ 3 V (Core CLK = 1.5 MHz) Power-Down: 20 ua (32 khz Crystal Running)
Main features: On-Chip Peripherals ADuC824 On-Chip Temperature Sensor 12-Bit Voltage Output DAC Dual Excitation Current Sources Reference Detect Circuit Time Interval Counter (TIC) UART Serial I/O I2C -Compatible and SPI Serial I/O Watchdog Timer (WDT), Power Supply Monitor (PSM)
ADuC824 MainADC structure
8051 by Dallas Semiconductors
PIC12F615 Pinout Source: [5]
Source: [5]
DS80C410 8-bit network microcontroller Many connection peripherals: 10/100 Mbs Ethernet 3 x serial ports CAN 2.0B controller 1-Wire Master 64kB SRAM for TCP/IP stack
Source: [6] PIC16
Main features: DS80C410 High-Performance Architecture Single 8051 Instruction Cycle in 54ns DC to 75MHz Clock Rate (1MIPS/4MHz) Flat 16MB Address Space Four Data Pointers with Auto-Increment/Decrement and Select-Accelerate Data Movement 16/32-Bit Math Accelerator
DS80C410 MultitieredNetworkingandI/O 10/100 Ethernet Media Access Controller(MAC) Optional CAN 2.0B Controller 1-Wire Net Controller Three Full-Duplex Hardware Serial Ports Upto EightBidirectional8-Bit Ports(64 DigitalI/O Pins)
DS80C410 Integrated Primary System Logic 16 Total Interrupt Sources with Six External Four 16-Bit Timer/Counters 2x/4x Clock Multiplier Reduces Electromagnetic Interference(EMI) Programmable Watchdog Timer Oscillator-Fail Detection Programmable IrDA Clock
DS80C410 Enhanced Memory Architecture Selectable 8/10-Bit Stack Pointer for High-Level Language Support 64kBytes Additional On-Chip SRAM Usable as Program/Data Memory 16-Bit/24-Bit Paged/24-Bit Contiguous Modes Selectable Multiplexed/Nonmultiplexed External Memory Interface MergedProgram/Data MemorySpaceAllowsIn-System Programming Defaults to True 8051-Memory Compatibility
DS80C410 Externalmemorymerging
DS80C410 arithemtic coprocessor Source: [6]
DS80C410 Ethernet
DS80C410 ROM functions Plentyusefulfunctionscanbe foundin DS80C410 ROM Many function categories, e.g.: Utility Memory managing Socket handling DHCP functions 1-Wire functions andmany, manymore.
DS80C410 ROM functions
Thank you for your attention
References [1] www.infineon.com [2] www.ti.com [3] CC2430 documentation; www.ti.com [4] ADuC845 documentation; www.analog.com [5] www.maxim-ic.com [6] DS80C410 documentation; www.maxim-ic.com [7] http://www.ise.pw.edu.pl/impuls/emisy/80c517um.p df [8] http://www.atmel.com/images/doc2486.pdf