- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
io模拟spi时序(IO simulation SPI timing)
io模拟spi时序(IO simulation SPI timing)
Module: IO accumulation simulation SPI timing 18:21:09| classification: 2011-05-19 embedded development | Tags: | report | font
in
Small subscription
Motorola SPI is proposed a bus structure, than PHILPS proposed IIC bus more than two lines, these two kinds of bus structure because they occupy the IO port and has been widely used, in general, SPI bus and IIC bus are simulated by IO, there are a considerable number of integrated chip IIC and SPI, such as STC12C60S2 in integrated SPI interface. Lets use analog SPI to communicate!!!!
Program from a simulation forum inside, mainly want to accumulate a SPI driver, and to understand how to write programs based on the chip timing diagram. Of course, you can practice English, because the damn data manuals are all in english!!!!
/*********************************************************************************************
Program name:
Author: Li Cong
Writing time: 20 days
Hardware support:
Interface description:
Edit log:
NO.1-
/*********************************************************************************************
Description: a complete simulation of SPI interface design, 25AA020AEEPROM microcontroller and microchip company communicate with SPI interface
From the timing diagram: when writing a byte, write permission, write instructions, write the address, and then write data, and then determine whether the data is transmitted.
When you read a byte, write the instruction first, then write the address, and then you can read the byte.
/*********************************************************************************************/
#include reg51.H
#includeintrins.h
#define uchar unsigned char
#define uint unsigned int
/*********************************************************************************************/
Sbit SCK=P2^0; / / clock
Sbit SI=P2^2; / / SCM input interface chip SO, so as to input
Sbit SO=P2^1; / / MCU output interface chip SI
Sbit CS=P2^3; / / enable connection chip C
您可能关注的文档
- co(有限公司).doc
- cpu与gpu的作用和位置分析(Role and position analysis of CPU and GPU).doc
- cpa考试中,如何一次性通过6门档(CPA test, how to pass through 6 files at one time).doc
- cpu占用过高的原因及解决方法(Reasons for excessive use of CPU and Solutions).doc
- cost_spend与take的区别(The difference between cost_spend and take).doc
- cool edit效果器的使用技巧(How to use the cool edit effector).doc
- cpu超频的基本原理(The basic principle of CPU overclocking).doc
- cpu过高(CPU is too high).doc
- cs1.6 bug大全(辛苦..)(CS1.6 bug Daquan (hard..)).doc
- csdn的工作经历(CSDN working experience).doc
- iphone ios使用技巧(iphone ios使用技巧).doc
- iphone4实用操作手册(IPhone4 practical operation manual).doc
- iso14000系列标准产生背景及简介(ISO14000 series standard background and introduction).doc
- iq推理题大全(IQ reasoning questions Daquan).doc
- it句型在高考中的所有用法(All the usage of it sentence patterns in college entrance examination).doc
- it极简主义(It minimalist).doc
- it职业分析(It occupation analysis).doc
- j-20介绍(J-20).doc
- i英语词汇(I English Vocabulary).doc
- j2ee工程源代码编写规则(J2EE source code preparation rules).doc
最近下载
- 2023年江苏省健康照护行业职业技能竞赛备考题库大全-下(判断题汇总).doc VIP
- 新22J01《工程做法》(新疆图集).pdf VIP
- 体检报告电子版.docx VIP
- 2024年8月17日国家综合性消防救援队伍消防员招录面试真题及答案解析(上午卷).doc VIP
- GA 1467-2018 城市轨道交通安全防范要求.docx VIP
- 羽毛球课程教学大纲.docx VIP
- 接正式电方案.pdf
- 2024年甘肃定西岷县城区部分学校竞聘教师实施(238人)笔试备考试题及答案解析.docx VIP
- DB11∕T 646.1-2016 城市轨道交通安全防范系统技术要求 第1部分:通则.docx VIP
- NIST SP 800-218 SSDF安全软件开发框架.xlsx
文档评论(0)