Jump to main content
MCC PIC16/18 ISO26262 Diagnostic Library v1.2.0 API Documentation
MCC PIC16/18 ISO26262 Diagnostic Library v1.2.0 API Documentation
  1. Home
  2. 4 PIC18 Diagnostic Test APIs

  3. 4.2 SW_CLOCK_PERIODIC_MONITOR_01

    This module contains APIs to calculate and validate the frequency of the CPU clock using a reference Secondary Oscillator Crystal. The Clock test implements the SW_CLOCK_PERIODIC_MONITOR_01 SW REQ. ID by using time-slot monitoring technique.. It verifies the reliability of the system. clock (i.e., the system clock should be neither too fast nor too slow)

  4. 4.2.3 Functions
  5. 4.2.3.3 diag_ClockTestTimer

    For the SW_CLOCK_PERIODIC_MONITOR_01 API to calculate the diag_clockCount value to be used in GUID-CA6431D6-0107-4747-8D13-AAD13ED2CE7E.html API.

  • Introduction

    This document contains API documentation for the diagnostic tests included in the MPLAB® Code Configurator PIC16/18 ISO26262 Diagnostic Library.

  • 1 Software Requirements: PIC16

  • 2 Software Requirements: PIC18

  • 3 PIC16 Diagnostic Test APIs

  • 4 PIC18 Diagnostic Test APIs

    • 4.1 SW_CPU_REGISTER_RESET_STATE_CHECK_01.

      This module contains functional safety diagnostics APIs for CPU Registers .

    • 4.2 SW_CLOCK_PERIODIC_MONITOR_01

      This module contains APIs to calculate and validate the frequency of the CPU clock using a reference Secondary Oscillator Crystal. The Clock test implements the SW_CLOCK_PERIODIC_MONITOR_01 SW REQ. ID by using time-slot monitoring technique.. It verifies the reliability of the system. clock (i.e., the system clock should be neither too fast nor too slow)

      • 4.2.1 Defines
      • 4.2.2 Enums
      • 4.2.3 Functions
        • 4.2.3.1 diag_ClockTestSetup

          For the SW_CLOCK_PERIODIC_MONITOR_01 API to initialize the timer1 settings to run the test.

        • 4.2.3.2 diag_Timer1Restore

          For the SW_CLOCK_PERIODIC_MONITOR_01 API to restore the timer1 settings based on the application settings.

        • 4.2.3.3 diag_ClockTestTimer

          For the SW_CLOCK_PERIODIC_MONITOR_01 API to calculate the diag_clockCount value to be used in GUID-CA6431D6-0107-4747-8D13-AAD13ED2CE7E.html API.

        • 4.2.3.4 DIAG_Clock_SOSC

          For the SW_CLOCK_PERIODIC_MONITOR_01 API to calculate and validate the frequency of the CPU clock using a reference Secondary Oscillator Crystal.

    • 4.3 SW_CLOCK_PERIODIC_MONITOR_02

      This module contains APIs to calculate, store and validate the frequency of the CPU clock using a reference line frequency.

    • 4.4 SW_CPU_REGISTER_TEST_01

      This module contains functional safety diagnostics APIs for CPU Registers .

    • 4.5 SW_EEPROM_MEMORY_CHECKSUM_CRC_TEST_01 - CRC16

      This module contains APIs to calculate, store and validate 16-bit CCITT CRC for a given EEPROM region. .

    • 4.6 SW_EEPROM_MEMORY_CHECKSUM_CRC_TEST_01 - CRC32

      This module contains APIs to calculate, store and validate 32-bit CCITT CRC for a given EEPROM region.

    • 4.7 SW_FLASH_MEMORY_CHECKSUM_CRC_TEST_01 - CRC16

      This module contains APIs to calculate, store and validate 16-bit CCITT CRC for a given FLASH region .

    • 4.8 SW_FLASH_MEMORY_CHECKSUM_CRC_TEST_01 - CRC32

      This module contains APIs to calculate, store and validate 32-bit CCITT CRC for a given FLASH region. .

    • 4.9 SW_INTERRUPT_FREQUENCY_TEST_01

      This module contains functional safety diagnostics API for Interrupt Frequency Test.

    • 4.10 SW_SRAM_MARCH_TEST_01 - MarchB

      This module contains functional safety diagnostics API for SRAM March-B. .

    • 4.11 SW_SRAM_MARCH_TEST_01 - MarchC

      This module contains functional safety diagnostics APIs for SRAM March-C. .

    • 4.12 SW_SRAM_MARCH_TEST_01 - MarchC_Minus

      This module contains functional safety diagnostics APIs for SRAM March-C Minus. .

    • 4.13 SW_WATCHDOG_SIMPLE_TIMER_STARTUP_TEST_01

      This module contains functional safety diagnostics APIs for WatchDog Timer Test. .

    • 4.14 SW_WATCHDOG_WINDOWED_TIMER_STARTUP_TEST_01

      This module contains functional safety diagnostics APIs for WatchDog Timer Test .

    • 4.15 File List

      Here is a list of all documented files with brief descriptions

    • 4.16 Class List

      Here is a list of all documented files with brief descriptions

4.2.3.3 diag_ClockTestTimer

For the SW_CLOCK_PERIODIC_MONITOR_01 API to calculate the diag_clockCount value to be used in DIAG_Clock_SOSC API.

static void diag_ClockTestTimer(
    void
)

Returns

void None

About

Company
Careers
Contact Us
Media Center
Investor Relations
Corporate Responsibility

Support

Microchip Forums
AVR Freaks
Design Help
Technical Support
Export Control Data
PCNs

Quick Links

microchipDIRECT.com
Microchip University
myMicrochip
Blogs
Reference Designs
Parametric Search
Microchip Logo

Microchip Technology Inc.

2355 West Chandler Blvd.

Chandler, Arizona, USA

Microchip Facebook
Microchip LinkedIn
Microchip Twitter
Microchip Instagram
Microchip Weibo

© Copyright 1998-2024 Microchip Technology Inc. All rights reserved. Shanghai ICP Recordal No.09049794

Terms Of Use
Privacy Notice
Legal
Your Privacy Choices California Consumer Privacy Act (CCPA) Opt-Out Icon