完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
你好,
我试图修改CY32 40固件(通过PSoC设计器),以便它保留所有的桥接功能,但也可以使用DEVBOARD上的一些I/O引脚通过其内部ADC读取电压。理想情况下,DEV板将正常工作,将UBScript命令路由到I2C总线,但也能够拦截某些告诉它访问I/O端口的数据包。 任何人都有这个经验(例如样本代码)? 以上来自于百度翻译 以下为原文 Hi, I'm trying to modify the CY3240 firmware (through PSoC Designer) so that it retains all its bridge functionality but can also use some of the I/O pins on the dev board to read voltages through its internal ADC. Ideally, the dev board would function as normal, routing USB commands to the i2c bus, but would also be able to intercept certain packets that tell it to access an I/O port. Anyone have experience with this (e.g. sample code)? |
|
相关推荐
2个回答
|
|
你好,
我在寻找和你一样的功能。你找到路了吗? 我不能通过微型程序对CY32 40进行编程,它不重置PSoC部件。 谢谢分享你的发现。 最好的问候, 马蒂亚斯。 以上来自于百度翻译 以下为原文 Hello, I'm looking for the same functionnality as you. Have you find a way? I'm not able to program the CY3240 through the Miniprog, it doesn't regonize the Psoc parts. Thanks to share your discovers. best regards, Mathias. |
|
|
|
你好,
我的cy3240-i2u***桥使用的I / O端口修改固件和我停留。有一个引导文件称为boot_psocconfigtbl.asm,覆盖配置,我设置在芯片查看器。因此,修改代码和芯片的配置需要复制文件自动生成psocconfigtbl.asm登记设置这个启动文件。我已经在内部通过后80h使用桥的内部读取命令,使用I2C地址阅读成功。我只是说我自己,看来我可以从他们使用的I2C地址86h后我仍然可以使用桥。最终,我想保持I2C USB桥接使用I/O端口和使用A/D转换器读取直流电压。 这似乎是我的问题。我试图用一个增量ADC具有增益和我的ADC PGA放大器总是给我00我结果数据。我排的PGA输出到模拟出来,我可以读我的输入电压相同的情况下,我按照一些教程和我不能让ADC的输出值。我开始了一个新的项目没有i2cbridge和配置一个adcinc和PGA和它完美的作品!!我复制相同的设置对I2C USB项目和它不工作。我有一所附属painstakenly监测登记的港口或在运行时的ADC和PGA,我看不出任何问题。 从我可以告诉interupts正确的工作和数据准备好标志被设置,但数据是零,我知道我在输入直流电压。以下是我的设置: VC1 = 12(用于PWM和模拟时钟塔)2mhz时钟 模拟功率= SC /参考高(所有模块开始在高功率) REF MUX =(VDD/2 + -VDD/2) 我试着交换时钟多次但是没有时钟交换。 启用互操作 ADC结果=8位 字节数; 我正在使用来自主的样本代码: M8CB; adcinc_start(adcinc_highpower);//适用于电源供应链块 AdcClinux样本(0); 对于(i=0;i & lt;200;i++){if(AdcCnSfDATAsAdabable)()!= 0){ adc_recieve = adcinc_bclearflaggetdata();/ /清除ADC旗} } 如果有人能告诉我,我做错了什么我将不胜感激!! 谢谢您, 威廉 以上来自于百度翻译 以下为原文 Hello, I am modifying the firmware for the CY3240-I2USB Bridge to use the I/O ports and I am stuck. There is a boot file called boot_psocconfigtbl.asm that overwrites the configurations that I set in the chip viewer. So, modifying the code and chip configuration requires that you copy the automaticly generated psocconfigtbl.asm file register setting on to this boot file. I have had sucess in reading internally by using the bridge's internal read commands which use the I2C addresses after 80h. I just added my own and it appears I can read from them after using the I2C address 86h and I can still use the bridge. Ultimatly, I want to keep the I2C USB Bridge and use the I/O ports and use the A/D Converters to read a DC voltage. That seems to be my problem. I am trying to use an incremental ADC with a PGA amplifier with a gain of 1and my ADC always gives me 00 as my result data. I routed the output of the PGA to the analog out and I can read the same voltage that I input, and I have followed several tutorials and I can't get the ADC to output a value. I started a new project without the I2CBridge and configured an ADCINC and a PGA and it works perfectly!! I copy the same settings on to the I2C USB project and it dosen't work. I have painstakenly monitored every register that is affilated with the ports or the ADC and PGA during runtime, I can't see any problems. From what I can tell the Interupts are working correctly and the data ready flag is set but the data is zero and I know I have a DC voltage at the input. Here are my settings: VC1=12 (For both the PWM and the Analog Clock Column) 2MHz Clock Analog Power= SC On/Ref High (All modules start at high power) Ref Mux = (VDD/2 +- VDD/2) I have tried swapping the clocks many times but right no the clocks are swapped. Interupts are enabled ADC resulution= 8 bits BYTE ADC_Recieve; I am using the sample code from main: M8C_EnableGInt; ADCINC_Start(ADCINC_HIGHPOWER); // Apply power to the SC Block ADCINC_GetSamples(0); for(i=0; i<200; i++){ if(ADCINC_fIsDataAvailable()!= 0){ ADC_Recieve=ADCINC_bClearFlagGetData(); // Clear ADC flag } } If anyone can tell me what I am doing wrong I would greatly appreciate it!! Thank You, William |
|
|
|
只有小组成员才能发言,加入小组>>
751个成员聚集在这个小组
加入小组2064 浏览 1 评论
1824 浏览 1 评论
3632 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1760 浏览 6 评论
1508 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
502浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
354浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
409浏览 2评论
354浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
851浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-19 17:23 , Processed in 0.946055 second(s), Total 81, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号