-
USB键盘的C实现
*************************************************************************************
README.TXT: Application notes for the Cypress Keyboard Demonstration Firmware
This file contains some useful information regarding the organization of the
keyboard code contained in this distribution.
1. CODE ORGANIZATION
- 2023-01-22 12:30:04下载
- 积分:1
-
nand_flash.vhd
应用背景SPI协议的闪存控制器关键技术——nand_flash.vhd——贾可Kleynhans 17 / 01 / 10图书馆的IEEE;使用ieee.std_logic_1164.all;使用ieee.numeric_std.all;nand_flash是实体——实体声明端口(时钟
- 2023-08-14 21:35:03下载
- 积分:1
-
基于51单片机的组合按键驱动
应用背景
此程序只要是用于组合按键扫描。类似键盘驱动。在一些按键比较紧张的场合,可以使用组合按键的方式来进行设置。
此程序可以为你提供帮助。
关键技术/******************************************************************************
* 组合按键扫描过程:
* 1、平时只要两个按键中有一个没有被按下时,按键的自锁标志,去抖动延时计数器一直被清零。
* 2、一旦两个按键都被按下,去抖动延时计数器开始在定时中断函数里累加,在还没有累加到阀值
* const_key_time12时,如果这期间由于受到外界干扰或者按键抖动,而使IO口瞬间触发为高电平,
* 这时候马上把延时计数器uiKeyTimeCnt12清零。
* 3、如果按键按下的时间超过了阀值const_key_time12,马上把自锁标志ucKeyLock12置位,
* 防止按住按键不松手后一直触发。并把ucKeySec赋值。组合按键触发。
* 4、等按键松开后,自锁标志ucKeyLock12及时清零,位下一次自锁做准备。
* 5、识别按键IO口下降沿触发的过程。
*******************************************************************************/
void key_scan()
{
if(key1 ==1||key2 == 2) // IO口高电平,说明没有按键按下,这时要及时清0一些标志位
{
ucKe
- 2022-08-12 13:36:29下载
- 积分:1
-
PT2313 源码
应用背景#define PT2313_ADDR 0x88 //I2C写地址
unsigned char contr[7];// = {63, 0, 31, 31, 15, 15, 3};
#pragma warn-
eeprom char mcontr[7];
#pragma warn+
extern unsigned char tda7131savecou = 0;
//unsigned char keycou = 0;
//extern unsigned int tcount = 0, keyval = 0x0f, keysta = 1, keytem = 0x0f, keycn = 22, ctrbit = 0;
static bit muteflag = 0;
#define keypin (PINC & 0x0f)
#define fcow 5
#define fvcow (fcow + 36)
#define bcow 70
#define bvcow (bcow + 36)
//#define MovLef 0x02fd
//#define MovRig 0xc23d
//#define ValAdd 0x906f
//#define ValDec 0xa857
void Radio_dsiplay(void);
/*///////////////////////////////////////////////////
四个通道衰减处理
通道0-3单独通道处理
通道4 前两通道处理
通道5 后两通道处理
通道6 四个通道同时处理
- 2023-01-08 04:20:03下载
- 积分:1
-
stm32正交编码器程序
stm32正交编码器程序用于检测旋转运动系统的位置和速度。正交编码器可以对多种电机控制应用实现闭环控制,诸如开关磁阻电机和交流感应电机。
- 2022-05-16 13:45:59下载
- 积分:1
-
FPGA实现usb驱动
应用背景This is the very first officially available release of the core
- It is still under active development
- Please do not modify the sources !
- Things that are not implemented yet, or are known not to work yet:
- UTMI line/link control interface is not implemented yet. This includes:
- Detection of attach/detach
- Speed negotiation (Full/High Speed)
- USB reset
- USB suspend
- There is no logic in the core to "help" suspending it. I"m not
quite sure yet what to do in this area. (Suggestions welcomed !)
- There is no easy way to configure the core (number of endpoints,
buffer size)
- There has been absolutely no testing done on the core
关键技术This file describes the current status of the checked in HDL code.
Please su
- 2022-02-07 09:44:26下载
- 积分:1
-
SOC芯片的USIM卡驱动
SOC芯片的USIM卡驱动,包括测试程序。含有ICC基本初始化程序,SIM接口控制器初始化程序,UICC中断处理例程,卡稳定插入中断处理例程,卡启动流程完成中断处理例程。
- 2023-08-20 13:15:03下载
- 积分:1
-
arm-linux led驱动程序
应用背景led灯驱动程序以及Makefile、以及应用程序,自动创建节点;需要安装交叉编译链接工具,在命令行中输入make命令可直接编译,关键技术自动创建节点,无需手动创建,可使用insmod直接加载模块,rmmod命令来卸载模块。也可以编译到内核中,需要修改kconfig以及内核目录中驱动目录下的字符设备文件的makeifle。
- 2023-01-29 20:35:03下载
- 积分:1
-
pcduino的led驱动
基于pcduino的led驱动简单应用,根据网上的教程,自己修改的。点亮三个灯
- 2022-06-20 10:12:18下载
- 积分:1
-
STM32F407模拟I2C读取AM2321温湿度传感器
这是我写的,请放心使用,STM32f407模拟I2c读取温湿度传感器AM2321。
AM2321的协议文档请自己网上找了。
为什么用模拟I2C呢,因为ST的I2C模块做的不好,时序容易乱,你知道的,I2C最重要的就是时序!
- 2022-02-11 19:09:40下载
- 积分:1