完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,所有和tiA的任何和所有答复,我是新的Atmel和Microchip微控制器,我有很大的困难甚至得到基本的读写工作。我选择了ATTIYY414,因为它占地面积小,成本低,当然还有内置的I2C控制器。我从一些微芯片网站“AVR427 80温度记录器”下载的代码开始,因为它是针对AVR家族设备之一,并连接到I2C的脾气。不幸的是,这个代码非常古老,像10岁,不使用AtMeLtudio 7来构建。我所面临的问题是提供的I2C功能没有完成。我将设备ID、寄存器地址和数据传递给I2C00xWorde1ByTeReGestStor函数,它开始工作,然后在设备ID由我的传感器AKD后停止。寄存器地址永远不会出现在总线上。我想弄清楚如何在调试器中单步查看它在哪里停止。我很想听听使用I2C(TWI)接口的AtTIAN用户以及他们在I2C上使用的读写功能。谢谢,CobraRGuy。
以上来自于百度翻译 以下为原文 Hi all and TIA for any and all replies, I'm new to both Atmel and Microchip microcontrollers and am having a lot of difficulty getting even basic reads and writes to work. I chose the ATtiny414 based on it's small footprint, low cost and, of course, the built-in I2C controller. I started with some example code I downloaded from the Microchip website "AVR42780TemperatureLogger" because it was targeted at one of the AVR family devices and is interfacing to an I2C temperature sensor. Unfortunately this code is very old, like 10 years old and does not build using AtmelStudio 7.0. The problem I'm having is that the I2C functions provided do not complete. I pass the device ID, register address and data to the I2C_0_write1ByteRegister function and it starts to work, then stops after the device ID is AKD'd by my sensor. The register address never appears on the bus. I'm trying to figure out how to single-step in the debugger to see where it's stopping. I would love to hear from ATtiny users who are using the I2C (TWI) interface and what functions they're using to read/write on I2C. Thanks, CobraRGuy Attached Image(s) |
|
相关推荐
1个回答
|
|
在PIC论坛上,你不会得到太多帮助,因为你在ATME专用论坛上是HTTPS://www. avrFrask.NET/FoUMHTPSP://Culial.AtME.COM/
以上来自于百度翻译 以下为原文 You won't get much help here in the PIC forums for your At-Tiny Dedicated Atmel forum is e.g. https://www.avrfreaks.net/forum https://community.atmel.com/ |
|
|
|
只有小组成员才能发言,加入小组>>
5160 浏览 9 评论
1998 浏览 8 评论
1927 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3170 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2225 浏览 5 评论
727浏览 1评论
612浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
501浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
626浏览 0评论
524浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-22 06:46 , Processed in 1.352182 second(s), Total 79, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号