0
100% Satisfaction Guarantee
Amazing Value
Fast Shipping
Expert Customer Service
现货 机工 嵌入式系统原理及应用 基于STM32和RT-Thread 胡永涛 普通高等教育电子...
$51.17
出版社: 机械工业出版社
ISBN:9787111733003 商品编码:10086084986091 页数:272 字数:432000 审图号:9787111733003 本书以意法半导体(ST)的STM32L431系列微控制器为硬件核心,采用裸机开发和RT-Thread操作系统开发两条主线贯穿工作原理与实践应用,层层递进地介绍嵌入式系统的开发设计方法。全书共13章。第1~6章介绍STM32裸机开发,包括嵌入式系统概述、STM32硬件及软件基础、STM32通用功能输入输出、STM32外部中断、STM32定时器/计数器和STM32通用同步异步通信。第7~12章介绍RT-Thread操作系统开发,包括RT-Thread操作系统基础、RT-Thread线程管理、RT-Thread线程间同步、RT-Thread线程间通信、RT-Thread设备驱动和RT-Thread软件包。两种开发环境均适用于ST全系列微控制器,并且屏蔽了不同芯片的差异,用户掌握了STM32L431系列微控制器即掌握了ST全系列微控制器。第13章介绍基于STM32及OneNET的智能家居系统,通过综合应用案例,读者可以快速掌握基于STM32及RT-Thread的嵌入式系统设计与开发的方法。 本书配有大量源于工程项目的应用实例,所有实例均经过调试和测试,可直接移植应用。此外,本书各章均配有思维导图和思考与练习,帮助读者巩固基础知识,提高综合应用能力。 本书可作为普通高等院校电气、自动化、电子信息、机器人等专业的教材。本书配有以下教学资源:电子课件、源代码、教学大纲、视频。选用本书作教材的教师请登录wwwcmpeducom注册后下载,或加微信13910750469索取。 第1章嵌入式系统概述1 本章思维导图1 1.1嵌入式系统基本概念1 1.1.1嵌入式系统的定义及特点1 1.1.2嵌入式系统的发展历程及 发展趋势2 1.1.3嵌入式系统的应用3 1.1.4嵌入式系统的架构4 1.2嵌入式系统硬件4 1.2.1嵌入式系统硬件架构4 1.2.2嵌入式处理器4 1.2.3ARM微控制器5 1.3嵌入式系统软件6 1.3.1嵌入式系统软件架构6 1.3.2嵌入式系统软件编程思想9 思考与练习10 第2章STM32硬件及软件基础12 本章思维导图12 2.1STM32微控制器概述12 2.1.1STM32微控制器产品系列及命名 规则13 2.1.2STM32L431性能14 2.1.3STM32L431外部结构15 2.2最小系统设计16 2.3裸机开发环境搭建19 2.4C语言基础22 2.4.1文件结构22 2.4.2程序版式23 2.4.3C语言知识精编24 思考与练习35 第3章STM32通用功能输入输出37 本章思维导图37 3.1GPIO概念及应用场景37 3.1.1GPIO概念37 3.1.2GPIO应用场景38 3.2IO内部电路结构及工作模式39 3.2.1IO内部电路结构39 3.2.2IO工作模式41 3.2.3GPIO应用步骤42 3.3GPIO应用实例1——状态指示灯46 3.3.1电路原理及需求分析46 3.3.2实现过程46 3.4GPIO应用实例2——按键控制LED51 3.4.1电路原理及需求分析51 3.4.2实现过程52 思考与练习54 第4章STM32外部中断57 本章思维导图57 4.1中断基本概念57 4.2STM32外部中断系统59 4.2.1EXTI主要特征59 4.2.2EXTI内部电路结构59 4.2.3EXTI应用步骤59 4.3EXTI应用实例——按键控制LED62 4.3.1电路原理及需求分析62 4.3.2实现过程63 思考与练习64 第5章STM32定时器/计数器66 本章思维导图66 5.1定时器/计数器基本概念66 5.2STM32定时器系统68 5.2.1TIM内部电路结构68 5.2.2脉冲宽度调制70 5.2.3TIM精确定时应用步骤72 5.3TIM应用实例1——精确定时73 5.3.1电路原理及需求分析73 5.3.2实现过程74 5.4TIM应用实例2——PWM控制状态 指示灯77 5.4.1电路原理及需求分析77 5.4.2实现过程77 思考与练习81 第6章STM32通用同步异步通信83 本章思维导图83 6.1通信基础83 6.1.1通信分类83 6.1.2异步串行通信85 6.2STM32的串口系统87 6.2.1USART的特点87 6.2.2USART内部电路结构87 6.2.3USART应用步骤87 6.3USART应用实例1——串口打印 信息90 6.3.1电路原理及需求分析90 6.3.2实现过程91 6.4USART应用实例2——开关量远程 监控系统95 6.4.1电路原理及需求分析95 6.4.2实现过程96 思考与练习106 目录第7章RT-Thread操作系统基础108 本章思维导图108 7.1RT-Thread操作系统简介及架构108 7.1.1RT-Thread简介108 7.1.2RT-Thread操作系统架构109 7.2RT-Thread开发环境搭建111 7.2.1软件下载及安装111 7.2.2软件测试111 7.3RT-Thread内核基础114 7.3.1内核简介114 7.3.2启动流程116 7.3.3程序内存分布118 7.3.4自动初始化机制119 7.3.5内核对象模型119 思考与练习120 第8章RT-Thread线程管理122 本章思维导图122 8.1线程概念及管理方式122 8.1.1线程概念122 8.1.2线程管理方式及特点123 8.2线程工作机制124 8.2.1线程控制块124 8.2.2线程重要属性125 8.2.3系统线程128 8.3线程应用方法128 8.3.1线程管理方式128 8.3.2动态线程应用步骤130 8.4线程应用实例——状态指示灯131 思考与练习135 第9章RT-Thread线程间同步137 本章思维导图137 9.1信号量137 9.1.1信号量工作机制137 9.1.2信号量管理方式139 9.1.3信号量应用步骤140 9.2互斥量142 9.2.1互斥量工作机制142 9.2.2互斥量管理方式143 9.2.3互斥量应用步骤144 9.2.4优先级翻转146 9.3事件集148 9.3.1事件集工作机制148 9.3.2事件集管理方式149 9.3.3事件集应用步骤151 9.4线程间同步应用实例——多线程 同步152 9.4.1电路原理及需求分析152 9.4.2实现过程153 思考与练习157 第10章RT-Thread线程间通信159 本章思维导图159 10.1邮箱159 10.1.1邮箱工作机制159 10.1.2邮箱管理方式161 10.1.3邮箱应用步骤162 10.2消息队列164 10.2.1消息队列工作机制164 10.2.2消息队列管理方式165 10.2.3消息队列应用步骤166 10.3信号168 10.3.1信号工作机制168 10.3.2信号管理方式168 10.3.3信号应用步骤170 10.4线程间通信应用实例——多变量 通信171 思考与练习174 第11章RT-Thread设备驱动175 本章思维导图175 11.1IO设备模型及框架176 11.1.1IO设备模型176 11.1.2IO设备模型框架177 11.1.3IO设备访问178 11.2PIN设备驱动179 11.2.1获取引脚编号179 11.2.2PIN设备管理方式180 11.2.3PIN设备应用实例及步骤183 11.3UART设备驱动184 11.3.1UART设备管理方式184 11.3.2UART设备应用实例及步骤188 11.4TIM设备驱动189 11.4.1TIM设备管理方式189 11.4.2TIM设备应用实例及步骤192 11.5ADC设备驱动197 11.5.1ADC设备管理方式197 11.5.2ADC设备应用实例及步骤198 11.6设备驱动应用实例——远程监控 系统201 11.6.1电路原理及需求分析201 11.6.2实现过程202 思考与练习209 第12章RT-Thread软件包211 本章思维导图211 12.1软件包简介及应用步骤212 12.1.1软件包简介212 12.1.2软件包应用步骤212 12.2AHT10软件包214 12.2.1AHT10简介214 12.2.2AHT10软件包应用实例及 步骤216 12.3AT Device软件包220 12.3.1AT命令简介220 12.3.2AT Device软件包应用实例及 步骤221 12.4MQTT软件包224 12.4.1MQTT简介224 12.4.2MQTT软件包应用实例及 步骤226 12.5cJSON软件包234 12.5.1JSON简介234 12.5.2cJSON组包和解析236 12.5.3cJSON软件包应用实例238 思考与练习246 第13章基于STM32及OneNET的 智能家居系统247 本章思维导图247 13.1需求分析248 13.2整体方案设计248 13.3硬件设计250 13.4软件设计250 13.4.1软件架构250 13.4.2系统配置251 13.4.3程序设计254 13.5OneNET云应用设计261 13.5.1OneNET简介261 13.5.2设备接入262 13.5.3数据可视化265 13.6系统测试269 思考与练习270 附录开发板原理图271 参考文献272
Shipping Overview:
• Shipping: Standard Domestic Shipping within the United States charges USD 4.99. Standard International Shipping from United Kingdom, Germany and Japan to the United States charges 14.99.
• Order Processing: Please allow 1-2 business days for order processing and preparation before shipment.
• Domestic Shipping: Orders within the U.S. are shipped via USPS or FedEx, depending on the origin of the product. The average transit time is 3-7 business days.
• International Shipping: Currently, we only ship within the USA.
• Tracking Information: Every order is trackable. You will receive a tracking number once your order has been shipped. Products may be shipped from various global fulfillment centers.
Shipping Delays:
Please note that shipping times may vary due to factors beyond our control, such as weather conditions, natural disasters, or peak holiday periods. While we strive to ensure timely delivery, the exact arrival time cannot be guaranteed and is managed by the shipping carrier.
Shipping Options:
Standard Delivery: Most orders are shipped within 3-7 business days. Larger items may utilize LTL shipping for safe handling.
Handling Time: We handle shipments on business days (Monday - Friday), with a preparation time of 1-2 days.
Additional Charges: Some items require additional shipping charges due to their size, weight, or special handling. These charges are specified on the product pages and are not eligible for shipping discounts.
Exclusions: Gift cards, packaging, taxes, and prior purchases do not count toward the minimum purchase requirement for free shipping. This offer is valid only for shipments to U.S. addresses, including Puerto Rico.
Delivery Details:
Estimates: Standard shipping within the US typically takes 3-7 business days. These are estimates and not guarantees.
Shipping Restrictions: We ship to all 50 states, Washington, DC, U.S. territories, and APO/FPO/DPO addresses. Shipping options vary based on the delivery address.
Remote Areas: Shipments to remote areas may incur additional charges or require pickup from a nearby shipping partner’s location.
Shipping Confirmation:
You will receive a shipping confirmation email with a tracking number as soon as your order is dispatched. If you do not receive this email immediately, please be assured that your items will arrive within the estimated delivery window provided at checkout.
Order Modifications:
If you need to cancel or modify your order, please contact our customer support immediately.
Issues with Delivery:
If your order shows as delivered but you have not received it, please contact the shipping carrier directly to resolve the issue. For persistent problems, contact our customer service at cs@everymarket.com.
Customer Support:
Our team is available 24/7 to assist you with any questions or concerns regarding your order. We are committed to ensuring a smooth shopping experience.
Return & Refund Policy Overview
Please review our return and refund policies below to ensure a smooth transaction process.
Return Policy
Duration: You have 30 days from receiving your item to initiate a return.
Condition: Items must be unworn, unwashed, with original tags and packaging intact.
Shipping Costs: Customers are responsible for return shipping costs.
Packaging: Ensure returned items are well-packaged to avoid damage during transit.
Tracking: Use a trackable and insured shipping method as we are not liable for items lost or damaged on return.
Initiating a Return: Contact us at cs@everymarket.com to start your return. We will provide a return shipping label and instructions upon approval. Returns without prior approval will not be accepted.
How to Return
Method: Returns must be sent back by mail to the address provided in the return instructions.
Return Label
Defective Products: Return labels are provided for defective items.
Non-Defective Returns: Customers are responsible for obtaining their return shipping label.
Product Conditions for Return
Eligible Products: Returns are only accepted for items in new condition.
Nonreturnable Items
Certain items are not eligible for return:
Electronic devices after 30 days (e.g., computers, laptops, Kindles)
Gift cards, prepaid game cards
Perishable goods, live insects, some jewelry, some health and personal care items
Customized or personalized products
Items with special shipping restrictions
Refund Policy
Window: Eligible products may be returned within 30 days of delivery for a refund.
Refund Method: Refunds are processed to the original payment method or as store credit for items purchased with gift cards.
Processing Time: Refunds are processed within 3-5 business days after we receive the return; please allow additional time for shipping and bank processing.
Claims
Inspect your order upon arrival and report any defects, damages, or incorrect items immediately to allow us to address the issue. For claims, contact our support team with details of the issue.
Exchange Policy
For the quickest service, return your original item and place a new order for the desired product once your return is accepted.
Return Address
EveryMarket Customer Service 2101 E Terra Ln, O'Fallon, MO 63366
Customer Support
Available 24/7 for any questions or assistance needed:
Phone: +1 636-312-5925
Email: cs@everymarket.com
Oops!
Sorry, it looks like some products are not available in selected quantity.
OK