Using the MC9S12 MMC to force hardware reset line to be pulled.

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

Using the MC9S12 MMC to force hardware reset line to be pulled.

1,325件の閲覧回数
gman8
Contributor I

The MMC can pull the hardware reset line on a bad memory request, however I can not seem to make it work. I tried doing it using Xgate. Still no dice.

I need to perform a hardware reset without using the COP.  Please give a specific example using 'C'. Thanks

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

1,130件の閲覧回数
HSW
NXP Employee
NXP Employee

Hello Gary,

Illegal address resets can only be triggered by the CPU. Illegal accesses performed by the XGATE will result in "XGATE Software Error" interrupts.

0 件の賞賛
返信

1,130件の閲覧回数
iggi
NXP Employee
NXP Employee

Hi,

I assume you mean generation of system reset when CPU accesses an unimplemented address (i.e., an address which does not belong to any of the on-chip modules).

For example, you can try to read or write to a global address of your device memory map which is unimplemented.

/* S12XEP100 device */

void main (void)

{

unsigned char data3, data4;

// Unimplemented RAM area

data3 = *(unsigned char *far)0x000800;

(void) data3;

// Unimplemented FLASH area

   data4 = *(unsigned char *far)0x400000;

(void) data4;

}

After this, ILAF flag is set which is unaffected by system reset. It can be cleared by writing a 1 to CRGFLG register, or cleared by power on or low voltage reset.

Regards,

Ivan

0 件の賞賛
返信