{{sellerTotalView > 1 ? __("sellers", {number: sellerTotalView}) : __("seller", {number: sellerTotalView}) }}, {{numTotalView > 1 ? __("items", {number: numTotalView}) : __("item", {number: numTotalView}) }}
free FREE

Change Your Zip Code

Inventory information and delivery speeds may vary for different locations.

Location History

{{email ? __('Got it!') : __('Restock Alert')}}

We will notify you by email when the item back in stock.

Cancel
Yami

Jingdong book

单片机C语言程序设计实训100例:基于AVR+Proteus仿真

{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}

单片机C语言程序设计实训100例:基于AVR+Proteus仿真

{{__(":people-members", {'people': item.limit_people_count})}} {{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ item.invalid_price }} {{ itemDiscount }}
Ends in
{{ itemCurrency }}{{ item.valid_price }}
{{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }}
{{ itemDiscount }}
{{ itemCurrency }}{{ item.valid_price }} {{ itemCurrency }}{{ priceFormat(item.valid_price / item.bundle_specification) }}/{{ item.unit }} {{ itemCurrency }}{{ item.invalid_price }} {{itemDiscount}}
{{ itemCurrency }}{{ item.valid_price }}
Sale ends in
Sale will starts after Sale ends in
{{ getSeckillDesc(item.seckill_data) }}
{{ __( "Pay with Gift Card to get sale price: :itemCurrency:price", { 'itemCurrency' : itemCurrency, 'price' : (item.giftcard_price ? priceFormat(item.giftcard_price) : '0.00') } ) }} ({{ itemCurrency }}{{ priceFormat(item.giftcard_price / item.bundle_specification) }}/{{ item.unit }}) Details
Best before

Currently unavailable.

We don't know when or if this item will be back in stock.

Unavailable in your area.
Sold Out

Details

Full product details
Content Description

基于AVR Studio+WinAVR(GCC)组合环境和Proteus硬件仿真平台,精心安排了100个AVR单片机C程序设计案例。《单片机C语言程序设计实训100例:基于AVR+Proteus仿真》提供了所有案例完整的C语言源程序,各案例设计了难易适中的实训目标。
基础设计类案例涵盖AVR单片机最基本的端口编程、定时/计数器应用、中断程序设计、A/D转换、比较器程序设计、EEPROM、Flash、USART及看门狗程序设计;硬件应用类案例涉及单片机存储器扩展、接口扩展、译码、编码、驱动、光电、机电、传感器、I2C/TWI及SPI接口器件、MMC、红外等器件;综合设计类案例涉及消费类电子产品、仪器仪表及智能控制设备相关技术,相关案例涉及485及RTL8019的应用。
《单片机C语言程序设计实训100例:基于AVR+Proteus仿真》适合用作大专院校学生学习实践AVR单片机C语言程序设计技术的参考书,也可用作电子工程技术人员、单片机技术爱好者的学习参考书。
Catalogue

第1章 AVR单片机C语言程序设计概述1
1.1 AVR单片机简介1
1.2 AVRStudio+WinAVR开发环境安装及应用4
1.3 AVRGCC程序设计基础7
1.4 程序与数据内存访问14
1.5 I/O端口编程14
1.6 外设相关寄存器及应用16
1.7 中断服务程序31
1.8 GCC在AVR单片机应用系统开发中的优势33

第2章 Proteus操作基础35
2.1 Proteus操作界面简介35
2.2 仿真电路原理图设计37
2.3 元件选择39
2.4 仿真运行44
2.5 Proteus与AVRStudio的联合调试45
2.6 Proteus在AVR单片机应用系统开发中的优势46

第3章 基础程序设计48
3.1 闪烁的LED48
3.2 左右来回的流水灯50
3.3 花样流水灯52
3.4 LED模拟交通灯54
3.5 单只数码管循环显示0~957
3.6 8只数码管滚动显示单个数字59
3.7 8只数码管扫描显示多个不同字符61
3.8 K1~K4控制LED移位62
3.9 数码管显示4×4键盘矩阵按键65
3.10 数码管显示拨码开关编码68
3.11 继电器控制照明设备70
3.12 开关控制报警器72
3.13 按键发音74
3.14 INT0中断计数76
3.15 INT0与INT1中断计数79
3.16 TIMER0控制单只LED闪烁83
3.17 TIMER0控制流水灯85
3.18 TIMER0控制数码管扫描显示87
3.19 TIMER1控制交通指示灯90
3.20 TIMER1与TIMER2控制十字路口秒计时显示屏94
3.21 用工作于计数方式的T/C0实现100以内的脉冲或按键计数98
3.22 用定时器设计的门铃100
3.23 报警器与旋转灯103
3.24 100000s以内的计时程序106
3.25 用TIMER1输入捕获功能设计的频率计109
3.26 用工作于异步模式的T/C2控制的可调式数码管电子钟113
3.27 TIMER1定时器比较匹配中断控制音阶播放117
3.28 用TIMER1输出比较功能调节频率输出120
3.29 TIMER1控制的PWM脉宽调制器123
3.30 数码管显示两路A/D转换结果126
3.31 模拟比较器测试128
3.32 EEPROM读/写与数码管显示130
3.33 Flash程序空间中的数据访问136
3.34 单片机与PC机双向串口通信仿真141
3.35 看门狗应用147

第4章 硬件应用150
4.1 74HC138与74HC154译码器应用150
4.2 74HC595串入并出芯片应用153
4.3 用74LS148与74LS21扩展中断157
4.4 62256扩展内存实验160
4.5 用8255实现接口扩展163
4.6 可编程接口芯片8155应用168
4.7 可编程外围定时/计数器8253应用173
4.8 数码管BCD解码驱动器7447与4511应用178
4.9 8×8LED点阵屏显示数字181
4.10 8位数码管段位复用串行驱动芯片MAX6951应用183
4.11 串行共阴显示驱动器MAX7219与7221应用188
4.12 16段数码管演示193
4.13 16键解码芯片74C922应用196
4.14 1602LCD字符液晶测试程序199
4.15 1602液晶显示DS1302实时时钟205
4.16 1602液晶工作于4位模式实时显示当前时间211
4.17 2×20串行字符液晶演示214
4.18 LGM12864液晶显示程序217
4.19 PG160128A液晶图文演示226
4.20 TG126410液晶串行模式显示247
4.21 用带SPI接口的MCP23S17扩展16位通用I/O端口257
4.22 用TWI接口控制MAX6953驱动4片5×7点阵显示器262
4.23 用TWI接口控制MAX6955驱动16段数码管显示266
4.24 用DAC0832生成多种波形270
4.25 用带SPI接口的数/模转换芯片MAX515调节LED亮度273
4.26 正反转可控的直流电机276
4.27 正反转可控的步进电机279
4.28 DS18B20温度传感器测试282
4.29 SPI接口温度传感器TC72应用测试293
4.30 SHT75温、湿度传感器测试299
4.31 用SPI接口读/写AT25F1024309
4.32 用TWI接口读/写24C04318
4.33 MPX4250压力传感器测试326
4.34 MMC存储卡测试329
4.35 红外遥控发射与解码仿真340

第5章 综合设计348
5.1 多首电子音乐的选播348
5.2 电子琴仿真353
5.3 普通电话机拨号键盘应用357
5.4 1602LCD显示仿手机键盘按键字符363
5.5 数码管模拟显示乘法口诀369
5.6 用DS1302与数码管设计的可调电子钟372
5.7 用DS1302与LGM12864设计的可调式中文电子日历380
5.8 用PG12864LCD设计的指针式电子钟393
5.9 高仿真数码管电子钟401
5.10 1602LCD显示的秒表409
5.11 用DS18B20与MAX6951驱动数码管设计的温度报警器413
5.12 用1602LCD与DS18B20设计的温度报警器421
5.13 温控电机在L298驱动下改变速度与方向运行431
5.14 PG160128中文显示日期时间及带刻度显示当前温度439
5.15 液晶屏曲线显示两路A/D转换结果447
5.16 用74LS595与74LS154设计的16×16点阵屏452
5.17 用8255与74LS154设计的16×16点阵屏457
5.18 8×8LED点阵屏仿电梯数字滚动显示461
5.19 用内置EEPROM与1602液晶设计的带MD5加密的电子密码锁466
5.20 12864LCD显示24C08保存的开机画面480
5.21 12864LCD显示EPROM27C256保存的开机画面488
5.22 I2CAT24C1024×2硬字库应用491
5.23 SPI-AT25F2048硬件字库应用498
5.24 带液晶显示的红外遥控调速仿真505
5.25 能接收串口信息的带中英文硬字库的80×16点阵显示屏511
5.26 用AVR与1601LCD设计的计算器523
5.27 电子秤仿真设计531
5.28 模拟射击训练游戏537
5.29 PC机通过485远程控制单片机546
5.30 用IE访问AVR+RTL8019设计的以太网应用系统550
参考文献568
Introduction

目前,各高校电类专业都将C语言作为专业基础课程纳入教学计划。由于C语言功能强大、便于模块化开发、所带库函数非常丰富、编写的程序易于移植,因此,它成为单片机应用系统开发最快速高效的程序设计语言。仅具有C语言基础知识但不熟悉单片机指令系统的读者也能很快掌握单片机C程序设计技术,C语言在单片机应用系统设计上的效率优势已经远远高于汇编、BASIC等开发语言。
单片机C程序设计不同于通用计算机应用程序设计,它必须针对具体的微控制器及外围电路来完成。为便于学习单片机应用程序设计和系统开发,很多公司推出了单片机实验箱、仿真器和开发板等,这些硬件设备可用于验证单片机程序、开发和调试单片机应用系统。但由于这些设备价格不菲,它们阻碍了普通读者对单片机技术的学习和研究。令人高兴的是,英国Labcenter公司推出了具有单片机系统仿真功能的Proteus软件,单片机系统开发通常是基于上位机加目标系统进行的,Proteus的出现使读者仅用一台PC在纯软件环境中完成系统设计与调试成为可能。目前Proteus支持8051、AVR、PIC等多种单片机,系统库中包含有大量的模拟、数字、光电和机电类元器件,系统还提供了多种虚拟仪器,用AVR Studio+WinAVR(GCC)开发的程序可以在用Proteus设计的仿真电路中调试和交互运行。这无疑为读者学习和提高AVR单片机C程序设计技术,为单片机应用系统高水平工程师的成长提供了理想平台。
为帮助读者快速提高AVR单片机C程序设计水平,本书基于AVR Studio+WinAVR(GCC)组合开发环境和Labcenter公司的Proteus仿真平台,精心安排了100个AVR单片机C程序设计案例,各案例同时给出了难易适中的实训目标。
前2章分别对AVRGCC程序设计和Proteus操作基础作了概述。第3章基础程序部分给出的案例涵盖AVR单片机端口编程、定时/计数器应用、A/D转换、模拟比较器程序设计、中断程序设计、EEPROM、Flash、USART及看门狗程序设计,各案例分别对相关知识和技术要点作了阐述与分析,源程序中也给出了丰富的注释信息。第4章硬件应用部分针对AVR单片机的存储器扩展、接口扩展、译码、编码、驱动、光电、机电、传感器、I2C/TWI及SPI接口器件、MMC、红外等器件给出了数十个案例,对案例中涉及的硬件技术资料亦进行了有针对性的分析,以便于读者快速理解相关代码的编写原理。第5章的案例综合应用了单片机内部资源和外部扩展硬件,通过对这些案例的独立分析研究与调试运行,读者用C语言开发AVR单片机应用系统的能力会得到大幅提升。
本书是单片机C语言程序设计实训仿真系列8051版之后的第2册。为使本书能早日与读者见面,笔者坚持挤出时间不懈耕耘。在编写过程中,刘静、张力、王魏参与了案例的调试与校稿工作,在此对他们深表感谢!本书从选题、撰稿到出版的全过程中,学院领导、学院科研处及高教研究所对本选题始终给予大力支持,并提供项目资助,教务处和信息技术系也一直关注本书的编写与进展情况,在此一并对学院和部门领导的关心与支持表示由衷感谢!

Specifications

Brand Jingdong book
Brand Origin China

Disclaimer

Product packaging, specifications and price are subject to change without notice. All information about the products on our website is provided for information purposes only. Please always read labels, warnings and directions provided with the product before use.

View Full Terms of Use
Add to favorites
{{ $isZh ? coupon.coupon_name_sub : coupon.coupon_ename_sub | formatCurrency }}
{{__("Buy Directly")}} {{ itemCurrency }}{{ item.directly_price }}
Quantity
{{ quantity }}
{{ instockMsg }}
{{ limitText }}
{{buttonTypePin == 3 ? __("Scan to view more PinGo") : __("Scan to start")}}
Sold by JD@CHINA
Ship to
{{ __("Ship to United States only") }}
Free shipping over 69
Genuine guarantee

Added to Cart

Keep Shopping

More to Consider

{{ item.brand_name }}

{{ item.item_name }}

{{ item.currency }}{{ item.market_price }}

{{ item.currency }}{{ item.unit_price }}

{{ item.currency }}{{ item.unit_price }}

Coupons

{{ coupon.coupon_name_new | formatCurrency }}
Clip Clipped Over
{{ getCouponDescStr(coupon) }}
{{ coupon.use_time_desc }}
Expires soon {{ formatTime(coupon.use_end_time) }}

Share this item with friends

Cancel

Yami Gift Card

Get this exclusive deal when paying with gift card

Terms and Conditions

Gift card deals are special offers for selected products;

The gift card deals will automatically be activated if a customer uses gift card balance at check out and the balance is sufficient to pay for the total price of the shopping cart products with gift card deals;

You will not be able to activate the gift card deals if you choose other payment methods besides gift card. The products will be purchased at their normal prices;

If your account balance is not enough to pay for the products with gift card deals, you can choose to reload your gift card balance by clicking on the Reload button at either shopping cart page or check out page;

Products that have gift card deals can be recognized by a special symbol showing 'GC Deal';

For any additional questions or concerns, please contact our customer service;

Yamibuy reserves the right of final interpretation.

Sold by Yami

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

Yami is committed to provide our customers with a peace of mind when purchasing from us. Most items shipped from Yamibuy.com can be returned within 30 days of receipt of shipment (For Food, Beverages, Snacks, Dry Goods, Health supplements, Fresh Grocery and Perishables Goods, within 7 days of receipt of shipment due to damages or quality issues; To ensure that every customer receives safe and high-quality products, we do not provide refunds or returns for beauty products once they have been opened or used, except in the case of quality issues; Some products may have different policies or requirements associated with them, please see below for products under special categories, or contact Yami Customer Service for further assistance).
Thank you for your understanding and support.

Learn More

Sold by Yami

Terms and Conditions of Yami E-Gift Card

If you choose “Redeem automatically” as your delivery method, your gift card balance will be reload automatically after your order has been processed successfully;

If you choose “Send to Email”as your delivery method, the card number and CVV will be sent to the email address automatically;

Any user can use the card number and CVV to redeem the gift card, please keep your gift card information safely. If you have any trouble receiving email, please contact Yami customer service;

Yami gift card can be used to purchase both Yami owned or Marketplace products;

Yami gift card will never expire;

Yami gift card balance does not have to be used up at once;

All rights reserved by Yami.

Return Policy

Gift card that has already been consumed is non-refundable.

Sold by JD@CHINA

Service Guarantee

Yami Free Shipping over $49
Yami Easy Returns
Yami Ships from United States

Shipping

  • United States

    Standard Shipping is $5.99 (Excluding Alaska & Hawaii). Free on orders of $49 or more.

    Local Express is $5.99 (Available in Parts of CA, NJ, MA & PA). Free on orders of $49 or more.

    2-Day Express (Includes Alaska & Hawaii) starts at $19.99.

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Sold by JD@CHINA

Service Guarantee

Yami Cross-store Free Shipping over $69
Yami 30-days Return

Yami-China FC

Yami has a consolidation warehouse in China which collects multiple sellers’ packages and combines to one order. Our Yami consolidation warehouse will directly ship the packages to your door. Cross-store free shipping over $69.

Return Policy

You may return products within 30 days upon receiving the products. Sellers take responsibilities for any wrong shipment or missing items. Packing needs to be unopened for any other than quality issues return. We promise to pack carefully, but because goods are taking long journey to destinations, simple damages to packaging may occur. Any damages not causing internal goods quality problems are not allowed to return. If you open the package and any quality problem is found, please contact customer service within three days after receipt of goods.

Shipping Information

Yami Consolidation Service Shipping Fee $9.99(Free shipping over $69)

Sellers in China will ship their orders within 1-2 business days once the order is placed. Packages are sent to our consolidation warehouse in China and combined there. Our Yami consolidation warehouse will directly ship the packages to you via UPS. The average time for UPS to ship from China to the United States is about 10 working days and it can be traced using the tracking number. Due to the pandemic, the delivery time may be delayed by about 5 days. The package needs to be signed by the guest. If the receipt is not signed, the customer shall bear the risk of loss of the package.

Sold by JD@CHINA

Service Guarantee

Free shipping over 69
Genuine guarantee

Shipping

Yami Consolidated Shipping $9.99(Free shipping over $69)


Seller will ship the orders within 1-2 business days. The logistics time limit is expected to be 7-15 working days. In case of customs clearance, the delivery time will be extended by 3-7 days. The final receipt date is subject to the information of the postal company.

Yami Points information

All items are excluding from any promotion or points events on Yamibuy.com

Return Policy

You may return product within 30 days upon receiving the product. Items returned must be new in it's original packing, including the original invoice for the purchase. Customer return product at their own expense.

Yami

Download the Yami App

Back Top

Recommended for You

About the brand

Jingdong book

为您推荐

Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折
Yami
欣葉
2种选择
欣叶 御大福 芋头麻薯 180g

周销量 600+

$1.66 $1.99 83折

Reviews{{'('+ commentList.posts_count + ')'}}

Have your say. Be the first to help other guests.

Write a review
{{ totalRating }} Write a review
  • {{i}} star

    {{i}} stars

    {{ parseInt(commentRatingList[i]) }}%

Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}
Yami Yami
{{ comment.user_name }}

{{ showTranslate(comment) }}Show Less

{{ strLimit(comment,800) }}Show more

Show Original

{{ comment.content }}

Yami
Show All

{{ formatTime(comment.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ comment.likes_count }} {{ comment.likes_count }} {{ comment.reply_count }} {{comment.in_user==uid ? __('Delete') : __('Report')}}

No related comment~

Review

Yami Yami

{{ showTranslate(commentDetails) }}Show Less

{{ strLimit(commentDetails,800) }}Show more

Show Original

{{ commentDetails.content }}

Yami
Show All

{{ formatTime(commentDetails.in_dtm) }} VERIFIED PURCHASE {{groupData}}

{{ commentDetails.likes_count }} {{ commentDetails.likes_count }} {{ commentDetails.reply_count }} {{commentDetails.in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Comments{{'(' + replyList.length + ')'}}

Yami Yami

{{ showTranslate(reply) }}Show Less

{{ strLimit(reply,800) }}Show more

Show Original

{{ reply.reply_content }}

{{ formatTime(reply.reply_in_dtm) }}

{{ reply.reply_likes_count }} {{ reply.reply_likes_count }} {{ reply.reply_reply_count }} {{reply.reply_in_user==uid ? __('Delete') : __('Report')}}

Please write at least one word

Cancel

That’s all the comments so far!

Write a review
How would you rate this item?

Please add your comment.

  • A nice nickname will make your comments more popular!
  • The nickname in your account will be changed to the same as here.
Thanks for your review
Our community rely on great reviews like yours to find the best of Asia.

Report

If you find this content inappropriate and think it should be removed from the Yami.com site, let us know please.

Cancel

Are you sure to delete your review?

Cancel

You’ve Recently Viewed

About the brand

Jingdong book