1 What is the MCC Melody PIC16/18 Diagnostic Library?
The MPLAB® Code Configurator (MCC) Melody PIC16/18 Diagnostic Library is a suite of diagnostic tests implementing the diagnostics mechanisms described in the device’s functional safety manual. The library is distributed as an MPLAB X MCC Melody module, which allows for quick and easy configuration using graphical interfaces. MCC generates code for MPLAB X and the MPLAB XC8 compiler projects, based on the selections and configuration.
Instructions to install or update the library, add the diagnostic tests, and run the examples in MCC Melody are available in Getting Started with the MCC Melody AVR® and PIC16/18 Diagnostic Libraries .
Component | Safety Measure | Purpose |
---|---|---|
CPU | SW_CPU_REGISTER_RESET_STATE_CHECK_01 | Verify registers at start-up |
SW_CPU_REGISTER_TEST_01 | Verify internal CPU registers | |
SW_CPU_SELF_TEST_LIB_01 | Verify functional correctness of all CPU instructions/core features | |
Flash | SW_FLASH_MEMORY_CHECKSUM_CRC_TEST_01 | Compute the periodic checksum or the CRC computation on the entire or user-defined region of Flash memory |
EEPROM | SW_EEPROM_MEMORY_CHECKSUM_CRC_TEST_01 | Compute the periodic checksum or the CRC computation on the entire or user-defined region of EEPROM memory |
SRAM | SW_SRAM_MARCH_TEST_01 | Check of the entire SRAM using March C- test |
WDT | SW_WATCHDOG_SIMPLE_TIMER_STARTUP_TEST_01 | Validate the ability of the Watchdog Timer running in Non-Windowed mode to reset the device |
WWDT | SW_WATCHDOG_WINDOWED_TIMER_STARTUP_TEST_01 | Validate the ability of the Watchdog Timer running
in Windowed mode to reset the device in two ways:
|
Clock SOSC | SW_CLOCK_PERIODIC_MONITOR_01 | Check of stable and reliable oscillation being present using an external secondary oscillator with 32768 Hz frequency |
Clock Line | SW_CLOCK_PERIODIC_MONITOR_02 | Check of stable and reliable oscillation being present using an external 60 Hz line frequency |
Interrupt Controller | SW_INTERRUPT_FREQUENCY_TEST_01 | Using independent time slot monitoring, check whether the number of interrupts that occurred is within a predefined range |