5292 views|2 replies

4

Posts

0

Resources
The OP
 

PIC microcontroller i2c slave mode receiving data problem [Copy link]

This post was last edited by wgy1202 on 2019-3-7 14:05 I am using pic18f26k83, and i2c is in slave mode. When receiving data, it can recognize the address and give ack. However, when receiving data, it cannot trigger the WRIF interrupt or the RXIF interrupt, and it cannot enter the interrupt function to process the data. The register configuration should be fine. Since the relevant code is in the internal computer, I can only upload it with photos. Please give me some advice! Thank you very much!

image.jpg (113.16 KB, downloads: 0)

image.jpg

image.jpg (106.8 KB, downloads: 0)

image.jpg

image.jpg (63.08 KB, downloads: 0)

image.jpg

image.jpg (106.13 KB, downloads: 0)

image.jpg

image.jpg (97.83 KB, downloads: 0)

image.jpg

image.jpg (110.44 KB, downloads: 0)

image.jpg

image.jpg (70.56 KB, downloads: 0)

image.jpg
This post is from MCU

Latest reply

1) The photos you took are not clear. You can check them yourself after writing the post. If you can't see them clearly, how can others? 2) It is best to check the interrupt configuration carefully according to the specification.  Details Published on 2019-3-7 13:01
 

1368

Posts

6

Resources
2
 
1) The photos you took are not clear. You can check them yourself after writing the post. If you can't see them clearly, how can others? 2) It is best to check the interrupt configuration carefully according to the specification.
This post is from MCU
 
Personal signature专注智能产品的研究与开发,专注于电子电路的生产与制造……QQ:2912615383,电子爱好者群: void
 

4

Posts

0

Resources
3
 
Lazy Cat Loves Flying published on 2019-3-7 13:01 1) The photos taken are not clear. In fact, you can check them yourself after writing the post. If you can't see them clearly, how about others? 2) This...
Thank you for taking the time. The mobile browser I used to post does not support browsing the pictures before posting. It is indeed not clear. I will go back to the computer tonight to try to post. I am also a beginner. According to the device manual and the code compiled by the mcc library function, there may be some problems that I cannot find at my current level, so I would like to trouble you all.
This post is from MCU
 
 
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list