SPI(Serial Peripheral Interface,串行外围接口)是Motorola公司提出的外围接口协议,它采用一个串行、同步、全双工的通信方式,解决了微处理器和外设之间的串行通信问题,并且可以和多个外设直接通信,具有配置灵活,结构简单等优点。根据全功能SPI总线的特点,设计的SPI接口可以最大发送和接收16位数据;在主模式和从模式下SPI模块的时钟频率最大可以达到系统时钟的1/4,并且在主模式下可以提供具有四种不同相位和极性的时钟供从模块选择;可以同时进行发送和接收操作,拥有中断标志位和溢出中断标志位。
上传时间: 2013-11-11
上传用户:himbly
Ttftp客户协议类,包括发送和接收数据包
上传时间: 2013-12-26
上传用户:王小奇
该代码采用c5400dsp的汇编语言和c语言实现ucos操作系统,并在操作系统之上实现一个消息队列,实现消息的发送于接收。
上传时间: 2015-03-19
上传用户:wangdean1101
RSA算法 :首先, 找出三个数, p, q, r, 其中 p, q 是两个相异的质数, r 是与 (p-1)(q-1) 互质的数...... p, q, r 这三个数便是 person_key,接著, 找出 m, 使得 r^m == 1 mod (p-1)(q-1)..... 这个 m 一定存在, 因为 r 与 (p-1)(q-1) 互质, 用辗转相除法就可以得到了..... 再来, 计算 n = pq....... m, n 这两个数便是 public_key ,编码过程是, 若资料为 a, 将其看成是一个大整数, 假设 a < n.... 如果 a >= n 的话, 就将 a 表成 s 进位 (s
标签: person_key RSA 算法
上传时间: 2013-12-14
上传用户:zhuyibin
利用网络信息加密技术实现电子邮件的安全传输,其中有加密算法和使用mfc的csmtp类构成的一个发送电子邮件的程序
上传时间: 2013-12-27
上传用户:变形金刚
89c2051汇编源码,遥控接收解码程序,有详细的注释。
上传时间: 2014-12-01
上传用户:ruan2570406
介绍计算机上实现gsm modem短消息收发的模式,描述gsm modem PDU 模式,包括PDU 模式下的gsm modem模块UCS2 编码、解码原理,以及gsm modem发送与接收PDU 串的编制方式, VB 中的MSCOMM 控件,实现gsm modem短消息收发的核心内容。
上传时间: 2014-01-23
上传用户:D&L37
数字运算,判断一个数是否接近素数 A Niven number is a number such that the sum of its digits divides itself. For example, 111 is a Niven number because the sum of its digits is 3, which divides 111. We can also specify a number in another base b, and a number in base b is a Niven number if the sum of its digits divides its value. Given b (2 <= b <= 10) and a number in base b, determine whether it is a Niven number or not. Input Each line of input contains the base b, followed by a string of digits representing a positive integer in that base. There are no leading zeroes. The input is terminated by a line consisting of 0 alone. Output For each case, print "yes" on a line if the given number is a Niven number, and "no" otherwise. Sample Input 10 111 2 110 10 123 6 1000 8 2314 0 Sample Output yes yes no yes no
上传时间: 2015-05-21
上传用户:daguda
MCU:ATMEGA8515 Frequence: 16M 描述:利用已有CAN TEST V1.0电路板进行调试, 可靠性测试已通过,并发现8515外部中断不稳定 的原因是没有在INT0脚加上拉电阻,加上后已能 够稳定地运行 调试过程中发现SJA1000的首地址设置有误,改过 后,当CAN发送数据时,程序能进入中断了,但发现 中断是由出错报警中断引起的,估计与波特率设置 有关。 通过修改CDR的参数,以及更换16M晶振,现在已能 正常地收发送数据了
标签: Frequence ATMEGA 8515 TEST
上传时间: 2015-05-26
上传用户:agent
源代码\用动态规划算法计算序列关系个数 用关系"<"和"="将3个数a,b,c依次序排列时,有13种不同的序列关系: a=b=c,a=b<c,a<b=v,a<b<c,a<c<b a=c<b,b<a=c,b<a<c,b<c<a,b=c<a c<a=b,c<a<b,c<b<a 若要将n个数依序列,设计一个动态规划算法,计算出有多少种不同的序列关系, 要求算法只占用O(n),只耗时O(n*n).
上传时间: 2013-12-26
上传用户:siguazgb