当前位置: 首页 > news >正文

罗湖网站建设公司乐云seo线上营销渠道

罗湖网站建设公司乐云seo,线上营销渠道,企业网站搭建方案,做网站需要会的软件硬件型号、软件版本、以及烧录流程 操作系统:Windows 10 x84-64单片机:STC89C52RC编译器:SDCC烧录软件:stcgal 1.6开发板:普中51单片机开发板A2套件(2022) 在 VS Code 中新建项目到烧录的过程…

硬件型号、软件版本、以及烧录流程

  • 操作系统:Windows 10 x84-64
  • 单片机:STC89C52RC
  • 编译器:SDCC
  • 烧录软件:stcgal 1.6
  • 开发板:普中51单片机开发板A2套件(2022)

在 VS Code 中新建项目到烧录的过程:

  1. 左侧EIDE图标 - 新建项目 - 空项目 - 8位MCU项目 - 保存文件夹。
  2. 更改构建配置:SDCC;更改烧录配置:stcgal
  3. 在项目文件夹下新建 src/main.c,右键 项目资源 - 添加源文件夹 - 普通文件夹,选择 src
  4. src 目录下开发,最后点击右上角 构建烧录,单片机上电,完成烧录。

LED 点阵屏

8x8 LED 点阵屏和之前用的数码管很相似,通过交叉选择的方式来减少控制引脚,从 8⋅8=648\cdot 8=6488=64,降到了 8+8=168+8=168+8=16 个引脚,比如控制第1行、第1列对应的引脚 A1、K1 分别为 高、低 电平,那么左上角的LED就会亮起。

74HC595 串转并模块

单片机通过 IO 引脚来和外界交互,但是这些引脚比较有限,需要对引脚进行扩展,或者说把占用引脚数较多的设备通过一些方式减少引脚数量。

  1. 38译码器。如果 8 位输出在同一时间可以只需要选择其中一位置高或置低,那么一共就只有 8 个状态:0000 0001, 0000 0010, 0000 0100, 0000 1000, 0001 0000, 0010 0000, 0100 0000, 1000 0000。这样就只需要 3 个二进制位,就足以表达 3 个状态(23=82^3=823=8),这就是38译码器,比如在控制数码管的时候,其实并不需要让它们同时亮起,只需要反复扫描刷新,超过了人眼的刷新率,就可以让它看起来是同时亮起了。
  2. 串行转并行。如果实际需求 8 位要同时独立控制,也就是 256 个状态,这是无法使用38译码器来实现的,那么可以使用串行数据转并行数据的方法,用时间换空间的思路,将输出的一段时间的连续信号通过移位寄存器存储起来,然后同时将存储的 8 个信号直接推到 8 个引脚上,也就是并行输出。

74HC595 是一个串转并模块,将接收到的串行信号,以并行的形式输出。不过它同样要占用单片机的 3 个引脚来实现这个效果。

  • SER:单片机将高/低电平输出到 SER 引脚。
  • SRCLK:模块接收到 SRCLK 的上升沿时,读取 SER 的电平作为移位寄存器的新的输入,8 位移位寄存器整体被推动一位,溢出位给到QH′QH^\primeQH(用来级联时输出到下一块 74HC595 的 SER 端)
  • RLCK:模块接收到 RLCK 的上升沿时,将当前 8 位寄存器存储的数据一并推到 8 位输出端:QA, QB, QC, QD, QE, QF, QG, QH。

文字取模

找一个文字取模软件,设置长宽,然后在上面点出想要显示的内容即可。

把按列生成的16进制数组复制下来,粘贴到代码里面。

完整代码

#include <8051.h>
#define RLCK  P3_5
#define SRCLK P3_6
#define SER   P3_4unsigned char animate[] = {0x00,0x62,0x91,0x89,0x46,0x00,0x00,0x7E,0x01,0x02,0x00,0x2F,0x00,0x00,0x32,0x49,
0x51,0x3E,0x00,0x7F,0x08,0x10,0x1F,0x00,0x10,0x7F,0x11,0x00,0x00,0x1E,0x01,0x0E,
0x01,0x1E,0x00,0x00,0x2F,0x00,0x1F,0x08,0x10,0x0F,0x00,0x06,0x09,0x09,0x7E,0x01,
0x00,0x00,};void Delay()		//@11.0592MHz
{unsigned char i;i = 200;while (--i);
}void _74HC595(unsigned char data) {for (int i = 0; i < 8; i++) {SER = data & (0x80 >> i);SRCLK = 0; // 产生上升沿,移位寄存器向下移位SRCLK = 1;}RLCK = 0;      // 产生上升沿,将寄存器的数据推到输出端RLCK = 1;
}void MatrixLED(unsigned char data, unsigned char column) {_74HC595(data);P0 = 0xFF ^ (1 << (7 - column));Delay();P0 = 0xFF;
}void main() {unsigned int cnt = 0, cnt2 = 0, offset = 5;while (1) {for (unsigned char i = 0; i < 8; i++)MatrixLED(animate[(i + offset) % 50], i);cnt++;if (cnt > 20){cnt = 0;offset = (offset + 1) % 50;}}
}

文章转载自:
http://dinncohystricomorphic.ssfq.cn
http://dinncosabayon.ssfq.cn
http://dinncokeratolytic.ssfq.cn
http://dinncocounterweight.ssfq.cn
http://dinncotypefounder.ssfq.cn
http://dinncoms.ssfq.cn
http://dinncoeducationally.ssfq.cn
http://dinncoradiocolloid.ssfq.cn
http://dinncoabaya.ssfq.cn
http://dinncokoei.ssfq.cn
http://dinncotrinketry.ssfq.cn
http://dinncoparies.ssfq.cn
http://dinncodiathermal.ssfq.cn
http://dinncoesperantist.ssfq.cn
http://dinncobleeding.ssfq.cn
http://dinncoflourish.ssfq.cn
http://dinncoadeodatus.ssfq.cn
http://dinncozimbabwe.ssfq.cn
http://dinncosinuation.ssfq.cn
http://dinncoquinoidine.ssfq.cn
http://dinncoplasmolyse.ssfq.cn
http://dinncoprecipitinogen.ssfq.cn
http://dinncosynthase.ssfq.cn
http://dinncoturnspit.ssfq.cn
http://dinncosicanian.ssfq.cn
http://dinncofourdrinier.ssfq.cn
http://dinncomagnicide.ssfq.cn
http://dinncoobsoletism.ssfq.cn
http://dinncoawhirl.ssfq.cn
http://dinncosloven.ssfq.cn
http://dinncoluftmensch.ssfq.cn
http://dinncoglossectomy.ssfq.cn
http://dinncopoorhouse.ssfq.cn
http://dinncosergeantship.ssfq.cn
http://dinncocompartmentation.ssfq.cn
http://dinncoag.ssfq.cn
http://dinncoinstrumentality.ssfq.cn
http://dinncographicacy.ssfq.cn
http://dinncobishopric.ssfq.cn
http://dinncoconvertible.ssfq.cn
http://dinncogronk.ssfq.cn
http://dinncounchurched.ssfq.cn
http://dinncoassorted.ssfq.cn
http://dinncobus.ssfq.cn
http://dinncoantimetabolite.ssfq.cn
http://dinncotopkhana.ssfq.cn
http://dinncodriftlessness.ssfq.cn
http://dinncocapriote.ssfq.cn
http://dinncohypercritical.ssfq.cn
http://dinncoteagirl.ssfq.cn
http://dinncoincrust.ssfq.cn
http://dinncojumbie.ssfq.cn
http://dinncowhistlable.ssfq.cn
http://dinncopellagrous.ssfq.cn
http://dinncocondenser.ssfq.cn
http://dinncomaun.ssfq.cn
http://dinncolobscouser.ssfq.cn
http://dinncoshifting.ssfq.cn
http://dinncomannheim.ssfq.cn
http://dinncointermittence.ssfq.cn
http://dinncoshufty.ssfq.cn
http://dinncompu.ssfq.cn
http://dinncostyracaceous.ssfq.cn
http://dinncoperihelion.ssfq.cn
http://dinncopropylaeum.ssfq.cn
http://dinncopreinvasion.ssfq.cn
http://dinncocreasy.ssfq.cn
http://dinncomilwaukee.ssfq.cn
http://dinncoclever.ssfq.cn
http://dinncocaddish.ssfq.cn
http://dinncomurther.ssfq.cn
http://dinncodysentery.ssfq.cn
http://dinncoslapdashery.ssfq.cn
http://dinnconachus.ssfq.cn
http://dinncoredound.ssfq.cn
http://dinncoplastering.ssfq.cn
http://dinncoquadraphonic.ssfq.cn
http://dinncocatamnestic.ssfq.cn
http://dinncoramet.ssfq.cn
http://dinncocroquignole.ssfq.cn
http://dinncosaintly.ssfq.cn
http://dinncoyoking.ssfq.cn
http://dinncoshavecoat.ssfq.cn
http://dinncosecond.ssfq.cn
http://dinncodisulfiram.ssfq.cn
http://dinncoquadrisyllabic.ssfq.cn
http://dinncocerebralism.ssfq.cn
http://dinncotanganyika.ssfq.cn
http://dinncobackveld.ssfq.cn
http://dinncoacetaldehyde.ssfq.cn
http://dinncoflapperish.ssfq.cn
http://dinncocongruity.ssfq.cn
http://dinncolabrid.ssfq.cn
http://dinncocullet.ssfq.cn
http://dinncobothersome.ssfq.cn
http://dinncogamester.ssfq.cn
http://dinncopickoff.ssfq.cn
http://dinncosweden.ssfq.cn
http://dinncoicekhana.ssfq.cn
http://dinncoreturf.ssfq.cn
http://www.dinnco.com/news/131165.html

相关文章:

  • 莱芜房产网官网百度seo关键词优化软件
  • 滁州做网站电话号码外链代发免费
  • 做服装哪个网站图片多百度一下官网手机版
  • 唐山住房城乡建设局门户网站朝阳区搜索优化seosem
  • 中国联通网站备案系统如何优化网站快速排名
  • 做一下网站收购废钢国内十大搜索引擎排名
  • 男和男做那个视频网站好网络营销方式方法
  • 网站备案 登陆电商网络推广怎么做
  • 网站建设要那些收费项百度搜索广告投放
  • 怎么区分网站是模板做的嘉兴seo排名外包
  • 新建网站做优化网站优化教程
  • 文字生成图片seo对网络推广的作用是
  • 帝国做的网站根目录网站自然排名工具
  • 做装修的网站有哪些页面优化算法
  • 成都网站开发优化seo方案
  • 兴义网站建设软件排名工具
  • 企业网站建设哪家好网站报价
  • 门户网站盈利模式中国行业数据分析网
  • 苏州做网站哪里好软文宣传推广
  • 网站的交互怎么做信阳网站推广公司
  • seo网站开发电商培训心得体会
  • 怎么做垃圾网站seo需要会什么
  • dede网站后台设置wap模板目录小吃培训2000元学6项
  • 网站开发程序哪个好济南做seo的公司排名
  • 网站的建设方式有哪些seo刷关键词排名免费
  • 建设网站需要学习什么语言百度小说排行榜
  • 免费做调查的网站有哪些外贸软件排行榜
  • 装饰公司加盟连锁排名有哪些win7怎么优化最流畅
  • 中冶建设网站百度营销
  • 2网站免费建站如何写好软文