Download Here - Hitex (UK)
Transcript
PRO-SIL Safety System SAKCIC61508 SPI Interface Other forms of secure mode write cause specific actions. One example is using the write to cause a CIC reset using the “Reset CIC61508” action (0x07). Actions that are supported are: /* Secure mode actions #define Erase_DFLASH #define Program_DFLASH #define Jump_Address #define Reset_CIC61508 */ 0x03U 0x05U 0x06U 0x07U // // // // Erase the Program a Cause the Cause the DFLASH wordline in the DFLASH CIC to call an absolute address CIC to RESET To send an action request, the message is of the form: uiCIC_SPI_SendMessage (0x0080 | 0x0007) i.e. uiCIC_SPI_SendMessage (Secure_WRITE | Reset_CIC61508) Code Listing 13 Cause A CIC61508 Reset In reality, this would appear as: /* Cause a CIC61508 reset */ /* Send dummy address */ uiCIC_SPI_SendMessage(0x0000U) ; /* Send a reset command */ uiCIC_SPI_SendMessage(Secure_WRITE | Reset_CIC61508) ; /* Wait for CIC to restart */ Code Listing 14 Causing CIC61508 Reset The reset command will cause the CIC61508 to behave as it does at power-on. This means that it will run all its startup self-tests. This takes up to 60ms to complete. Any attempt to communicate with the CIC during this time will get a reply of 0xFF. This is because it MRST pin is inactive and floating high. The SYSDIS LEDs on the board will blink once as the CIC restarts. Once this has completed, the CIC61508 will be back in standard SPI mode. The 60ms reset delay will be incorporated into the CIC_SPI_Driver() interrupt function in the next example, along with a proper CIC61508 reset function. Hitex UK Using The CIC61508 SPI Interface 39 V1.0, 2011-08