microcontroller systems and development - new …rlopes/mod10.2.pdf• stm32f051r8t6 microcontroller...
TRANSCRIPT
MicrocontrollersystemsandDevelopment
Ex:ToshibaTMP87CH29U
Ex:ToshibaTMP87CH29U
Ex:ToshibaTMP87CH29U
Ex:Sphygmomanometer
Aninstrumentformeasuringbloodpressure,particularlyinarteries.
Digitalwithmanualorautomaticinflation.Theseareelectronic,easytooperateandpracticalinnoisyenvironments.Theymeasuremeanarterialpressure(MAP)andusealgorithmstocalculatesystolicanddiastolicvalues.Inthissense,theydonotactuallymeasurethebloodpressure,butderivethereadings.
Anoscillometrictypeelectronicsphygmomanometerwhichdeterminesthebloodpressurebythestepsofcompressinganarterywithaninflatedcuff,detectingpulsewaveamplitudewhiletheinflatedcuffbeingdeflatedandcomparingthepressureprovidedbythecuffonthearterywiththepulsewaveamplitude.thecuffpressurecorrespondingtothemaximumpulsewaveamplitudeisdeterminedasthemeanthebloodpressure,thecuffpressurecorrespondingtothepulsewaveamplitudeofthehighpressuresidewhichisequivalentto50%ofthemaximumpulsewaveamplitudeasthesystolicbloodpressure,thecuffpressurecorrespondingtothepulsewaveamplitudeofthelowpressuresidewhichisequivalentto70%ofthemaximumpulsewaveamplitudeasthediastolicbloodpressure.
Ex:Sphygmomanometer- top
Electric release valve Electric pump
LCD display
Pressure sensorControls
To cuff
Ex:Sphygmomanometer- bottom
Toshiba microcontroller
Timer/AlarmSystemdevelopment
Introduction
The Scenix SX family of configurable communications controllers are fabricated in an advanced CMOS process technology. The advanced process, combined with a RISC-based architecture, allows high-speed computation, flexible I/O control, and efficient data manipulation. Throughput is enhanced by operating the device at frequencies up to 50/75 MHz and by optimizing the instruction set to include mostly single-cycle instructions. In addition, the SX architecture is deterministic and totally reprogrammable. The unique combination of these characteristics enables the device to implement hard real-time functions as software modules (Virtual Peripheral™) to replace traditional hardware functions.
On-chip functions include a general-purpose 8-bit timer with prescaler, an analog comparator, a brown-out detector, a watchdog timer, a power-save mode with multi-source wakeup capability, an internal R/C oscillator, user-selectable clock modes, and high-current outputs.
Changed to Ubicom Bought by Qualcomm
BlockDiagram
Systemschematic
ProgramFlowchart
ProgramFlowchart
Systemmemorymap
Assemblycode
Assemblycode
Assemblycode
Assemblycode
Assemblycode
DistancemeasurementSystemdevelopment
Opendrainoperationinput
1.Distancemeasuringtypeobjectsensor(Distancemeasuringrange:Optionaldistancecanbesetasthresholdlevelbymeansofbuilt-inVR)
2.Impervioustocolorandreflectivityofreflectiveobject
Applications:- Sanitarysensors(humanbodydetection)- OAequipment(paperdetection)- Gameequipment- Forconsumerproducts(humanbodydetection)
3.Highprecisiondistancemeasurement
GP2D05DistanceMeasuringSensor–1-bitOutput
Distance measuring system prototype
Sharp Sensor Schematic
Black lead
Yellow lead[RB7]
Grn leadw/diode[RA0]
Red lead
Measurement Timing
Sensor Flowchart
Need to write code for:
-1 mSec timer- 56mSec timer- return pulse detector routine- 2 Sec timer
ORG $0 ;Page0forjumptable
DEVICE SX28L,OSC1MHZ,TURBO,STACKX,OPTIONX,IRCDIV1IRC_CAL IRC_FAST;calibrateinternalRCclock
RESET StartID 'GP2D05' ;Device=SHarpGP2D05opticalsensorFREQ 1_000_000
ORG $50;******************************;portdirectionconfig.;******************************START MODE $0F
MOV !ra,#%0000 ;allbits=outMOV !rb,#%11111111 ;allbits=inMOV !rc,#%00000000 ;allbits=out
;******************************;portstartuplogiclevels;******************************
MOV ra,#%0001 ;allportpins=low,exceptRA0MOV rb,#%00000000 ;allportpins=lowMOV rc,#%10000000 ;port7pin=hi- LEDoff
MODE $0E ;pullupresistorconfig.MOV !ra,#%1110 ;allbits1-3=normal;bit0=pulllupMOV !rb,#%01111111 ;allbits=nopullupexceptrb7MOV !rc,#%11111111 ;allbits=normal
MODE $0D ;logiclevelconfig.MOV !ra,#%1111 ;bit0=TTL,MOV !rb,#%11111111 ;allTTLMOV !rc,#%11111111 ;allTTL
Init & port configurations
;******************************; Mainloop;******************************pulse CALL trig ;startmeasurementpulse
CALL ms56 ;wait56msecsCALL detect ;lookfordetectionsignalCALL ms2k ;2secpauseJMP pulse ;loopback
Main
Subroutines
;******************************; 1millisecondtimer;******************************msec MOV $0C,#250 ;setregtorolloverfromzerotostart
MOV $0D,#2 ;setloopfor2xLoop DECSZ $0C ;250usecseachtimetest=0
JMP LoopDECSZ $0D ;JMP LoopRET ;done
;******************************; 56millisecondtimer;******************************
ms56 MOV $0E,#60 ;SETCOUNTERFOR56TIMESmslp CALL msec ;1msec
DECSZ $0EJMP mslp ;notdoneRET
******************************; 2secondtimer;******************************
ms2k MOV $0E,#250 ;SETCOUNTERFOR250TIMESinlp CALL msec ;1msec
DECSZ $0EJMP inlpRET
Subroutines continued
;*****************************; sendtriggerpulsetosensor;*****************************trig SETB RC.7
CALL msecCLRB RA.0 ;sendtriggerpulseRET
;*****************************; returnpulsedetection;*****************************detect MOV $0F,#20 ;setcounterfor14timesquart MOV W,RB ;readallbitsonportB
JNB RB.7,getout ;jumpoutifbitislowCALL msecDECSZ $0FJMPquartMOV rc,#%10000000 ;BIt7hi=LEDOFFSETB RA.0 ;resettriggerbitRET
eZ430-ChronosDevelopmentTool
OverviewTheeZ430-Chronosisahighlyintegrated,wearablewirelessdevelopmentsystembasedontheCC430.Itmaybeusedasareferenceplatformforwatchsystems,apersonaldisplayforpersonalareanetworks,orasawirelesssensornodeforremotedatacollection.BasedontheCC430F6137<1GHzRFSoC,theeZ430-Chronosisacompletefeaturinga96segmentLCDdisplay,anintegratedpressuresensorand3-axisaccelerometerformotionsensitivecontrol.TheintegratedwirelessinterfaceallowstheChronostoactasacentralhubfornearbywirelesssensorssuchaspedometersandheartratemonitors.TheeZ430-ChronosofferstemperatureandbatteryvoltagemeasurementandiscompletewithaUSB-basedCC1111wirelessinterfacetoaPC.TheeZ430-ChronoswatchmaybedisassembledtobereprogrammedwithcustomapplicationsandincludesaneZ430USBprogramminginterface.
Developmentsystems
eZ430-ChronosDevelopmentTool
eZ430-ChronosDevelopmentTool
eZ430-ChronosDevelopmentTool
CC-430CPU
DevelopmentsystemsTexasinstrumentsTiva™CSeriesTM4C123GLaunchPad EvaluationKit$13.50Features
•Tiva CSeriesTM4C123GH6microcontroller•USBMicro-ABconnector•Devicemodedefaultconfi guration•Host/OTGmodessupportable•RGBuserLED•Twouserswitches(application/wake)•AvailableI/Obroughtouttoheadersona0.1"grid•On-boardIn-CircuitDebugInterface(ICDI)•Switch-selectablepowersources•ICDI•USBDevice•Resetswitch•PreloadedRGBquickstart application•SupportedbyTivaWare™forCSeriessoftwareincludingtheUSBlibraryandtheperipheraldriverlibrary•Tiva CSeriesTM4C123GLaunchPad BoosterPack XLinterfacewhichfeaturesstackableheaderstoexpandthecapabilitiesofthe40-pinTiva CSeriesLaunchPad evaluationplatform
Atmel8-bitAVR364:MEGA-1284P$31.25
Features
•Atmel®megaAVR®ATmega1284Pmicrocontroller- Targetcontroller
•AtmelAVR®AT32UC3B125632-bitmicrocontroller- Boardcontroller- Communicationgateway
•Analoginput(toADC)- Temperaturesensor- Lightsensor- RCfilter
•DigitalI/O- Threemechanicalbuttons- FourLEDs- Fourexpansionheaders
•Footprintsforexternalmemory- AtmelAT45DBseriesDataFlash®serialflash- AtmelAT25DFseriesindustrialstandardserialdataflash
•Touch- OneAtmelQTouch®button
Developmentsystems
STMicroSTM32F0DISCOVERY$9.00
Features• STM32F051r8t6microcontrollerwith64kFLASH8kRAMinLQFP64package• OnboardST-link/v2withselectionmodeswitchforProgramminganddebugging• BoardpowersupplythroughUSBorexternalpowerSupply(3Vand5V)• 4LED’s– 3.3vpower,USBcomm.,PC8PC9outputs• 2pushbuttons• Extensionheader• Additionalboardforprototypingandextension
MicrochipchipKIT™UNO32$28,64
KeyFeatures
■ ApplicationdevelopmentusinganenvironmentbasedontheoriginalArduino IDE,modifi ed tosupportPIC32deviceswhilestillsupportingtheoriginalArduino line.Leveragesexistingcodeexamples,tutorialsandresources.■ Pin-outcompatibilitywithmanyexistingArduino shields■ Higherperformanceatalowerprice-pointthanexistingsolutions■ Advancedcapabilitiesincluding:
– IntegratedUSB(Device/Host,OTG– IntegratedEthernet– CAN
Developmentsystems
Freescalei.MX53QuickStartDevelopmentBoard$49.00
Features• i.MX531GHz ARMCortex-A8processor• MC34708 PMIC• 4GBmicroSD cardwithLinuximage• 5-volt power supply withworldwideadapters• Micro USBcable• Quick startguide• DVDwithVmware player,gettingstartedvideo,demosandotherdocuments
Features• MicrocontrollerATmega328• OperatingVoltage5V• InputVoltage(recommended)7-12V• InputVoltage(limits)6-20V• DigitalI/OPins14(ofwhich6providePWMoutput)• AnalogInputPins6• DCCurrentperI/OPin40mA• DCCurrentfor3.3VPin50mA• FlashMemory32KB(ATmega328)ofwhich0.5KBused
bybootloader• SRAM2KB(ATmega328)• EEPROM1KB(ATmega328)• ClockSpeed16MHz
Arduino Uno$25.00
MicrocontrollersystemboardsRaspberryPi
TheRaspberryPiisacredit-card-sizedsingle-boardcomputerdevelopedintheUKbytheRaspberryPiFoundationwiththeintentionofpromotingtheteachingofbasiccomputerscienceinschools.TheRaspberryPihasaBroadcomBCM2835systemonachip(SoC),[3]whichincludesanARM1176JZF-S700MHzprocessor(Thefirmwareincludesanumberof"Turbo"modessothattheusercanattemptoverclocking,upto1GHz,withoutaffectingthewarranty),[4]VideoCore IVGPU,[12]andwasoriginallyshippedwith256megabytesofRAM,laterupgradedto512MB.[13]Itdoesnotincludeabuilt-inharddiskorsolid-statedrive,butusesanSDcardforbootingandlong-termstorage.[14]TheFoundation'sgoalwastooffertwoversions,pricedatUS$25andUS$35.
Operatingsystem Linux(Raspbian,Debian GNU/Linux,Fedora,andArchLinuxARM)[2]RISCOS,FreeBSD,
NetBSD,Plan9
Power 2.5W(modelA),3.5W(modelB)
CPU ARM1176JZF-S(ARMv6K)700MHz,[3]RaspberryPis candynamicallyincreaseclockspeeds,andsomecantemporarily reach
speedsupto1GHz.[4]
Storagecapacity SDcardslot
(SDorSDHCcard)Memory 256MB(ModelA)
512MB(ModelBrev2)[5]256MB(ModelBrev1)
Developmentsystems
•1.2 Ghz Quad-Core ARM Cortex A53 64-Bit Processor.•2GB DDR3 SDRAM with 733MHz.•8 GB eMMC storage (16,32,64 options available).•WiFi (AP6212) & Bluetooth onboard.
Banana Pi M64$74.00
SiliconLabsThunderboard React
BGM111 Bluetooth Smart Module• Bluetooth 4.2 compliant• Integrated antenna and excellent RF performance• Configurable TX power up to +8dBm• ARM Cortex M4 core with 32 kB RAM and 256 kB Flash• Low Energy Consumption• Flexible MCU peripheral interfaces
Mobile app• Mobile app for Android and iOS• iOS app implemented in swift• Android app implanted in native code• Source code available at GitHub
Mobile app features• Beacon notifications• View sensor data• Control LEDs and detect button pushes• Stream sensor data to the cloud
Cloud streaming• Data is stored in Firebase• Web frontend is implemented in ReactJS
• Using Alt.js as the flux implementation• D3.js for data driven charts
• All source code availableInput and Sensors
• Si1133 UV Index and Ambient Light Sensor• Si7021 Digital relative humidity and temperature sensor• Si7201 Hall-effect Magnetic Sensor• Invensense MPU-6500 Six-Axis (Gyro + Accelerometer) MotionTracking device• 2 Buttons• 2 LEDs
$29.00
ParticlePhoton
•Particle PØ Wi-Fi module• Broadcom BCM43362 Wi-Fi chip• 802.11b/g/n Wi-Fi• STM32F205RGY6 120Mhz ARM
Cortex M3• 1MB flash, 128KB RAM
•On-board RGB status LED (ext. drive provided)•18 Mixed-signal GPIO and advanced peripherals•Open source design•Real-time operating system (FreeRTOS)•Soft AP setup
$19.00
•ATmega328P onboad chip in QFN package•16MHz clock rate, 28K FLASH available•USB bootloader with a nice LED indicator looks just like a USBtinyISP so you can program it with AVRdude and/or the Arduino IDE (with a few simple config modifications).•Also has headers for an FTDI port for reprogramming•Micro-USB jack for power and/or USB uploading, you can put it in a box or tape it up and use any USB cable for when you want to reprogram.•On-board 5.0V power regulator with 150mA output capability and ultra-low dropout. Up to 16V input, reverse-polarity protection, thermal and current-limit protection.•Power with either USB or external output (such as a battery) - it'll automatically switch over•On-board green power LED and red pin #13 LED•Reset button for entering the bootloader or restarting the program.•Works with 99% of existing Arduino sketches (anything that doesn't use more than 28K, and doesn't require pins #2 and #7)
Adafruit TrinketPro
$9.95
Summary
Therearemanytypesofmicrocontrollerdevelopmentsystemsavailable.
TheyareusuallylowpricedandhavealotofsupportdocumentationtopromoteTheirusebyhobbyists.
Onceyouhaveanapplicationinmind,selecttheappropriatemicrocontrollerorSmallboarddevelopmentsystemthatwillbestmeettheapplicationcriteria.
https://www.youtube.com/watch?v=DmoeQpjPu9o
NewcloudtechnologytounifyIoT devices: