Jump to main content
PIC16/18 IEC60730 Class B Diagnostic Library v5.0.1 API Documentation
PIC16/18 IEC60730 Class B Diagnostic Library v5.0.1 API Documentation
  1. Home
  2. 4 PIC18 Diagnostic Test APIs

  3. 4.1 Module Documentation
  4. 4.1.13 WATCHDOG Simple Timer Diagnostic Test
  5. 4.1.13.1 Module description
  6. 4.1.13.1.1 Definitions

  • Introduction

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

  • 1 Software Requirements: PIC16

  • 2 Software Requirements: PIC18

  • 3 PIC16 Diagnostic Test APIs

  • 4 PIC18 Diagnostic Test APIs

    • 4.1 Module Documentation
      • 4.1.1 Clock SOSC Diagnostic Test
      • 4.1.2 Clock Line Frequency Test
      • 4.1.3 CPU Program Counter Diagnostic Test
      • 4.1.4 CPU Registers Diagnostic Test
      • 4.1.5 CRC EEPROM Diagnostic Test - CRC16
      • 4.1.6 CRC EEPROM Diagnostic Test - CRC32
      • 4.1.7 CRC Flash Diagnostic Test - CRC16
      • 4.1.8 CRC Flash Diagnostic Test - CRC32
      • 4.1.9 Interrupt Frequency Test
      • 4.1.10 SRAM Checkerboard Diagnostic Test
      • 4.1.11 SRAM March C Minus Diagnostic Test
      • 4.1.12 STACK March C Minus Diagnostic test
      • 4.1.13 WATCHDOG Simple Timer Diagnostic Test
        • 4.1.13.1 Module description
          • 4.1.13.1.1 Definitions
          • 4.1.13.1.2 Enumerations
          • 4.1.13.1.3 Functions
        • 4.1.13.2 Definition Documentation
        • 4.1.13.3 Function Documentation
        • 4.1.13.4 Enumeration Type Documentation
      • 4.1.14 WATCHDOG Windowed Timer Diagnostic Test
    • 4.2 Class Documentation
    • 4.3 File Documentation

4.1.13.1.1 Definitions

  • #define PIRxBITS PIR3bits

  • #define F_CPU (1000000)

  • #define F_TIMER (F_CPU/4)

  • #define TMR0_OVERFLOW_TIME (0.001)

  • #define PERIOD_VALUE (uint16_t)(0xFFFF-(TMR0_OVERFLOW_TIME * F_TIMER))

  • #define TC_MAX_COUNT_BEFORE_ERROR (11U)

  • #define TC_MIN_COUNT_BEFORE_ERROR (5U)

  • #define WDR_SYNC_DELAY (3U)

  • #define WDTCWS_TEST (7U)

  • #define WDTCPS_TEST (6U)

  • #define WDTCCS_TEST (0U)

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