-
CH375并口方式控制打印机
应用背景
单片机通过CH375链接USB口的打印机
// 单片机通过CH375控制USB打印机
// 程序示例,C语言,CH375中断为查询方式,只负责数据传输,不涉及打印格式及打印描述语言
// 另可提供多台计算机共享一台USB打印机的方案
// 以下定义适用于AVR 单片机,其它单片机参照修改,为了提供C语言的速度需要对本程序进行优化
关键技术
/* PORTB |= 0x08; // 输出A0=1
PORTA = mCmd; // 向CH375的并口输出数据
DDRA = 0xFF; // 并口D0-D7输出
PORTB &= 0xF9; // 输出有效写控制信号, 写CH375芯片的命令端口, A0=1; CS=0; WR=0; RD=1;
DDRA = 0xFF; // 该操作无意义,仅作延时,CH375要求读写脉冲宽度大于100nS
PORTB |= 0x07; // 输出无效的控制信号, 完成操作CH375芯片, A0=1; CS=1; WR=1; RD=1;
DDRA = 0x00; // 禁止数据输出
PORTB &= 0xF7; // 输出A0=0; 可选操作
*/
- 2023-09-03 07:10:03下载
- 积分:1
-
MiniGUI的地址簿模块完整版。显示已添加的功能,如…
minigui 通讯录模块 完成版。有添加 查看 删除 编辑等功能。-minigui complete version of Address Book module. Show has added features such as delete edit.
- 2023-04-28 13:10:03下载
- 积分:1
-
MSP430G2553 lcd16x2例子
本项目是一个关于如何使用MSP430G2553 MCU在LCD16x2上显示文本的简单示例。它可以与其他MSP430单片机通过编辑液晶库标题。
- 2022-03-26 16:48:49下载
- 积分:1
-
利用8051的定时器用来计数作为频率计的基础。测频范围是1
利用8051的定时器用来计数作为频率计的基础。测频范围是1--10000HZ-The use of 8051 timer used to count as the basis of frequency. Measuring frequency range is 1 10000HZ
- 2022-11-27 07:55:02下载
- 积分:1
-
对摩托罗拉68K处理器系列Small RTOS的OMU K ernel写程序。
用于motorala 68K系列处理器的小实时多任务操作系统
The OMU Kernel was written to provide a cut-down Unix-like O/S for a
home-made 6809-based home computer built by me, Steven Hosgood, in the
early 1980s. This package contains the RTOS version of omu68k, derived
from a port of the original 6809 code to the 68000 done by Terry Barnaby
and me.-for motorala 68K processor series of small RTOS The OMU K ernel was written to provide a cut-down Unix-li ke O/S for a home-made 6809-based home computer built by me, Steven Hosgood. in the early 1980s. This package contains the RT OS version of omu68k. derived from a port of the original 6809 code to t he 68,000 Barnaby done by Terry and me.
- 2022-01-21 19:03:09下载
- 积分:1
-
nxp USB 例程
关于nxp的主控芯片的所有关于USB的主机、从机、接鼠标、键盘 、自制HID等的源代码。各种USB底层应用驱动
- 2022-07-19 11:52:24下载
- 积分:1
-
这是有关cpu和存储器挂接的一个硬件课程设计,图片是用protel 99 se 画的,程序用唐都仪器调试通过,仅为一个理论性的东西。自己写的,请多指教。...
这是有关cpu和存储器挂接的一个硬件课程设计,图片是用protel 99 se 画的,程序用唐都仪器调试通过,仅为一个理论性的东西。自己写的,请多指教。--It is a class written by me, which describes cpu and rom hardware design. The picture is drawn by protel 99 se. The program is passed on Tang Du instrument.
- 2022-03-21 10:04:37下载
- 积分:1
-
51r.例子,也是人家的,我改了下
51r.例子,也是人家的,我改了下-51r. Examples, but also other people
- 2022-02-03 01:10:44下载
- 积分:1
-
电子保险箱
电子保险箱开放模式:在这种模式下的安全是开放的,你的程序应该允许用户设置密码和锁关闭。
- 2022-03-16 14:29:07下载
- 积分:1
-
ucosii对ARM7 S3C44B0的源代码(已经移植成功的)
ucosii对ARM7 S3C44B0的源代码(已经移植成功的)-ucosii ARM7 S3C44B0 to the source code (which was successful transplantation)
- 2022-02-01 02:43:18下载
- 积分:1