SAM4S16C Atmel Corporation, SAM4S16C Datasheet - Page 242

no-image

SAM4S16C

Manufacturer Part Number
SAM4S16C
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of SAM4S16C

Flash (kbytes)
1024 Kbytes
Pin Count
100
# Of Touch Channels
32
Hardware Qtouch Acquisition
No
Max I/o Pins
79
Ext Interrupts
79
Usb Transceiver
1
Quadrature Decoder Channels
2
Usb Speed
Full Speed
Usb Interface
Device
Spi
3
Twi (i2c)
2
Uart
4
Ssc
1
Sd / Emmc
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
16
Adc Resolution (bits)
12
Adc Speed (ksps)
1000
Analog Comparators
1
Resistive Touch Screen
No
Dac Channels
2
Dac Resolution (bits)
12
Temp. Sensor
Yes
Crypto Engine
No
Sram (kbytes)
128
Self Program Memory
YES
External Bus Interface
1
Dram Memory
No
Nand Interface
Yes
Picopower
No
Temp. Range (deg C)
-40 to 85
I/o Supply Class
1.8/3.3
Operating Voltage (vcc)
1.62 to 3.6
Fpu
No
Mpu / Mmu
Yes / No
Timers
6
Output Compare Channels
6
Input Capture Channels
6
Pwm Channels
4
32khz Rtc
Yes
Calibrated Rc Oscillator
Yes
11.11.1.5
11.11.1.6
11.11.1.7
242
242
SAM4S
SAM4S
Subregions
Example of SRD Use
MPU Design Hints And Tips
This can be done in two words for pre-packed information. This means that the MPU_RBAR
contains the required region number and had the VALID bit set to 1. See
Address Register”
Use an STM instruction to optimize this:
Regions of 256 bytes or more are divided into eight equal-sized subregions. Set the correspond-
ing bit in the SRD field of the MPU_RASR field to disable a subregion. See
Attribute and Size Register”
most significant bit controls the last subregion. Disabling a subregion means another region
overlapping the disabled range matches instead. If no other enabled region overlaps the dis-
abled subregion, the MPU issues a fault.
Regions of 32, 64, and 128 bytes do not support subregions. With regions of these sizes, the
SRD fieldmust be set to 0x00, otherwise the MPU behavior is unpredictable.
Two regions with the same base address overlap. Region 1 is 128 KB, and region 2 is 512 KB.
To ensure the attributes from region 1 apply to the first 128 KB region, set the SRD field for
region 2 to b00000011 to disable the first two subregions, as in
Figure 11-12. SRD Use
To avoid unexpected behavior, disable the interrupts before updating the attributes of a region
that the interrupt handlers might access.
; R1 = address and region number in one
; R2 = size and attributes in one
LDR R0, =MPU_RBAR
STR R1, [R0, #0x0]
STR R2, [R0, #0x4]
; R1 = address and region number in one
; R2 = size and attributes in one
LDR R0,=MPU_RBAR
STM R0, {R1-R2}
Base address of both regions
. Use this when the data is statically packed, for example in a boot loader:
. The least significant bit of SRD controls the first subregion, and the
; 0xE000ED9C, MPU Region Base register
; Region base address and
; region number combined with VALID (bit 4) set to 1
; Region Attribute, Size and Enable
; 0xE000ED9C, MPU Region Base register
; Region base address, region number and VALID bit,
; and Region Attribute, Size and Enable
Region 1
Disabled subregion
Disabled subregion
Region 2, with
subregions
Figure 11-12
512KB
448KB
384KB
320KB
256KB
192KB
128KB
Offset from
base address
64KB
“MPU Region Base
11100A–ATARM–28-Oct-11
11100A–ATARM–28-Oct-11
0
below:
“MPU Region

Related parts for SAM4S16C