SAMV71 Xplained Ultra Software Package 1.4

Peripheral Protect Example

Purpose

The Peripheral Protect example demonstrates how to prevent a program from corrupting a PIO controller behaviour.

Requirements

This package can be used with SAM V71 Xplained Ultra board.

Description

The application shows the protective mechanism of the PIO controller. The example enables or disables write-protection of PIOB user interfaces. When the write-protection is enabled, any write attempt to the write-protected registers will be detected and the write operation aborts. So the value of the register won't be modified. Besides, the Write Protect Status Register will indicate the offset address of the register.

Usage

  1. Build the program and download it inside the SAM V71 Xplained Ultra board. Please refer to the Getting Started with SAM V71 Microcontrollers.pdf
  2. On the computer, open and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:
    • 115200 baud rate
    • 8 bits of data
    • No parity
    • 1 stop bit
    • No flow control
  3. Start application.
  4. In the terminal window, the following text should appear (values depend on the board and chip used):
          -- Peripheral Protect Example xxx --
          -- SAMxxxxx-xx
          -- Compiled: xxx xx xxxx xx:xx:xx --
    
  5. Press one of the keys listed in the menu to perform the corresponding action.

References

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines