MC9RS08KA2 A/D conversion issues

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

MC9RS08KA2 A/D conversion issues

1,264 次查看
jackabo
Contributor I
Hey guys,
  This is probably the 5th post I've written on this stuff but I have been having a lot of issues with my A/D conversion on my board. I got most of the code from AN3266 and that took a while to fix and debug and when i finally hooked it up to my board and ran the code, the "device is reset." During the "configuration of the system" code, I am enabling the SOPT and COP with the code
 
MOV #((SOPT) >> 6 ) & $FF,PAGESEL
MOV #(mSOPT_COPE | mSOPT_COPT | mSOPT_STOPE), (((SOPT) & $3F) + $C0)
When I have this code in the program the device gets reset but when I take it out the code can run all the way until I get to a wait statement. Does anyone have any ideas to why this would have happened? Thanks
 
Jackabo
标签 (1)
0 项奖励
回复
1 回复

610 次查看
Curt
Contributor IV
Hi jackabo.
Could you possibly be trying to write to SOPT more than once in your code?  This would cause the problem you describe if I'm reading the data sheet correctly (I'm very new to the RSO8).
0 项奖励
回复