Dump Data from registers in real time

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

Dump Data from registers in real time

819件の閲覧回数
Idontunderstand
Contributor I

Hello;

I'm using CSMB12 freescale microcontroller. And I used ATD to convert the result of sensors. So I have 4 registers related to outputs of the ATD  (ATDDR0L-ATDDR3L). Is there any way to save the result of out put in the real time?

Because when i debugg it with "True-Time simulator and real time debugger", i just can see the result when i stopped running. And i couldn't find any way to dump my registers in a seperate file in a real time.

Does any body have any idea? Thanks for your help.

 

Cheers;

Sb

ラベル(1)
0 件の賞賛
返信
1 返信

385件の閲覧回数
isionous
Contributor III

There's probably some way to dump the four registers repeatedly into a file that I don't know about.  In the meantime, you might want to do something like this.

 

 

//global variablesunsigned char ATDBuf[1000];unsigned short ATDBufIndex = 0;//routine to take snapshot of ATD registersunsigned char ATDSnapshot(void){    if(ATDBufIndex + 3 < sizeof(ATDBuf)){        ATDBuf[ATDBufIndex++] = ATDDR0L;        ATDBuf[ATDBufIndex++] = ATDDR1L;        ATDBuf[ATDBufIndex++] = ATDDR2L;        ATDBuf[ATDBufIndex++] = ATDDR3L;        return 1;    }    return 0;}

 

So you can record the registers in real time in memory.

 

0 件の賞賛
返信