SAM4S16C Atmel Corporation, SAM4S16C Datasheet - Page 240

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.1
11.11.1.2
11.11.1.3
240
240
SAM4S
SAM4S
MPU Mismatch
Updating an MPU Region
Updating an MPU region using separate words
Table 11-37
unprivileged software.
Table 11-37. AP Encoding
When an access violates the MPU permissions, the processor generates a memory manage-
ment fault, see
“MMFSR: Memory Management Fault Status Subregister”
To update the attributes for an MPU region, update the MPU_RNR, MPU_RBAR and
MPU_RASR registers. Each register can be programed separately, or a multiple-word write can
be used to program all of these registers. MPU_RBAR and MPU_RASR aliases can be used to
program up to four regions simultaneously using an STM instruction.
Simple code to configure one region:
Disable a region before writing new region settings to the MPU, if the region being changed was
previously enabled . For example:
AP[2:0]
000
001
010
011
100
101
110
111
; R1 = region number
; R2 = size/enable
; R3 = attributes
; R4 = address
LDR R0,=MPU_RNR
STR R1, [R0, #0x0]
STR R4, [R0, #0x4]
STRH R2, [R0, #0x8]
STRH R3, [R0, #0xA]
; R1 = region number
; R2 = size/enable
; R3 = attributes
; R4 = address
Privileged
Permissions
No access
RW
RW
RW
Unpredictable
RO
RO
RO
shows the AP encodings that define the access permissions for privileged and
“Exceptions and Interrupts”
Unprivileged
Permissions
No access
No access
RO
RW
Unpredictable
No access
RO
RO
; Region Attribute
; 0xE000ED98, MPU region number register
; Region Number
; Region Base Address
; Region Size and Enable
Description
All accesses generate a permission fault
Access from privileged software only
Writes by unprivileged software generate a
permission fault
Full access
Reserved
Reads by privileged software only
Read only, by privileged or unprivileged software
Read only, by privileged or unprivileged software
. The MMFSR indicates the cause of the fault. See
for more information.
11100A–ATARM–28-Oct-11
11100A–ATARM–28-Oct-11

Related parts for SAM4S16C