-
二进制转换,原码,反码,补码的学习
二进制转换十进制例: 01100100 =100 第0位:0*2^0=0 第1位:0*2^1=0 第2位:1*2^2=4 第3位:0*2^3=0 第4位:0*2^4=0 第5位:1*2^5=32 第6位:1*2^6=64 第7位:0*2^7=0 4 32 64=100八进制转换十进制例: 1507=839 第0位:7*8^0=7 第1位:0*8^1=0 第2位:5*8^2=320 第3位:1*8^3=512 7 320 512=839十六进制转换十进制例: 2AF5=10997 第0位:5*16^0=5 第1位:F*16^1=240 第2位:A*16^2=2560 第3位:2*16^3=8192 5 240 2560 8192=10997十进制转换八进制例: 120=170 120 120/8 15 0 15 15/8 1 7 1 1/8 0 1十进制转换二进制和十进制转换八进制一样只是把除数变成2。十进制转换十六进制例: 120=78 120 120/16 7 8 7 7/16 0 7二进制转换十六进制例: 二进制转换十六进制是以4位一段分别转换为十六进制。 权值:23=8,22=4,21=2,20=1 所以:1111=F 二进制 十进制 十六进制 1111 8 4 2 1=15 F 1110 8 4 2 0=14 E ......1111 1101 , 1010 0101 , 1001 1011 F D , A 5 , 9 B原码: 一个整数,按照绝对值大小转换成二进制,成为原码。 例:00000000 00000000 00000000 00000101 是5的原码反码: 将二进制数按位取反,所得的新二进制数称为原二进制数的反码。 取反操作指:1变0;0变1例: 00000000 00000000 00000000 00000101每一位取反,得11111111 11111111 11111111 11111010 称:00000000 00000000 00000000 00000101是11111111 11111111 11111111 11111010的反码补码: 反码加1称为补码 也就是说,要得到一个数的补码,先得到反码,然后将反码加上1,所得数称为补码例:00000000 00000000 00000000 00000101是11111111 11111111 11111111 11111010的反码 那么,补码位:11111111 11111111 11111111 11111010 1=11111111 11111111 11111111 11111011
- 2015-04-09下载
- 积分:1
-
2014英伟达校招笔试真题_嵌入式_软件
2014英伟达(NVIDIA)笔试真题,嵌入式软件开发,笔试真题(全),冒死偷拍啊啊啊
- 2020-11-30下载
- 积分:1
-
matlab电压扰动波形
本程序在matlab中实现了5种电压扰动,电压闪边,电压暂降,电压暂态脉冲等波形。
- 2020-11-28下载
- 积分:1
-
ST FOC 5.0说明书 快速入门 SDK v5.0.pdf
ST FOC 5.0说明书 配合 开源库 https://download.csdn.net/download/hxinstar/10322042使用UM2374List of tablesList of tablesTable 1. List of acronymsTable 2Document revision history..23UM2374 Rey 13/24List of figuresUM2374List of figuresFigure 1. ST MC Workbench -Icon and installation folder treeFigure 2. ST MC Workbench-GUI expanded top viewFigure 3. ST Motor Profiler-GUI889Figure 5. ST Motor Profiler-SM-PMSM parameters exampleFigure 4. ST Motor Profiler- Hardware setup list examples1011Figure 6. ST Motor Profiler-l-PMSM parameters exampleFigure 7. ST Motor Profiler-Measurement results12Figure 8. ST Motor Profiler-Save window13Figure 9. ST MC Workbench - New Project window14Figure 10. ST MC Workbench -New Project Info window14Figure 11. ST MC Workbench -Project Settings15Figure 12. ST MC Workbench-Project Settings window.15Figure 13. ST MC Workbench -Project generation button16Figure 14. ST MC Workbench -Workspace selectionFigure 15. ST MC Workbench -Project generation build infoFigure19. ST MC Workbench- Use of the motor control and monitoring.∴、∴,"…,,∴…….17Figure 16. IDE-MC Project view example18Figure 17. STMC Workbench-Motor monitoring button.19Figure 18. ST MC Workbench -Motor monitoring GUI204/24UM2374 Rey 1/UM2374General informationGeneral informationThe Mc sDK is used for the development of motor-control applications running on STM3232-bit microcontrollers based on the arm Cortex-M processorTable 1 presents the definition of acronyms that are relevant for a better understanding ofthis documentTable 1. List of acronymsAcronymDescriptionGUIGraphical user interfaceIDEIntegrated development environmentFOCField-oriented controlFWFirmwareMotor controlMC WBMotor control Workbench(STMicroelectronics sw tool)MPMotor Profiler(STMicroelectronics software tool)PMSMPermanent-magnet synchronous motorPWMPulse-width modulationSDKSoftware development kitVCVector controlMore information about ST MC Workbench is provided in the stm32 motor control SDKv5.0toolsusermanual(um2380)availableatwww.st.comarmUM2374 Rey 15/24Motor control ecosystem setupUM23742Motor control ecosystem setupA suitable ST Motor Control ecosystem environment includesA PC running the needed Mc software toolsA third-party IDEa third-party ANSI C-compilerA JTAG/SWD interface for debugging and programmingAn STMicroelectronics application board with one of the STM32 microcontrollerssupported. It drives the power stage and featuresPWM outputs to gate driverADC channels to measure currentsDC bus voltageA three-phase PMsM motol· A power supplyRefer to the STM32 motor control software development kit(Mc sDk data brief(DB3548)atwww.st.comandtothereleasenoteformoredetails2.1Software tool setupThe STMicroelectronics motor-control ecosystem runs on a pc with Windows7The following Pc software tools are correctly installedST MC Workbench (v5.0.0 or later)STM32CubeMX(v4 24.0 or later)ST-LINK/2(v4.0.0 or later)Any supported IDEIAR Embedded Workbench@ for Arm(v7.80.4Keil MDK tools (v5.24.2 or later)Ac6 System Workbench(v2.3.0 or later)(a)Refer to the respective user manuals for proper installation. STMicroelectronics documentsareavailablefromtheinternetsiteatwwwst.comSTM32 motor control SDK v5.0 tools user manual (UM2380STM32 CubeMX for STM32 configuration and initialization c code generation usermanual (UM1718)STM32 ST-LINK utility software description user manual(UM0892)The AC6 tool framework is not supported in SDK v5.0 but in later versions6/24UM2374 Rey 1/UM2374Motor control ecosystem setup22Hardware setupThe connection of the STMicroelectronics application board to the pc requires a USBType-A connector. Refer to the description of the application board for details on the USBcableA dedicated description card is delivered with each STMicroelectronics application board forproper installation For more details, refer to the user manual of the board available atwww.st.comThe selected hardware can be one of the three setups· The complete MC KitOne of the complete inverter boardsAny STM32 evaluation board combined with one of the ST evaluation power stagesthat include the mc connectorUM2374 Rey 17/24Getting StartedUM23743Getting StartedWarning: Check that the board is correctly configured for the motorcontrol application and supplied with the expected inputvoltageNoteRefer to the user manual of the related hardware to setup the correct configuration, voltagerange, serial communication capabilities, and programming/debugging interface3.1Hardware connectionConnect a uSb cable between the pc and the stmicroelectronics application board andthe JTAG/SWD programming cable if it is different from the USB cable3.2Motor profilingLaunch the ST MC Workbench software tool either byclicking on its iconrunning it directly from the installation folder treeBoth ways of launching the ST MC Workbench are illustrated in Figure 1Figure 1. ST MC Workbench- Icon and installation folder treeI STMicroelectrorics感FOC SDKLv.3.0MotorControlv500WorkBenchST Motor Control Workbenchd ST Motor profileren the st motor profiler tool either byUsing its dedicated button in the St Mc Workbench GUl as illustrated in Figure 2Running it directly from the installation folder tree as illustrated in Figure 1Figure 2. ST MC Workbench-GUl expanded top viewFile Tools Help Documet ta ionNew ProjectLoad Project4 About HelpMotor ProfilRcGert ProJEcts己tdbrsDRpower board8/24UM2374 Rey 1/UM2374Getting StartedClick on the Select Boards button to display the list of supported boards as shown onFigure 3 and select the STMicroelectronics application board setup. Figure 4 on page 10presents examples from this listNoteThe ST Motor Profiler tool may be used only with ST hardware in the list of supportedsetups.Figure 3. ST Motor Profiler-GUI2 ST Motor Profile.l:e augmentedMotor ProfilersPole pairsPe row to detecbeed and Current /mitsMaκSpet1600FPMn7 Select Board∧pk02530pkMagnetic: SM-PMSN○-NSMMechanIcal mode lO CenElectrical modelOW000UM2374 Rey 19/24Getting StartedUM2374Figure 4. ST Motor Profiler-Hardware setup list examplesE ST Motor ProfiY Hideabsolete boarde arch Control board by narSe arch power boac bv nareControl boardower BoardxCancelHide boards with warningNUCLEO-F302R8X-NUCLEO-HMOTM1 3shNUCLEO-F302R8X-NUCLEO-HMOBM1 3shT2F302R8T6L6230PDSTM32F302R8T6STL22ON6FT●Acf8m:m3SELNRV2 Emiol connectorC Product Web PageG Product Web PageC Product Web PageC Product Web PageNUCLEO-F303RESTEVAL-IPMO5F 3ShNUCLEO.F303RESTEVAL-IPM108 3sh●Aiv命Ativ● Ac livSn Ngor ombreI connectorST-LINKV2C Product Web PageC Product Web PageC Product Web PageC Product Web PageClick on the sTmicroelectronics hardware setup to select it and configure the st motorProfiler toolAs an example, Figure 4 shows the selection of the P-NUCLEO-IHM001 motor controlNucleo pack with NucLEo-F302R8 and X-NUCLEO-IHMO7M1After hardware setup selection, fill in the parameter fields with the motor informationThe number of pole pairs of the motor(mandatory fieldThe Max Speed of the motor(optional field)by default, the st Motor Profiler tool searches for the maximum allowed speedmatching the motor and the hardware setup usedThe Max Current allowed by the motor(optional field)By default, it is the maximum peak current deliverable by the hardware setupThe nominal dC bus voltage used by the hardware setup(optional field)By default, it is the power supply stage as either the bus voltage for low voltageapplications(DC voltage), or the RMs value for high voltage application(Ac voltage)The magnetic built-in type(mandatory field)By default, the SM-PMSM is selectedThe Ld/Lq ratio(mandatory field only when l-PMSM built-in is selected as shown inFigure 6 on page 1110/24UM2374 Rey 1/
- 2020-11-29下载
- 积分:1
-
Planning Algorithms by Steven M. LaValle (z-lib.org).pdf
Planning Algorithms by Steven M. LaValle (z-lib.org).pdf
- 2020-12-08下载
- 积分:1
-
基于MFC的网络摄像头视频读取显示程序
此程序是基于MFC平台的网络摄像头视频读取,并进行显示的程序,摄像头采集视频信息,并通过WiFi传递到PC端,PC端上位机,用opencv读取视频信息,并进行显示。次程序需要opencv库。
- 2021-05-06下载
- 积分:1
-
DataCastle轴承故障预测数据集
DataCastle轴承故障预测数据集,可供下载使用的有2个文件:1.train.csv,训练集数据,1到6000为按时间序列连续采样的振动信号数值,每行数据是一个样本,共792条数据,第一列id字段为样本编号,最后一列label字段为标签数据,即轴承的工作状态,用数字0到9表示。2.test_data.csv,测试集数据,共528条数据,除无label字段外,其他字段同训练集。总的来说,每行数据除去id和label后是轴承一段时间的振动信号数据,选手需要用这些振动信号去判定轴承的工作状态label。
- 2020-12-11下载
- 积分:1
-
16QAM DDLMS 均衡算法仿真
16QAM DDLMS算法的matlab/simulink仿真模型
- 2021-05-06下载
- 积分:1
-
忆阻器的Pspice代码
忆阻器的Pspice代码,兼容了多种窗函数
- 2020-12-12下载
- 积分:1
-
asp.net学生信息管理系统
该软件室对学校师生信息的行管理的系统。asp.net学生信息管理系统
- 2020-11-06下载
- 积分:1