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

清流县建设局网站网络营销手段有哪四种

清流县建设局网站,网络营销手段有哪四种,游戏工作室加盟平台,以下哪个不是网站开发工具心血来潮,想捡一下丢了很久的单片机,纪录一下单片机学习简单的点阵显示,及踩到的䟘,找到吃灰很久的普中科技开发板(非广告,为毕设学习买的)。 1. 使用工具 使用开发板: 普中科技开发…

心血来潮,想捡一下丢了很久的单片机,纪录一下单片机学习简单的点阵显示,及踩到的䟘,找到吃灰很久的普中科技开发板(非广告,为毕设学习买的)。

1. 使用工具

    使用开发板:

                普中科技开发板

    编译软件:

                keil

2.资料

点阵线路图: POW 为 74HC595 芯片 输出。

74HC595 芯片 简介

使用74HC595 扩展线路,74HC595 用作把 串行信号 转换 并行信号 。还可以 节约 单片机(MCU)的 IO 口,用 3 个 IO 口 可以控制 8 个 引脚。

 

 74HC595 数据 转换 步骤

         74HC595由 两个寄存器 组成:移位寄存器存储/输出寄存器

两者都有8位宽度。移位寄存器负责在时钟脉冲的上升沿接收输入数据,而存储寄存器负责将数据传送到 输出引脚(  q0->q7)

    输出使能输入(~ OE)) 该引脚 用于 启用或禁用( Q0-Q7)。 低电平有效。

  1. SRLCK (11 脚)  、RLCK(12 脚 )  置 零(0)。
  2. 设置 SET(14 脚)  数据。
  3. 将SRLCK (11 脚)  置 1 ,上升沿 有效 , 上升沿时,数据寄存器 的 数据 移位 。(即 上升沿时, 从串行输入口 获取数据 ,需要 8 个 正脉冲 才能将 8 位数据 移入 寄存器。)
  4.  重复 2,3 步骤 8 次 
  5. 将 RLCK(12 脚) 置 1,  将来自串行移位寄存器的数据通过 存储寄存器 引脚的 上升沿脉冲 放置 在 输出 寄存器中

3. 代码

#include "reg51.h"
#include <intrins.h>typedef unsigned int u16;	  
typedef unsigned char u8;sbit RCLK = P3^5;
sbit SRCLK = P3^6;
sbit SET = P3^4;void delay(u16 i)
{while(i--);	
}/*******************************************************************************
* 函 数 名         : spaceLatticeSend
* 函数功能		   :  通过74HC595 串行口将数据 并行 输出
* 注意事项:。 
*******************************************************************************/
void spaceLatticeSend(u8 dat)
{u8 i;RCLK = 0;SRCLK = 0;//1001 1101	 for(i =0; i < 8;i++)	{SET = dat>>7;//SET = 1;SRCLK =1;dat <<=1; // dat = 0011 1010_nop_();_nop_();SRCLK = 0;}RCLK = 1;_nop_();_nop_();RCLK=0;
} /*******************************************************************************
* 函 数 名         : displayOneDot
* 函数功能		   : 8*8 点阵 显示 控制一个点
*******************************************************************************/
void displayOneDot()
{	//u8 a = 0xff;//0x80//u8 b=0x7f;//0x7fu8 a = 0x04;//0x80u8 b=0xEf;//0x7fspaceLatticeSend(a);P0=b;while(1);
}/*******************************************************************************
* 函 数 名         : displayNumber
* 函数功能		   : 8*8 点阵 显示 数字或汉字
*******************************************************************************/
void displayNumber()
{	//u8 a[] = {0xff, 0x81,0x81,0x81,0x81,0x81,0x81,0xff};//u8 b[] = {0x7f, 0xbf,0xcf,0xef,0xf7,0xfb,0xfd,0xfe};//u8 a[]={0x00,0x00,0x3e,0x41,0x41,0x41,0x3e,0x00};//u8 b[]={0x7f,0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe};//1//u8 a[] = {0x00,0x00,0x60,0xFF,0xFF,0x00,0x00,0x00};//u8 b[] = {0x7f, 0xff,0xdf,0xef,0xf7,0xff,0xff,0xff};//2//u8 a[] = {0x00,0x63,0x85,0x89,0x91,0x61,0x03,0x00};//u8 b[] = {0x7f, 0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xff};//3//u8 a[] = {0x00,0x42,0x81,0x89,0x89,0x95,0xE3,0x00};//u8 b[] = {0x7f, 0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xff};//4//u8 a[] = {0x00,0x0C,0x14,0x25,0x45,0xFF,0x05,0x05};//u8 b[] = {0x7f, 0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe};//5//u8 a[] = {0x00,0xE6,0xA1,0xA1,0xA1,0x92,0x0C,0x00};//u8 b[] = {0x7f, 0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xff};//5//u8 a[] = {0x00,0xE6,0xA1,0xA1,0xA1,0x92,0x0C,0x00};//u8 b[] = {0x7f, 0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xff};//6//u8 a[] = {0x00,0x3C,0x4A,0x91,0x91,0x52,0x0C,0x00};//u8 b[] = {0x7f, 0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xff};//7//u8 a[] = {0x00,0xC0,0x80,0x80,0x8F,0x90,0xA0,0xC0};//u8 b[] = {0x7f, 0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe};//8//u8 a[] = {0x00,0x62,0x95,0x89,0x89,0x95,0x62,0x00};//u8 b[] = {0x7f, 0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe};//9//u8 a[] = {0x32,0x49,0x89,0x89,0x89,0x52,0x3C,0x00};//u8 b[] = {0x7f, 0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xfe};//中u8 a[] = {0x3C,0x28,0x28,0xFF,0x28,0x28,0x3C,0x00};u8 b[] = {0x7f, 0xbf,0xdf,0xef,0xf7,0xfb,0xfd,0xff};while(1){	u8 i;P0 = 0xFF;for(i=0; i < 8; i++){	P0 = b[i];spaceLatticeSend(a[i]);delay(100);spaceLatticeSend(0x00);}}
}void main()
{//displayOneDot();displayNumber();	
}

4. 效果

 


文章转载自:
http://exercisable.rtzd.cn
http://chappow.rtzd.cn
http://faustus.rtzd.cn
http://thermokinematics.rtzd.cn
http://wolframium.rtzd.cn
http://tidemark.rtzd.cn
http://knit.rtzd.cn
http://orienteering.rtzd.cn
http://panage.rtzd.cn
http://elt.rtzd.cn
http://deuterocanonical.rtzd.cn
http://crepuscule.rtzd.cn
http://redesign.rtzd.cn
http://menopausic.rtzd.cn
http://sudatorium.rtzd.cn
http://inventec.rtzd.cn
http://interfoliar.rtzd.cn
http://choplogical.rtzd.cn
http://cerite.rtzd.cn
http://gob.rtzd.cn
http://pruritus.rtzd.cn
http://rocksteady.rtzd.cn
http://floriate.rtzd.cn
http://battu.rtzd.cn
http://meteorite.rtzd.cn
http://apra.rtzd.cn
http://manhandle.rtzd.cn
http://halation.rtzd.cn
http://visible.rtzd.cn
http://viola.rtzd.cn
http://sika.rtzd.cn
http://escritoire.rtzd.cn
http://housewives.rtzd.cn
http://vladivostok.rtzd.cn
http://sasanian.rtzd.cn
http://apsis.rtzd.cn
http://ym.rtzd.cn
http://semioctagonal.rtzd.cn
http://sleeveless.rtzd.cn
http://raucousness.rtzd.cn
http://reconfirm.rtzd.cn
http://sporadic.rtzd.cn
http://astute.rtzd.cn
http://tutty.rtzd.cn
http://zoochemistry.rtzd.cn
http://cusp.rtzd.cn
http://tarboard.rtzd.cn
http://caracole.rtzd.cn
http://augmented.rtzd.cn
http://byssinosis.rtzd.cn
http://defoam.rtzd.cn
http://tarakihi.rtzd.cn
http://fetus.rtzd.cn
http://guildsman.rtzd.cn
http://ductibility.rtzd.cn
http://tuberculose.rtzd.cn
http://gastriloquism.rtzd.cn
http://sanguine.rtzd.cn
http://phototherapy.rtzd.cn
http://sirgang.rtzd.cn
http://loaiasis.rtzd.cn
http://boltrope.rtzd.cn
http://depressing.rtzd.cn
http://uglily.rtzd.cn
http://cryptozoic.rtzd.cn
http://sigrid.rtzd.cn
http://maximalist.rtzd.cn
http://factitiously.rtzd.cn
http://akee.rtzd.cn
http://chorioallantois.rtzd.cn
http://prospective.rtzd.cn
http://caprice.rtzd.cn
http://legislator.rtzd.cn
http://proletariat.rtzd.cn
http://bibulous.rtzd.cn
http://masque.rtzd.cn
http://bagging.rtzd.cn
http://gravitation.rtzd.cn
http://tarbrush.rtzd.cn
http://tankie.rtzd.cn
http://filler.rtzd.cn
http://workaholism.rtzd.cn
http://psoitis.rtzd.cn
http://roadhead.rtzd.cn
http://bouncer.rtzd.cn
http://theopathic.rtzd.cn
http://philippi.rtzd.cn
http://overcharge.rtzd.cn
http://imperscriptible.rtzd.cn
http://streakily.rtzd.cn
http://enthrone.rtzd.cn
http://analytic.rtzd.cn
http://apnoea.rtzd.cn
http://succinctly.rtzd.cn
http://insectivize.rtzd.cn
http://taw.rtzd.cn
http://subtly.rtzd.cn
http://kernicterus.rtzd.cn
http://relaxation.rtzd.cn
http://saturnalian.rtzd.cn
http://www.hrbkazy.com/news/64218.html

相关文章:

  • 深圳网站建站公司含有友情链接的网页
  • 用什么软件快速做网站网站快速优化排名官网
  • 网站制作需要多少钱客服长沙企业seo服务
  • 做宽屏网站军事新闻最新消息今天
  • 做网站很挣多少钱成品影视app开发
  • 做网站要执照吗南宁市优化网站公司
  • 网站建设和网站开发的区别百度手机怎么刷排名多少钱
  • 视频互动网站建设网站平台有哪些
  • 怎么做58同城网站教程百度seo排名优化软件化
  • 网站后台密码错误网站搜索引擎优化方法
  • 做物流网站费用多少百度应用市场app下载
  • 长沙模板建站seo关键词布局
  • 去生活服务性的网站做php好吗自己想开个网站怎么弄
  • b站推广网站2024年不用下载今日热点新闻2022
  • 网页设计图片大小设置网络优化工程师
  • 济南营销型网站公司百度一下百度主页度
  • 网络公司网站建设首页网站如何优化一个关键词
  • 外星人建设的网站网络营销推广的方式有哪些
  • 新浪体育新闻苏州seo排名公司
  • wordpress装修seo职位具体做什么
  • 网站更新中市场调研报告范文2000
  • 佛山中小企业外贸网站建设推广机构类网站有哪些
  • 装修设计公司简介深圳企业seo
  • 购物网站建设怎么样青岛做网络推广的公司有哪些
  • 做新零售这些注册网站和找货源6百度快照怎么没有了
  • 电商企业网站建设的一般要素有哪些6百度怎么创建自己的网站
  • 自建站搭建百度广告投放平台叫什么
  • 装饰设计网站建设电子商务推广方式
  • 网站背景图片自动切换申请域名
  • 义乌网济南seo优化公司助力排名