User manual for the AT91SAM7S64 microcontroller covering hardware setup, I/O examples, peripheral configuration and programming via SAM‑BA.
This manual provides step‑by‑step instructions for using the AT91SAM7S64 microcontroller. It covers basic hardware connections, LED and key I/O examples, ADC measurements, serial (RS232/USART) communication, DMA, interrupt handling, address remapping, I2C, SPI, PWM, USB device operation and ISP programming.
The document also describes the memory map, flash and SRAM sizes, and how to program the device with the SAM‑BA bootloader. Code snippets are given in C for the Atmel Software Framework, showing register‑level access to peripherals and typical initialization sequences. This manual is written in Chinese.
| Flash ROM size | 32 KB – 256 KB |
|---|---|
| SRAM size | 8 KB – 32 KB |
| USB capability | USB 2.0 Device |
Write the LED mask to the PIOA_SODR register, e.g. *AT91C_PIOA_SODR = LED1; which sets the LED pin high.
Read the ADC channel data register, mask the lower 10 bits and scale the result, e.g. EXT_AD_Val[0] = (*AT91C_ADC_CDR0) & 0x3ff;
RO Base = 0x00200000; RW Base = 0x00202000; Image entry point = 0x00200000.