# Basic Dhrystone Project 1.4

## Purpose

This application measures how many dhrystone per seconds that the chip can produce under several different configurations.

## Hardware Requirements

This package can be used with the following Atmel evaluation kits:

- AT91SAM7S-EK
- AT91SAM7A3-EK
- AT91SAM7SE-EK
- AT91SAM7X-EK
- AT91SAM9261-EK
- AT91SAM9263-EK
- AT91SAM9RL-EK
- AT91SAM9XE-EK
- AT91SAM9G20-EK
- AT91CAP9-DK
- AT91CAP9-STK

## Description

When launched, this program displays a menu on the DBGU, enabling the user to choose between several options:

- Change the processor & master clock frequencies
- Enable or disable the processor instruction cache (SAM9 only)
- Start a dhrystone measurement

## Usage

1. Build the program and download it inside the evaluation board. Please refer to the SAM-BA User Guide, the GNU-Based Software Development application note or to the IAR EWARM User Guide, depending on your chosen solution.
2. On the computer, open the DBGU port with a terminal application (e.g. HyperTerminal on Microsoft Windows).

- Settings: 115200 bauds, 8 bits, 1 stop bit, no parity, no flow control.

3. Start the application.
4. The application menu should appear as shown below (example for AT91SAM9263):

   > `-- Basic Dhrystone Project 1.4 --
   > Menu :
   > ------
   > 0: Set PCK = 240 MHz, MCK = 120 MHz
   > 1: Set PCK = 120 MHz, MCK = 120 MHz
   > 2: Set PCK = 96 MHz, MCK = 48 MHz
   > 3: Set PCK = 48 MHz, MCK = 48 MHz
   > i: Toggle instruction cache
   > m: Perform measurements
   > h: Display this menu again
   > `

   Select one or more options to set the configuration of the device, then start a measurement by typing 'm'.

###### Atmel Corporation ©2008