什么叫计算机没有并口或者并口被禁用

什么叫计算机没有并口或者并口被禁用,第1张

并口是计算机上的一个接口,用于打印机,不过由于现在的打印机基本都使用usb接口,所以一般笔记本上不再带有这个接口。

以前的电脑硬盘全部都市并口(IDE)的。。现在的电脑硬盘95%都是串口(SATA)的。所以检测不到什么并口了。可以更新一下主板的驱动再试试。

并口又叫并行接口,指采用并行传输方式来传输数据的接口标准。从最简单的一个并行数据寄存器或专用接口集成电路芯片如8255、6820等,一直至较复杂的SCSI或IDE并行接口,种类有数十种。

一个并行接口的接口特性可以从两个方面加以描述:1 以并行方式传输的数据通道的宽度,也称接口传输的位数;2 用于协调并行数据传输的额外接口控制线或称交互信号的特性。

数据的宽度可以从1~128位或者更宽,最常用的是8位,可通过接口一次传送8个数据位。在计算机领域最常用的并行接口是通常所说的LPT接口。

(参考资料;百度百科-并口)

AD0809的采集程序

//---A/D转换---

//-----头文件引用------

#include <Reg51h>

#include <absacch>

#include <intrinsh>

typedef unsigned char BYTE; /自定义字节类型/

#define Set_Bit(BIT) (BIT = 1) /定义置1函数/

#define Clear_Bit(BIT) (BIT = 0) /定义清0函数/

//

void Write_Hd7279(BYTE,BYTE); /定义HD7279写函数/

BYTE Read_Hd7279(BYTE); /定义HD7279读函数/

void Send_Byte(BYTE); /定义HD7279发送字节函数/

BYTE Receive_Byte(void); /定义HD7279接收字节函数/

void Short_Delay(void); /定义短延时函数/

void Long_Delay(void); /定义长延时函数/

void Mcu_Init(void); /定义MCU初始化函数/

void Delay_200_mS(void); /定义200ms延时函数/

sbit Hd7279_Clk=P1^6; /定义HD7279时钟硬件连接/

sbit Hd7279_Data=P1^5; /定义HD7279数据硬件连接/

sbit cs=P1^7;

void Short_Delay(void) /短延时函数/

{

BYTE i;

for(i=0;i<0x08;i++);

}

//

void Long_Delay(void) /长延时函数/

{

BYTE i;

for(i=0;i<0x30;i++);

}

//

void Write_Hd7279(BYTE Command,BYTE Data) /HD7279写函数/

{

Send_Byte(Command);

Send_Byte(Data);

}

//

void Send_Byte(BYTE Data_Out) /HD7279发送字节函数/

{

BYTE i;

cs=0;

Long_Delay();

for(i=0;i<8;i++)

{

if(Data_Out&0x80) Set_Bit(Hd7279_Data);

else Clear_Bit(Hd7279_Data);

Set_Bit(Hd7279_Clk);

Short_Delay();

Clear_Bit(Hd7279_Clk);

Short_Delay();

Data_Out=Data_Out<<1;

}

Clear_Bit(Hd7279_Data);

}

//-----宏声明-----

#define A_DPORT XBYTE[0xFef3]//0809通道0地址

#define uchar unsigned char

//-----变量定义-----

bit bdata bz=0;//定义标志

uchar val;

//-----初始化-----

void first(void)

{

P1=0xff;

P2=0xff;

P3=0xff;

P0=0xff;

Send_Byte(0xa4);

IT1=1;

EX1=1;

EA=1; //INT0 允许

}

//-----中断-----

void int_0(void) interrupt 2

{

val=A_DPORT; //读 A_D 数据

bz=1; //置读数标志

}

//-----主程序-----

main()

{

first(); //初始化

while(1)

{

A_DPORT=val; //启动 A_D

while(bz==0); //等待 A_D 转换结束

// val=~A_DPORT;

//P1=val; //数据输出

Write_Hd7279(0xc8,val&0x0f);

Write_Hd7279(0xc9,val>>4);

Write_Hd7279(0x92,0x00);

Write_Hd7279(0x93,0x00);

Write_Hd7279(0x94,0x00);

Write_Hd7279(0x95,0x00);

Write_Hd7279(0xce,0x0d);

Write_Hd7279(0xcf,0);

bz=0; //清读数标志

}

}

这就是C的程序

>

既然提示没有,那就添加一个虚拟的并口就可以了。

1打开控制面板---添加硬件---下一步---是,我已经连接了此硬件---添加新的硬件设置---下一步---安装我手动从列表选择的硬件(高级)---下一步---端口(COM和LPT),点击打开,选择ECP打印机端口即

2我的电脑---属性---硬件---设备管理器---端口(COM和LPT)---ECP打印机端口(LPT)---右键属性---端口设置---LPT端口号---选LPT1---资源---输入/输出范围---更改设置---确定---重启计算机

分类:

在IEEE1284标准中定义了多种并行接口模式,常用的有以下三种:

SPP (Standard Parallel Port) 标准并行接口

EPP (Enhanced Parallel Port) 增强并行接口

ECP (Extended Capabilities Port) 扩展功能并行接口

这几种模式因硬件和编程方式的不同,传输速度可以从50K Bits/秒到2MB/秒不等。一般用以从主机传输数据到打印机、绘图仪或其它数字化仪器的接口,是一种叫Centronics的36脚d簧式接口(通常主机上是25针D型接口,打印机上是36针Centronics接口)。

以上内容参考 百度百科-并行接口

和51一样都是要根据时序图的,用FPGA编写的代码在有时序图或者较复杂的功能上时用状态机编写是很方便的,根据时序图按时间看出各种状态,再从各个状态中编写代码,比较容易实现,再仿真时序是否符合和生成状态图,这样编程就方便了。

The STM32F745xx and STM32F746xx devices are based on the high-performance  ARM®Cortex®-M7 32-bit RISC core operating at up to 216 MHz frequency The  Cortex®-M7 core features a single floating point unit (SFPU) precision which  supports all ARM®single-precision data-processing instructions and data types  It also implements a full set of DSP instructions and a memory protection unit  (MPU) which enhances the application security

The STM32F745xx and STM32F746xx devices incorporate high-speed embedded  memories with a Flash memory up to 1 Mbyte, 320 Kbytes of SRAM (including 64  Kbytes of Data TCM RAM for critical real-time data), 16 Kbytes of instruction  TCM RAM (for critical real-time routines), 4 Kbytes of backup SRAM available in  the lowest power modes, and an extensive range of enhanced I/Os and peripherals  connected to two APB buses, two AHB buses, a 32-bit multi-AHB bus matrix and a  multi layer AXI interconnect supporting internal and external memories  access

All the devices offer three 12-bit ADCs, two DACs, a low-power RTC,  thirteen general-purpose 16-bit timers including two PWM timers for motor  control and one low-power timer available in Stop mode, two general-purpose  32-bit timers, a true random number generator (RNG) They also feature standard  and advanced communication interfaces

Key Features

Core: ARM® 32-bit Cortex®-M7 CPU with FPU, adaptive real-time accelerator  (ART Accelerator™) and L1-cache: 4KB data cache and 4KB instruction cache,  allowing 0-wait state execution from embedded Flash memory and external  memories, frequency up to 216 MHz, MPU, 462 DMIPS/214 DMIPS/MHz (Dhrystone  21), and DSP instructions

Memories

Up to 1MB of Flash memory

1024 bytes of OTP memory

SRAM: 320KB (including 64KB of data TCM RAM for critical real-time data) +  16KB of instruction TCM RAM (for critical real-time routines) + 4KB of backup  SRAM (available in the lowest power modes)

Flexible external memory controller with up to 32-bit data bus: SRAM,  PSRAM, SDRAM/LPSDR SDRAM, NOR/NAND memories

Dual mode Quad-SPI

LCD parallel interface, 8080/6800 modes

LCD-TFT controller up to XGA resolution with dedicated Chrom-ART  Accelerator™ for enhanced graphic content creation (DMA2D)

Clock, reset and supply management

17 V to 36 V application supply and I/Os

POR, PDR, PVD and BOR

Dedicated USB power

4-to-26 MHz crystal oscillator

Internal 16 MHz factory-trimmed RC (1% accuracy)

32 kHz oscillator for RTC with calibration

Internal 32 kHz RC with calibration

Low-power

Sleep, Stop and Standby modes

VBATsupply for RTC, 32×32 bit backup registers + 4KB backup SRAM

3×12-bit, 24 MSPS ADC: up to 24 channels and 72 MSPS in triple  interleaved mode

2×12-bit D/A converters

Up to 18 timers: up to thirteen 16-bit (1x low- power 16-bit timer  available in Stop mode) and two 32-bit timers, each with up to 4 IC/OC/PWM or  pulse counter and quadrature (incremental) encoder input All 15 timers running  up to 216 MHz 2x watchdogs, SysTick timer

General-purpose DMA: 16-stream DMA controller with FIFOs and burst  support

Debug mode

SWD & JTAG interfaces

Cortex®-M7 Trace Macrocell™

Up to 168 I/O ports with interrupt capability

Up to 164 fast I/Os up to 108 MHz

Up to 166 5 V-tolerant I/Os

Up to 25 communication interfaces

Up to 4× I2C interfaces (SMBus/PMBus)

Up to 4 USARTs/4 UARTs (27 Mbit/s, ISO7816 interface, LIN, IrDA, modem  control)

Up to 6 SPIs (up to 50 Mbit/s), 3 with muxed simplex I2S for audio class  accuracy via internal audio PLL or external clock

2 x SAIs (serial audio interface)

2 × CANs (20B active) and SDMMC interface

SPDIFRX interface

HDMI-CEC

Advanced connectivity

USB 20 full-speed device/host/OTG controller with on-chip PHY

USB 20 high-speed/full-speed device/host/OTG controller with dedicated  DMA, on-chip full-speed PHY and ULPI

10/100 Ethernet MAC with dedicated DMA: supports IEEE 1588v2 hardware,  MII/RMII

8- to 14-bit parallel camera interface up to 54 Mbyte/s

True random number generator

CRC calculation unit

RTC: subsecond accuracy, hardware calendar

96-bit unique ID

利用STM32F746单片机的P0端口的P00-P07连接到一个共阴数码管的a-h的笔段上,数码管的公共端接地。在数码管上循环显示0-9数字,时间间隔02秒。

2 电路原理图

图471

3 系统板上硬件连线

把“单片机系统”区域中的P00/AD0-P07/AD7端口用8芯排线连接到“四路静态数码显示模块”区域中的任一个数码管的a-h端口上;要求:P00/AD0与a相连,P01/AD1与b相连,P02/AD2与c相连,……,P07/AD7与h相连。

4程序设计内容

(1LED数码显示原理

七段LED显示器内部由七个条形发光二极管和一个小圆点发光二极管组成,根据各管的极管的接线形式,可分成共阴极型和共阳极型。

LED数码管的g~a七个发光二极管因加正电压而发亮,因加零电压而不以发亮,不同亮暗的组合就能形成不同的字形,这种组合称之为字形码,下面给出共阴极的字形码见表2

“0”

3FH

“8”

7FH

“1”

06H

“9”

6FH

“2”

5BH

“A”

77H

“3”

4FH

“b”

7CH

“4”

66H

“C”

39H

“5”

6DH

“d”

5EH

“6”

7DH

“E”

79H

“7”

07H

“F”

71H

(2由于显示的数字0-9的字形码没有规律可循,只能采用查表的方式来完成我们所需的要求了。这样我们按着数字0-9的顺序,把每个数字的笔段代码按顺序排好!建立的表格如下所示:TABLE DB 3FH,06H,5BH,4FH,66H,6DH,7DH,07H,7FH,6FH

5程序框图

芯片供应:拍明芯城

品牌:st

#include "reg51h"

#define data_point P0

sbit EOC=P2^0;

sbit ADDA=P2^1;

sbit ADDB=P2^2;

sbit ADDC=P2^3;

sbit OE=P2^5;

sbit START=P2^6;

sbit CLK=P2^7;

sbit ALE=P2^6;

unsigned char disp[3]={0,0,0};

char code dispcode[]={0xc0,0xf9,0xa4,0xb0,0x99,0x92,0x82,0xf8,0x80,0x90};

unsigned char t0count=0;

unsigned int temp;

double sum;

unsigned char val_Integer; //整数

unsigned int val_Decimal; //小数

sbit k1 = P1^0;

sbit k2 = P1^1;

sbit k3 = P1^2;

sbit k4 = P1^3;

void delay(unsigned char ms)

{

unsigned char i;

while(ms--)

for(i=0;i<125;i++);

}

void display()

{

disp[0]=disp[0]&0x7f;

P3= disp[0];

k1 = 1;

delay(2);

k1 = 0;

P3= disp[1];

k2 = 1;

delay(2);

k2 = 0;

P3= disp[2];

k3 = 1;

delay(2);

k3 = 0;

P3= disp[3];

k4 = 1;

delay(2);

k4 = 0;

}

unsigned char ADC0808()

{

unsigned char d;

ADDC=0;

ADDB=0;

ADDA=0;

TR1=1;

ALE=1;ALE=0;

START=1;START=0;

while(EOC==0);

OE=1;

d=data_point;

OE=0;

TR1=1;

return d;

}

void covert(unsigned char x)

{

sum=x00201378;

val_Integer=(unsigned char)sum;

val_Decimal=(unsigned int)((sum-val_Integer)1000);

disp[3]=dispcode[val_Decimal%10];

disp[2]=dispcode[val_Decimal/10%10];

disp[1]=dispcode[val_Decimal/100];

disp[0]=dispcode[val_Integer];

}

void main()

{

TMOD=0x21;

TH0=(65536-10000)/256;

TL0=(65536-10000)%256;

TH1=256-2;

ET0=1;

ET1=1;

EA=1;

TR0=1;

OE=0;

START=0;

EOC=1;

while(1)

{

display();

}

}

void time0() interrupt 1

{

TH0=(65536-10000)/256;

TL0=(65536-10000)%256;

t0count++;

if(t0count==100)

{

t0count=0;

covert(ADC0808());

}

}

void time1() interrupt 3

{

CLK=~CLK;

}

以上就是关于什么叫计算机没有并口或者并口被禁用全部的内容,包括:什么叫计算机没有并口或者并口被禁用、单片机AD采集的C程序、安装完毕d出对话框:“此计算机没有并口或并口被禁用,不能安装并口狗驱动。”等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zz/9742889.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-01
下一篇 2023-05-01

发表评论

登录后才能评论

评论列表(0条)

保存