MC9RS08KA2 A/D conversion issues

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MC9RS08KA2 A/D conversion issues

1,272件の閲覧回数
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 返信

618件の閲覧回数
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 件の賞賛
返信