完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
求助:采用发烧友的例子,FSMC方式访问DM9000以太网芯片时,读取DM9000的ID号总是读取0x2b2a2928,就是读取的是ID寄存器的地址而不是寄存器的内容?是FMSC配置不正确还是其它问题啊?找了半天没找出问题?求各位解答下!typedef struct{
uint16_t REG; uint16_t DATA; }DM9000_TypeDef; #define DM9000_BASE ((u32)(0x6C100006)) #define DM9000 ((DM9000_TypeDef *) DM9000_BASE) ReadWritetiming.FSMC_AddressSetupTime = 0; //μØÖ·½¨á¢ê±¼ä ReadWriteTiming.FSMC_AddressHoldTime = 0; ReadWriteTiming.FSMC_DataSetupTime = 3; //êy¾Y½¨á¢ê±¼ä ReadWriteTiming.FSMC_BusTurnAroundDuration = 0x00; ReadWriteTiming.FSMC_CLKDivision = 0x00; ReadWriteTiming.FSMC_DataLatency = 0x00; ReadWriteTiming.FSMC_AccessMode = FSMC_AccessMode_A;//ê1óÃÄ£ê½A FSMC_NORSRAMInitStructure.FSMC_Bank = FSMC_Bank1_NORSRAM4; //NE4 FSMC_NORSRAMInitStructure.FSMC_DataAddressMux = FSMC_DataAddressMux_Disable; FSMC_NORSRAMInitStructure.FSMC_MemoryType = FSMC_MemoryType_SRAM; FSMC_NORSRAMInitStructure.FSMC_MemoryDataWidth = FSMC_MemoryDataWidth_16b; FSMC_NORSRAMInitStructure.FSMC_BurstAccessMode = FSMC_BurstAccessMode_Disable; FSMC_NORSRAMInitStructure.FSMC_AsynchronousWait = FSMC_AsynchronousWait_Disable; FSMC_NORSRAMInitStructure.FSMC_WaitSignalPolarity = FSMC_WaitSignalPolarity_Low; FSMC_NORSRAMInitStructure.FSMC_WrapMode = FSMC_WrapMode_Disable; FSMC_NORSRAMInitStructure.FSMC_WaitSignalActive = FSMC_WaitSignalActive_BeforeWaitState; FSMC_NORSRAMInitStructure.FSMC_WriteOperation = FSMC_WriteOperation_Enable; FSMC_NORSRAMInitStructure.FSMC_WaitSignal = FSMC_WaitSignal_Disable; FSMC_NORSRAMInitStructure.FSMC_ExtendedMode = FSMC_ExtendedMode_Disable; FSMC_NORSRAMInitStructure.FSMC_WriteBurst = FSMC_WriteBurst_Disable; FSMC_NORSRAMInitStructure.FSMC_ReadWriteTimingStruct = &ReadWriteTiming; FSMC_NORSRAMInitStructure.FSMC_WriteTimingStruct = &ReadWriteTiming; FSMC_NORSRAMInit(&FSMC_NORSRAMInitStructure); FSMC_NORSRAMCmd(FSMC_Bank1_NORSRAM4,ENABLE); //ê1ÄüFSMCμÄBank1_Bank1_NORSRAM4 |
|
相关推荐
6个回答
|
|
发现问题了,配置错了!
|
|
|
|
请问是哪里配置错了
|
|
|
|
不说答案就跑了...
|
|
|
|
你好,你的历程是在哪下载的呀
|
|
|
|
原子哥的历程啊
|
|
|
|
不好意思,时间长了 忘记了,自己业余在玩,老是在忙别的事,断断续续的
|
|
|
|
只有小组成员才能发言,加入小组>>
如何使用STM32+nrf24l01架构把有线USB设备无线化?
2568 浏览 7 评论
请问能利用51单片机和nRF24L01模块实现实时语音无线传输吗?
2359 浏览 5 评论
3207 浏览 3 评论
2836 浏览 8 评论
为什么ucosii上移植lwip后系统进入了HardFault_Handler?
2786 浏览 4 评论
请教各位大咖:有没有接收频率32M左右的芯片推荐的?先感谢啦!
661浏览 1评论
898浏览 0评论
1020浏览 0评论
665浏览 0评论
494浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-19 12:26 , Processed in 1.204403 second(s), Total 89, Slave 72 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号