Atmel website | ARM Community | AVR freaks | Technical Support
Banner
AT91SAM webmasterAvatar
Written by AT91SAM webmaster
 
Hits (432) || Votes (1) || Comments (0)
Created Wednesday, 18 August 2010
Last updated Wednesday, 18 August 2010
Title SAM3S PIO Alternate Function Example
Description SAM3S PIO Alternate Function Example Purpose
The PIO Alternate Function demonstrates how to alternate ERASE pin between system I/O mode and PIO mode.

Requirements
This package can only be used with at91sam3s-ek.

Description
The application shows the alternate function of ERASE pin, which extends PIO from a dedicated system I/O line. It first programs the internal flash with a walking pattern and then enable ERASE pin in PIO mode. After the erase operation, it check the content of flash, which is unchanged due to ERASE in PIO mode. In the next step, it put ERASE pin in system I/O mode,which will enable the erase function. The content of flash should be erased to 0xFF, which indicates the ERASE pin functioning.

The pins which are used by USB(DDM,DDP),JTAG(TCK,TMS,TDO,TDI) and Oscillator(XIN, XOUT,XIN32,XOUT32) could also be alternated between general purpose I/O and system I/O in the similar way.

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 and configure a terminal application (e.g. HyperTerminal on Microsoft Windows) with these settings:
- 115200 bauds
- 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):
-- PIO Alternate Function Example xxx --
-- AT91xxxxxx-xx
-- Compiled: xxx xx xxxx xx:xx:xx --

5.Perform erase operation following the application prompt.
Type of project Software
Development tools IAR EWARM
Product series
AT91SAM kits
More details
SAM3S Software Package
File 1282138313_PIO_alternate_function.zip (Size: 777 Kb | Hits: 9)

Comments

There are no comments for this item

Be the first to leave a comment

Login to leave a comment