SAM4S16C Atmel Corporation, SAM4S16C Datasheet - Page 61

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
11100A–ATARM–28-Oct-11
11100A–ATARM–28-Oct-11
Directly Accessing an Alias Region
Figure 11-4
the SRAM bit-band region:
Figure 11-4. Bit-band Mapping
Writing to a word in the alias region updates a single bit in the bit-band region.
Bit[0] of the value written to a word in the alias region determines the value written to the tar-
geted bit in the bit-band region. Writing a value with bit[0] set to 1 writes a 1 to the bit-band bit,
and writing a value with bit[0] set to 0 writes a 0 to the bit-band bit.
Bits[31:1] of the alias word have no effect on the bit-band bit. Writing 0x01 has the same effect as
writing 0xFF. Writing 0x00 has the same effect as writing 0x0E.
Reading a word in the alias region:
• Bit_band_base is the starting address of the alias region.
• Byte_offset is the number of the byte in the bit-band region that contains the targeted bit.
• Bit_number is the bit position, 0-7, of the targeted bit.
• The alias word at 0x23FFFFE0 maps to bit[0] of the bit-band byte at 0x200FFFFF: 0x23FFFFE0 =
• The alias word at 0x23FFFFFC maps to bit[7] of the bit-band byte at 0x200FFFFF: 0x23FFFFFC =
• The alias word at 0x22000000 maps to bit[0] of the bit-band byte at 0x20000000: 0x22000000 =
• The alias word at 0x2200001C maps to bit[7] of the bit-band byte at 0x20000000: 0x2200001C =
• 0x00000000 indicates that the targeted bit in the bit-band region is set to 0
• 0x00000001 indicates that the targeted bit in the bit-band region is set to 1
0x22000000 + (0xFFFFF*32) + (0*4).
0x22000000 + (0xFFFFF*32) + (7*4).
0x22000000 + (0*32) + (0 *4).
0x22000000+ (0*32) + (7*4).
7
7
0x23FFFFFC
0x2200001C
6
6
5
5
0x200FFFFF
0x20000003
shows examples of bit-band mapping between the SRAM bit-band alias region and
4
4
3
3
0x23FFFFF8
0x22000018
2
2
1
1
0
0
7
7
0x23FFFFF4
0x22000014
6
6
5
5
0x200FFFFE
0x20000002
4
4
1 MB SRAM bit-band region
3
3
0x23FFFFF0
0x22000010
2
2
32 MB alias region
1
1
0
0
7
7
0x23FFFFEC
0x2200000C
6
6
5
5
0x200FFFFD
0x20000001
4
4
3
3
0x23FFFFE8
0x22000008
2
2
1
1
0
0
7
7
0x23FFFFE4
0x22000004
6
6
5
5
0x200FFFFC
0x20000000
4
4
3
3
0x23FFFFE0
0x22000000
2
2
SAM4S
SAM4S
1
1
0
0
61
61

Related parts for SAM4S16C