ch376主机模式

“ch376主机模式”相关的资料有哪些?“ch376主机模式”相关的范文有哪些?怎么写?下面是小编为您精心整理的“ch376主机模式”相关范文大全或资料大全,欢迎大家分享。

CH376主机控制键盘鼠标程序

标签:文库时间:2024-10-29
【bwwdw.com - 博文网】

/****************************************
** Copyright (C) WCH 1999-2009 **
** Web: **
****************************************
** USB 1.1 Host Examples for CH376 **
** KC7.0@MCS-51 **
** Version: v1.0 **
** Author: tech14 **
** Time : 2009/11/18 **
****************************************
*/
/* 用CH376操作HID设备,比如键盘,鼠标,兼容HID复合设备*/


#include <stdio.h>
#include <reg52.h>
#include <string.h>

#include "CH376INC.H"

#include "hid.h"

// 获

CH376主机控制键盘鼠标程序

标签:文库时间:2024-10-29
【bwwdw.com - 博文网】

/****************************************
** Copyright (C) WCH 1999-2009 **
** Web: **
****************************************
** USB 1.1 Host Examples for CH376 **
** KC7.0@MCS-51 **
** Version: v1.0 **
** Author: tech14 **
** Time : 2009/11/18 **
****************************************
*/
/* 用CH376操作HID设备,比如键盘,鼠标,兼容HID复合设备*/


#include <stdio.h>
#include <reg52.h>
#include <string.h>

#include "CH376INC.H"

#include "hid.h"

// 获

CH376命令和系统子程序

标签:文库时间:2024-10-29
【bwwdw.com - 博文网】

8.4. 快速应用参考步骤

请参考例子程序调用已经将多个命令打包后的子程序。以下步骤使用原始命令码,仅供参考。 8.4.1. 初始化,进行任何一项文件操作之前的必要步骤

① CMD_SET_USB_MODE 命令,进入USB-HOST 工作方式或者SD 卡主机工作方式(模式3)

② 等待U 盘或者SD 卡连接,U 盘可以由CH376 自动检测并产生中断通知,或者由单片机向CH376 发出CMD_DISK_CONNECT 命令定期查询,SD 卡必须由单片机自行检测 ③ CMD_DISK_MOUNT 命令,初始化U 盘或者SD 卡,并测试磁盘是否就绪,失败后可以重试最多5 次

④ 上述步骤只需执行一次,除非U 盘或者SD 卡断开后重新连接,那么必须回到步骤② 8.4.2. 顺序读文件

① CMD_SET_FILE_NAME 命令+CMD_FILE_OPEN 命令,打开文件

② 多次CMD_BYTE_READ 命令+CMD_RD_USB_DATA0 命令+CMD_BYTE_RD_GO 命令,读取数据

③ CMD_FILE_CLOSE 命令,关闭文件,可选操作

8.4.3. 顺序改写文件(覆盖原数据,超过原文件长度后转变为追加数据) ① CMD_SE

u盘读写控制源程序 - ch376芯片

标签:文库时间:2024-10-29
【bwwdw.com - 博文网】

主要包含4个C文件和和三个头文件 CH376INC.H 与CH376HFT.C为u盘主文件 SPI_SW.C 为对硬件操作文件 单片机与SPI接口 FILE_SYS.H与FILE_SYS.C 为ch376接口函数 分别列出

CH376INC.H文件:

/* C Define for CH376 */ /* Website: http://wch.cn */ /* Email: tech@wch.cn */ /* Author: W.ch 2008.10 */ /* V1.0 for CH376 */

#ifndef __CH376INC_H__ #define __CH376INC_H__

#ifdef __cplusplus extern \#endif /*

********************************************************************************************************************* */ /* 常用类型和常量定义 */

#ifndef TRUE #def

u盘读写控制源程序 - ch376芯片

标签:文库时间:2024-10-29
【bwwdw.com - 博文网】

主要包含4个C文件和和三个头文件 CH376INC.H 与CH376HFT.C为u盘主文件 SPI_SW.C 为对硬件操作文件 单片机与SPI接口 FILE_SYS.H与FILE_SYS.C 为ch376接口函数 分别列出

CH376INC.H文件:

/* C Define for CH376 */ /* Website: http://wch.cn */ /* Email: tech@wch.cn */ /* Author: W.ch 2008.10 */ /* V1.0 for CH376 */

#ifndef __CH376INC_H__ #define __CH376INC_H__

#ifdef __cplusplus extern \#endif /*

********************************************************************************************************************* */ /* 常用类型和常量定义 */

#ifndef TRUE #def

Assignment 1 for Ch 1 to Ch 4

标签:文库时间:2024-10-29
【bwwdw.com - 博文网】

Assignment 1 (for Ch 1 to Ch 4)

Question 1

Suppose that one investment has a mean return of 8% and a standard deviation of returns of 14%. Another investment has a mean return of 12% and a standard deviation of returns of 20%. The correlation between the investments is 0.3. Produce a chart similar to Figure 1.2, showing alternative return-risk portfolios from the two investments.

Question 2

A fund manager has maintained an actively managed portfolio with a beta of 0.2. During the last year, the risk-free rate was 5% and

Assignment 1 for Ch 1 to Ch 4

标签:文库时间:2024-10-29
【bwwdw.com - 博文网】

Assignment 1 (for Ch 1 to Ch 4)

Question 1

Suppose that one investment has a mean return of 8% and a standard deviation of returns of 14%. Another investment has a mean return of 12% and a standard deviation of returns of 20%. The correlation between the investments is 0.3. Produce a chart similar to Figure 1.2, showing alternative return-risk portfolios from the two investments.

Question 2

A fund manager has maintained an actively managed portfolio with a beta of 0.2. During the last year, the risk-free rate was 5% and

Assignment 1 for Ch 1 to Ch 4

标签:文库时间:2024-10-29
【bwwdw.com - 博文网】

Assignment 1 (for Ch 1 to Ch 4)

Question 1

Suppose that one investment has a mean return of 8% and a standard deviation of returns of 14%. Another investment has a mean return of 12% and a standard deviation of returns of 20%. The correlation between the investments is 0.3. Produce a chart similar to Figure 1.2, showing alternative return-risk portfolios from the two investments.

Question 2

A fund manager has maintained an actively managed portfolio with a beta of 0.2. During the last year, the risk-free rate was 5% and

主机评估考题

标签:文库时间:2024-10-29
【bwwdw.com - 博文网】

海 船 海 员 适 应 证 书 评 估 项 目

一、 主 机 操 作

什么是备车:

备车是指在船舶开航之前,为保证主柴油机处于随时都能起动和投入运行的状态而进行的一系列准备工作。柴油机经长期或短期停车后,开航前均必须备车。备车的主要目的是保证主机各部件均匀加热和向各摩擦表面供给润滑油。根据柴油机的功率不同,经短期停车后的备车持续时间在0.5~2h之间。由于机型、辅助设备及动力装臵的布臵不完全相同,备车的工作内容也不尽相同。备车的基本内容有:供电准备、校对时钟、车钟、校对舵机;暖机、润滑油系统准备、冷却水系统准备、燃油系统准备、压缩空气系统准备、盘车、冲车和试车等。

供电准备:在备车工作中,起动大功率设备较多,如空压机、应急鼓风机、淡水泵等,使用电量迅速增加,因此应根据需要起动备用发电机,进行并电。 ‘

1、主柴油机暖机的操作—P160

评估要点: 评估时间: 15min 评分标准:

1.采用正确暖机方法进行暖机 15分 2.采用加热装臵或启动滑油机加热循环暖机 15分 3.正确掌握暖机时油、水温度和压力 5分 4.正确起动循环水泵和滑油泵 15分 总 分 50分 每超时1分钟扣 5分

暖机工作的步骤(这完全是海

11 USB主机

标签:文库时间:2024-10-29
【bwwdw.com - 博文网】

第十一章 USB主机开发

第五章至第十章介绍了常用USB设备开发,本章介绍使用Stellaris的USB处理器进行USB主机开发。USB主机开发相对于USB设备开发较简单。USB主机只有一个,只是驱动不一样而已,USB主机只需识别USB设备,并能进行数据传输、控制就行。

11.1 USB主机开发介绍

Luminary Micro Stellaris 的USB处理器具有主机控制功能,支持全速与低速。使用官方提供的USB HOST库可以轻松开发USB主机。本章主要使用USB库编程为例讲解,涵盖整个USB主机开发。

Stellaris所提供的USB处理器中,LM3S3XXX与LM3S5XXX的A0版本有一个bug,如图11-1所示,为PB0与PB1硬件连接图,在A0版本中,USB处理器工作在主机和设备模式下时,PB0与PB1不能当GPIO使用,因为在此版本中,PB0与PB1为主机与设备提供电平信号。当USB处理器工作在主机模式下时,PB0应该连接到低电平;工作在设备模式下时,PB0应该连接到高电平。同时,PB0引脚与电压信号之间应该连接一个电阻,其典型值为10Ω。PB1必须连接到5V(4.75V-5.25V)。如果USB处理器不是A0版本,PB0与