阅读:1689回复:15
大虾9命,为什么我D12接上去以后主机不会检测到设备啊
为什么我D12接上去以后主机不会检测到设备啊
我是参照smart接的 固件在什么地方给主机识别啊 主机一点反映也没有 可能是怎么回事啊 搞定了送20~ |
|
沙发#
发布于:2003-06-03 09:30
SetMode(F3H,12H,4XH),打开soft connect,主机才会检测到D12。
|
|
板凳#
发布于:2003-06-03 10:05
哎,看来你连datasheet都没仔细看呀,固件中你必须设置模式寄存器中的soft connect位才能将d+先上的上拉电阻连接,此时主机才会检测到有usb设备插入,然后发送复位信号给你。
|
|
地板#
发布于:2003-06-03 11:57
大家说得没错,还有你要看看d12的时钟有没有工作!
|
|
地下室#
发布于:2003-06-03 16:43
我有Set了阿
而且PDIUSBD12起振了 有什么调试的办法啊? |
|
5楼#
发布于:2003-06-03 18:24
其它的脚看看,别忘了“片选”。
|
|
|
6楼#
发布于:2003-06-03 22:05
其他脚都有设置
现在已经起振而且运行到那里,连单片机上测试的led都亮了 现在唯一不对的可能就是晶振 现在用的是11.0592的 是不是这个的问题啊 有关系吗? 明天去用24 的试试 其他都和smart上一样的 还有就是可能和D12的读写有问题 可能是怎么回事啊 我A0接到高 两个ALE接了 数据接了 cs直接到低 就差不多了吧 至于smart上的复位什么的 我都没有用触发器而是直接连的 应该也没有事吧~ 大家帮帮我 我很急啊 |
|
7楼#
发布于:2003-06-04 09:19
大家帮我看看好吗?
晶振有影响吗? |
|
8楼#
发布于:2003-06-04 10:18
你为什么不将原理图贴出来昵?
|
|
|
9楼#
发布于:2003-06-04 10:53
我也碰到了和你一样的问题:
是不是在我们单片机的初始化有问题 我只把p0-p3口设为0xff,在就是将中断0设为电平中断, 开总中断和int0中断。 |
|
10楼#
发布于:2003-06-04 13:23
应该还好
我还用别人的程序试了一下 也不行 初始化也就这么多啊 然后就是设置soft connect断开再连了啊 对了 PDIUSBD12读外部的地址怎么设置的啊 我是直接连两个ALE 然后A0->VCC 地址是怎么确定的啊 大家帮我 |
|
11楼#
发布于:2003-06-04 14:16
hahaha
居然只是USB没接好 有条线断了 汗 对了 驱动的那个.inf是怎么样的啊 我装不了 大虾指教 |
|
12楼#
发布于:2003-06-04 16:00
把你的inf文件贴出来,另外固件中的和inf中的vid/pid必须一致
|
|
13楼#
发布于:2003-06-04 20:53
汗
是一样的啊 是:;; ddkusb.inf ;; ********* PLEASE READ *********** ;; The wizard cannot create exact INF files for all buses and device types. ;; You may have to make changes to this file in order to get your device to ;; install. In particular, hardware IDs and logical configurations require ;; intervention. ;; ;; The Windows DDK documentation contains an excellent INF reference. ;--------- Version Section --------------------------------------------------- [Version] Signature=\"$Windows 95$\" Provider=%ProviderName% ; If device fits one of the standard classes, use the name and GUID here, ; otherwise create your own device class and GUID as this example shows. Class=USB ClassGUID={36FC9E60-C465-11CF-8056-444553540000} ;--------- SourceDiskNames and SourceDiskFiles Section ----------------------- ; These sections identify source disks and files for installation. They are ; shown here as an example, but commented out. ;[SourceDisksNames] ;1 = \"Install Disk\",Disk1,, ;[SourceDisksFiles] ;ddkusb.sys = 1,, ;--------- ClassInstall/ClassInstall32 Section ------------------------------- ; Not necessary if using a standard class ; 9X Style [ClassInstall] Addreg=Class_AddReg ; NT Style [ClassInstall32] Addreg=Class_AddReg [Class_AddReg] HKR,,,,%DeviceClassName% HKR,,Icon,,\"-18\" ;--------- DestinationDirs Section ------------------------------------------- [DestinationDirs] ddkusb_Files_Driver = 10,System32\\Drivers ;--------- Manufacturer and Models Sections ---------------------------------- [Manufacturer] %MfgName%=Mfg0 [Mfg0] %DeviceDesc%=ddkusb_DDI, USB\\VID_0471&PID_0666 ;---------- DDInstall Sections ----------------------------------------------- ; --------- Windows 9X ----------------- ; Experimentation has shown that DDInstall root names greater than 19 characters ; cause problems in Windows 98 [ddkusb_DDI] CopyFiles=ddkusb_Files_Driver AddReg=ddkusb_9X_AddReg [ddkusb_9X_AddReg] HKR,,DevLoader,,*ntkern HKR,,NTMPDriver,,ddkusb.sys HKR, \"Parameters\", \"BreakOnEntry\", 0x00010001, 0 ; --------- Windows NT ----------------- [ddkusb_DDI.NT] CopyFiles=ddkusb_Files_Driver AddReg=ddkusb_NT_AddReg [ddkusb_DDI.NT.Services] Addservice = ddkusb, 0x00000002, ddkusb_AddService [ddkusb_AddService] DisplayName = %SvcDesc% ServiceType = 1 ; SERVICE_KERNEL_DRIVER StartType = 3 ; SERVICE_DEMAND_START ErrorControl = 1 ; SERVICE_ERROR_NORMAL ServiceBinary = %10%\\System32\\Drivers\\ddkusb.sys [ddkusb_NT_AddReg] HKLM, \"System\\CurrentControlSet\\Services\\ddkusb\\Parameters\",\\ \"BreakOnEntry\", 0x00010001, 0 ; --------- Files (common) ------------- [ddkusb_Files_Driver] ddkusb.sys ;--------- Strings Section --------------------------------------------------- [Strings] ProviderName=\"zz\" MfgName=\"zz\" DeviceDesc=\"USB测试\" DeviceClassName=\"USB设备\" SvcDesc=\"USB测试\" |
|
14楼#
发布于:2003-06-04 22:48
我检查了线路,没有问题,但还是电脑监测不到
你们是用keil的那个版本编辑的? |
|
15楼#
发布于:2003-06-05 14:10
我现在也有问题了
很奇怪 对了 每次上电就D12goodlink亮吗? 我的问题很奇怪 我还是不能正常检测到 甚至拔掉单片机再复位就可以了 |
|