Doc Block Icon
The Data Sheet block provides quick access to device datasheets, errata documents, and product webpages.

When to use:

When to use:

  • Need quick access to device datasheet during model development
  • Checking peripheral register descriptions or pin mappings
  • Verifying electrical specifications or timing diagrams
  • Accessing silicon errata to understand known hardware limitations
  • Opening Microchip product webpage for additional resources

โœ— This block is never harmful:

  • Informational utility only โ€” no impact on generated code
  • Add to model for convenient documentation access
  • Remove if not needed โ€” purely a development aid

Overview

The Data Sheet block opens technical documentation for the currently selected Microchip device. It automatically detects the device from the MCHP Master block, downloads the corresponding PDF if needed, and opens it in the default system PDF viewer.

Parameters

ParameterTypeDescription
DOC_TypepopupDocument type: datasheet, errata, or www (product webpage)
DOC_FilePathtextPath to cached PDF file (read-only)
DOC_FileLastCheckTimetextLast update check timestamp (read-only)

Note: Parameters are managed automatically. DOC_Type can be changed to switch between datasheet, errata, and product webpage.

Operation

Opening Documentation

Double-click the block to open the document type specified in DOC_Type:

  • datasheet: Opens device datasheet PDF
  • errata: Opens device silicon errata PDF
  • www: Opens Microchip product webpage in web browser

The block annotation displays the current device ID from the MCHP Master block.

Automatic Download and Caching

When opened, the block:

  1. Detects the device ID from the MCHP Master block
  2. Searches for the document on the Microchip website
  3. Downloads the PDF to Documents/MCHP_Datasheets/ (Windows) or ~/Documents/MCHP_Datasheets/ (Linux/Mac)
  4. Opens the PDF in the default system viewer
  5. Stores file reference in mchp.prefs preference table

Files are named: {chip}_{doctype}_DS{number}.pdf (e.g., dsPIC33CK256MP508_datasheet_DS70005349.pdf)

Update Checking

  • Cached files are reused if less than 15 days old
  • After 15 days, the block checks for updated documentation online
  • If download fails, the block falls back to the cached file or opens the browser search page

Examples

Accessing PWM register details:

  1. Add a Data Sheet block to your model
  2. Ensure MCHP Master block has the target device selected (e.g., dsPIC33CK256MP508)
  3. Double-click the Data Sheet block
  4. The device datasheet PDF opens automatically
  5. Navigate to the PWM chapter and review register descriptions

Switching to errata:

  1. Open the block mask parameters
  2. Change DOC_Type from datasheet to errata
  3. Double-click the block to open the errata PDF

Troubleshooting

IssueSolution
PDF doesn’t openInstall a PDF viewer (e.g., Adobe Reader)
Block shows “Undefined”Add an MCHP Master block and select a device
Download failsCheck internet connection; cached file will be used if available
Wrong datasheetVerify the correct device is selected in the MCHP Master block
  • MCHP Master: Device selection and project configuration