6 FAQs

  1. Is the existing code on the SAM D5x/E5x devices binary compatible to flash on the PIC32CK SG01/SG00/GC01/GC00 devices?

    Answer: No, it is not binary compatible.

  2. Can code developed for the SAM D5x/E5x be easily compiled for the PIC32CK SG01/SG00/GC01/GC00 without any significant changes? If not, what adjustments are needed?

    Answer: The code cannot be just compiled on the PIC32CK SG01/SG00/GC01/GC00 without appropriate changes. Firstly, the user has to identify the compatible peripherals on the PIC32CK SG01/SG00/GC01/GC00 with the help of this guide and then configure these peripherals accordingly to generate PLIB-level code.

  3. Do I have a reference for migrating a project from the SAM D5x/E5x family MCUs to the PIC32CK SG01/SG00/GC01/GC00 family?

    Answer: Yes. This document provides compatibility-specific details between the 2 devices families. Below are two snippets of code for both devices families which will help the user understands how to start with the migration. Specifically, refer to this migration guide which will help the user migrates the application from one family to another family.

    Figure 6-1. TC Capture Demo – SAM D5x/E5x Series

    The above code shows how to use the TC module in capture mode to measure the duty cycle and frequency of an external input. The TC channel is set to capture mode to measure the duty cycle and frequency of the PWM signal. This PWM signal is produced by another TC channel configured in compare mode. The output from the compare TC channel is connected to the input of the capture TC channel.

    Figure 6-2. TCC Capture Demo – PIC32CK SG01/SG00/GC01/GC00 Series

    The above code shows how to use the TCC module in capture mode to measure the duty cycle and frequency of an external input. The TCC channel is set to capture mode to measure the duty cycle and frequency of the PWM signal. This PWM signal is produced by another TCC channel configured in compare mode. The output from the compare TCC channel is connected to the input of the capture TCC channel.

    Both applications achieve the same objective with the help of different peripherals (TC and TCC).