SPI Demos

# ARM7 Processor Peripheral Sample Demos

## Location

`$NitroSDK/build/demos/spi`

## Compilation

Move to the `$NitroSDK/build/demos/spi` and enter

> `% make`

Executable (.`.nef`, `.srl`) files will be generated in

> `$NitroSDK/build/demos/spi/sample_name/bin/platform/target/`

For example:

> `$NitroSDK/build/demos/spi/tp-1/bin/ARM9-TS/Release/`

## Execution

Navigate to the `$NitroSDK/build/demos/spi/sample_name/bin/platform/target/` directory and perform one of the following:

- Execute `*.nef`, `*.srl` with ensata.
- Load a `*.nlf` file with IS-NITRO-DEBUGGER and execute it
- Execute a `*.srl` file with IS-NITRO-DEBUGGER

## Description

`tp-1` | Displays touch panel input positions on the screen.
`tp-2` | Displays the track of touch panel input positions on the screen.
`mic-1` | Displays the microphone voice input status on the screen as a waveform.
`mic-2` | Displays microphone voice input status on the screen as a waveform, and outputs text data. The `mic2wav.exe` tool can convert the obtained data into a `wav` file.
`spiMonkey` | Displays touch panel and microphone input status on the screen while playing BGM.
`spiMonkey2` | Displays touch panel and microphone input status on the screen while playing BGM. Unlike `spiMonkey`, it uses automatic sampling for microphone sampling.
`pm-1` | Enters sleep mode or power save mode by pressing the power button or closing the cover.

## Operation

``mic-1`, `mic-2`, `spiMonkey`, `spiMonkey2`, and `pm-1` do not function properly with ensata.
`tp-1`, `tp-2`, `spiMonkey`, and `spiMonkey2` attempt to read touch panel calibration values from the non-volatile memory (NVRAM) in the DS. If they do not succeed they will terminate with an exception. In this case, use the DS start menu that is built into the DS to store calibration results in NVRAM.`

## See Also

`SPI Function List`

## Revision History

05/10/2005 Added information about `spiMonkey2`
03/02/2005 Revised descriptions to reflect current support environment conditions.
08/17/2004 Standardized the notation of the IS-NITRO-EMULATOR.
08/03/2004 Added pm-1.
07/10/2004 Changed from `.bin` to `.srl.`
06/18/2004 Initial Version

CONFIDENTIAL