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.3 File Documentation
  4. 4.3.36 source/diag_wdt_windowed_timer.c File Reference
  5. 4.3.36.2 Macros

  • 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.2 Class Documentation
    • 4.3 File Documentation
      • 4.3.1 source/diag_clock_sosc_freq.c File Reference
      • 4.3.2 source/diag_clock_sosc_freq.h File Reference
      • 4.3.3 source/diag_clockline_freq.c File Reference
      • 4.3.4 source/diag_clockline_freq.h File Reference
      • 4.3.5 source/diag_cpu_program_counter.c File Reference
      • 4.3.6 source/diag_cpu_program_counter.h File Reference
      • 4.3.7 source/diag_cpu_registers.c File Reference
      • 4.3.8 source/diag_cpu_registers.h File Reference
      • 4.3.9 source/diag_crc16_lookup_table.h File Reference
      • 4.3.10 source/diag_crc32_lookup_table.h File Reference
      • 4.3.11 source/diag_eeprom_crc16.h File Reference
      • 4.3.12 source/diag_eeprom_crc16_direct.c File Reference
      • 4.3.13 source/diag_eeprom_crc16_lookup.c File Reference
      • 4.3.14 source/diag_eeprom_crc32.h File Reference
      • 4.3.15 source/diag_eeprom_crc32_direct.c File Reference
      • 4.3.16 source/diag_eeprom_crc32_lookup.c File Reference
      • 4.3.17 source/diag_flash_crc16.h File Reference
      • 4.3.18 source/diag_flash_crc16_direct.c File Reference
      • 4.3.19 source/diag_flash_crc16_lookup.c File Reference
      • 4.3.20 source/diag_flash_crc32.h File Reference
      • 4.3.21 source/diag_flash_crc32_direct.c File Reference
      • 4.3.22 source/diag_flash_crc32_lookup.c File Reference
      • 4.3.23 source/diag_intr_freq.c File Reference
      • 4.3.24 source/diag_intr_freq.h File Reference
      • 4.3.25 source/diag_memory_types.h File Reference
      • 4.3.26 source/diag_sram_checkerboard.c File Reference
      • 4.3.27 source/diag_sram_checkerboard.h File Reference
      • 4.3.28 source/diag_sram_march_types.h File Reference
      • 4.3.29 source/diag_sram_marchc_minus.c File Reference
      • 4.3.30 source/diag_sram_marchc_minus.h File Reference
      • 4.3.31 source/diag_stack_march_types.h File Reference
      • 4.3.32 source/diag_stack_marchc_minus.c File Reference
      • 4.3.33 source/diag_stack_marchc_minus.h File Reference
      • 4.3.34 source/diag_wdt_simple_timer.c File Reference
      • 4.3.35 source/diag_wdt_simple_timer.h File Reference
      • 4.3.36 source/diag_wdt_windowed_timer.c File Reference
        • 4.3.36.1 Functions
        • 4.3.36.2 Macros
        • 4.3.36.3 Variables
        • 4.3.36.4 Detailed Description
      • 4.3.37 source/diag_wdt_windowed_timer.h File Reference

4.3.36.2 Macros

  • #define PIRxBITS PIR3bits

  • #define F_CPU (1000000U)

  • #define F_TIMER (F_CPU/4U)

  • #define TMR0_OVERFLOW_TIME (0.001)

  • #define PERIOD_VALUE (uint16_t)(0xFFFFU-(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)

  • #define WDT_WINDOW (3U)

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