完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
使用PIC18F45,IO C寄存器在用PIKIT 3调试时不存在于IO视图中。在time2上,I只能SEEPEI4PIR4PMD1T2CON。这是正常的吗?Q
以上来自于百度翻译 以下为原文 Using Pic18F45 - the I2C registers are not present in io view when debugging with a Pickit 3. Also on Timer2 I can only see PIE4 PIR4 PMD1 T2CON. Is thi snormal ? Q |
|
相关推荐
13个回答
|
|
应该有TMR2和PAGE 138PIE1BIT.TMR2IEPIR1BIT.TMR2IFIPR1BIT.TMR2IPLOOKS正常。
以上来自于百度翻译 以下为原文 There should be TMR2 and Page 138 PIE1bits.TMR2IE PIR1bits.TMR2IF IPR1bits.TMR2IP Looks snormal. |
|
|
|
“在IO视图中不存在”什么是MPLAB 5?6?7?8?MPlabX?什么版本?
以上来自于百度翻译 以下为原文 "are not present in io view" of what MPLAB 5? 6? 7? 8? MPlabX? what version? |
|
|
|
PIC18F45?真的有这样的装置吗?我可以找到PIC18F42、PIC18F420、PIC18F45 K20、PIC18F45 K22、PIC18F45 K40和PIC18F45 K42。PIC18F45 5X设备、PIC18F460和PIC18F480设备系列。设备是否被MPLAB和编程和调试工具正确识别?迈西尔
以上来自于百度翻译 以下为原文 PIC18F45 ? Is there really such a device? I can find PIC18F452, PIC18F4520, PIC18F45K20, PIC18F45K22, PIC18F45K40, and PIC18F45K42. There are PIC18F455x devices, PIC18F4560 and PIC18F4580 device families. Is the device correctly recognized by MPLAB and the programming and debugging tool? Mysil |
|
|
|
设备是PIC18F4K42MPLAB无X版本,不能得到I2C1接口运行。使用MCC提供的HTE代码。没有输出,I2C1CON0从不实际设置,尽管运行空I2C1x初始化(空隙){if()!I2C1CONTION。恩!{L2StRe= I2C1JOLY;//TXU 0;CSD时钟拉伸启用;ACXT 0;ACKDT确认;ACKSTAT ACK接收;ACKCNT确认;I2C1CON1= 0x00;/ABD启用;GCEN禁用;ACDT禁用;SDAHT 300 ns保持时间;BFRET 8 I2C时钟脉冲;FME禁用;I2C1CON2=0x00;//CLK FoCC/4;I2C1CLK= 0x00;//CSTR启用时钟;在启动后由硬件清除;模式7位地址;EN使能;RSEN禁用;I2C1CON0= 0x84I2C1PIR=0;/ /清除所有错误标志I2C1Err=0;}或通过暂停后手动设置。
以上来自于百度翻译 以下为原文 Device is PIC18F45K42 mplab x - free version I cannot get the I2C1 interface to run. Using hte code provided by MCC. There is just no output and the i2c1con0 never actually get set despite running void I2C1_Initialize(void) { if(!I2C1CON0bits.EN || lastError != I2C1_GOOD) { lastError = I2C1_GOOD; // TXU 0; CSD Clock Stretching enabled; ACKT 0; RXO 0; ACKDT Acknowledge; ACKSTAT ACK received; ACKCNT Acknowledge; I2C1CON1 = 0x00; // ABD enabled; GCEN disabled; ACNT disabled; SDAHT 300 ns hold time; BFRET 8 I2C Clock pulses; FME disabled; I2C1CON2 = 0x00; // CLK Fosc/4; I2C1CLK = 0x00; // CSTR Enable clocking; S Cleared by hardware after Start; MODE 7-bit address; EN enabled; RSEN disabled; I2C1CON0 = 0x84; I2C1PIR = 0;// ;Clear all the error flags I2C1ERR = 0; } } OR by setting manually after pausing |
|
|
|
我想它是一个45 Kxxx,但是它太多了,请填写完整的零件号。
以上来自于百度翻译 以下为原文 I think it is a 45Kxxx but it was too much to type. Full Part numbers Please. |
|
|
|
|
|
|
|
嗨,PIC18F45 K42是一个相对较新的一个新的I2C外围设备,它与其他PIC16和PIC18设备中使用的MSSP不同。在PIC18F45 K42的产品页中,在文档标签下,有威廉希尔官方网站
简介TB3191与描述和示例代码的链接。MysilEdit:用MCC在MPLAB V4.15做了一个测试项目,并在模拟器中启动。在监视窗口中,在“新表”弹出菜单中,每个I2C模块都有21个寄存器可用。迈西尔
以上来自于百度翻译 以下为原文 Hi, PIC18F45K42 is a relatively new family of devices with a new I2C peripheral that is different from MSSP that have been used in other PIC16 and PIC18 devices. In Product page for PIC18F45K42, under Documentation tab, there is link to Technical Brief TB3191 with description and example code. Mysil Edit: Have done a test project in MPLAB v4.15 with MCC, and started in Simulator. In watch window, there are 21 registers available for each I2C module in 'New Watch' pop-up menu. Mysil |
|
|
|
这可能是I2C模块无法启用的原因吗?我还没有搜索文档呢?或者它不是通过一些省电/睡眠模式寄存器供电?Q
以上来自于百度翻译 以下为原文 Could this be something like the I2C module is not enabled - I haven't searched the doc for this ? Or it is just not powered via some power saving / sleep mode register ? Q |
|
|
|
|
|
|
|
这是一个强大的8位芯片,可以做更多的DMA通道,一个更大的堆栈和更多的CPU寄存器(WREG)。
以上来自于百度翻译 以下为原文 That is a powerful 8bit chip, could have done with more dma channels, a larger stack and more cpu registers (wreg) though. |
|
|
|
这是需要的-开路漏I/O ODCONC=0x18;外围模块禁用位不是自动设置的,所以I2C1(可能是所有外围设备)都被DEFUCT.OPDM5位0关断。在MCC中,这可以设置在系统模块-寄存器选项卡中。在MCC中启用了I2C主控器。因此,我可以看到地址字节被发送,但在尝试发送下一个字节或读取字节后没有时间发生,因为没有时钟脉冲发生。所以我假定所提供的代码不起作用。
以上来自于百度翻译 以下为原文 Got back to this. This is needed - open drain i/o ODCONC = 0x18; Peripheral Module Disable bit is not set automatically - so I2C1 (and possibly all peripherals) off by default. PMD5 bit 0 needs to be 1. In the MCC, this may be set in the systems module - registers tab. Strange as the uart is powered on and the I2C Master is Enabled in MCC. So I can see the address byte being sent but it just times out after this when trying to send the next byte or read the byte back - no clock pulses happen. So I presume the supplied code just doesn't work. Thanks Q |
|
|
|
所以我可以看到地址字节被发送但是..你看到从从属设备的ACK?或者是一个NACK
以上来自于百度翻译 以下为原文 So I can see the address byte being sent but.. Do you see the ACK from the Slave Device? or is it a NACK |
|
|
|
0启用,1禁用。所有PMD寄存器默认为0x00在任何复位,使所有模块启用。
以上来自于百度翻译 以下为原文 0 enables, 1 disables. All PMD registers default to 0x00 at any reset so all modules are enabled. |
|
|
|
只有小组成员才能发言,加入小组>>
5304 浏览 9 评论
2067 浏览 8 评论
1972 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3240 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2279 浏览 5 评论
827浏览 1评论
716浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
663浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
716浏览 0评论
615浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-1-24 00:15 , Processed in 1.326454 second(s), Total 98, Slave 83 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号