Problem with chip MC13213 and PTA port

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Problem with chip MC13213 and PTA port

1,936 次查看
jcuesta
Contributor I
HI all, and thanks for your help in advance,
 
I have a problem regarding MC13213 chips and PTA port, although its more or less solved i would like to know if anyone noticed the problem and why it could be produced.
 
The problem is that I define PTADD as 0x00 for ussing PTAD port as input but when reciving 15 data bytes trough the UART PTADD misteriously turns to 0xFF turning the port as output, I dont know why is that produced. I have cheked the code and there is no asignment in all the code for that port to become 0xFF (nowhere, nor in the inicialization or in the code itshelf) the issue gets solved reasigning PTADD to 0x00 just before each reading of the PTAD port but its a quite dirty solution.
 
Thanks.
 
 
 
 
标签 (1)
0 项奖励
回复
1 回复

1,226 次查看
Alex_RUS
Contributor I
Use BDM-debuger to catch the point when it happens.. maybe exist some indirect access to PTADD.
0 项奖励
回复