SAM3N2B Atmel Corporation, SAM3N2B Datasheet - Page 337

no-image

SAM3N2B

Manufacturer Part Number
SAM3N2B
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of SAM3N2B

Flash (kbytes)
128 Kbytes
Pin Count
64
Max. Operating Frequency
48 MHz
Cpu
Cortex-M3
# Of Touch Channels
23
Hardware Qtouch Acquisition
No
Max I/o Pins
47
Ext Interrupts
47
Quadrature Decoder Channels
2
Usb Speed
No
Usb Interface
No
Spi
3
Twi (i2c)
2
Uart
4
Ssc
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
10
Adc Resolution (bits)
10
Adc Speed (ksps)
384
Resistive Touch Screen
No
Dac Channels
1
Dac Resolution (bits)
10
Temp. Sensor
No
Crypto Engine
No
Sram (kbytes)
16
Self Program Memory
YES
Dram Memory
No
Nand Interface
No
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
no / no
Timers
6
Output Compare Channels
6
Input Capture Channels
3
Pwm Channels
4
32khz Rtc
Yes
Calibrated Rc Oscillator
Yes
23.5.1
23.5.2
11011A–ATARM–04-Oct-10
4/8/12 MHz Fast RC Oscillator
4/8/12 MHz Fast RC Oscillator Clock Frequency Adjustment
After reset, the 4/8/12 MHz Fast RC Oscillator is enabled with the 4 MHz frequency selected and
it is selected as the source of MAINCK. MAINCK is the default clock selected to start up the
system.
The Fast RC Oscillator 8 and 12 MHz frequencies are calibrated in production. Note that is not
the case for the 4 MHz frequency.
Please refer to the “DC Characteristics” section of the product datasheet.
The software can disable or enable the 4/8/12 MHz Fast RC Oscillator with the MOSCRCEN bit
in the Clock Generator Main Oscillator Register (CKGR_MOR).
The user can also select the output frequency of the Fast RC Oscillator: either 4 MHz, 8 MHz or
12 MHz are available. It can be done through MOSCRCF bits in CKGR_MOR. When changing
this frequency selection, the MOSCRCS bit in the Power Management Controller Status Regis-
ter (PMC_SR) is automatically cleared and MAINCK is stopped until the oscillator is stabilized.
Once the oscillator is stabilized, MAINCK restarts and MOSCRCS is set.
When disabling the Main Clock by clearing the MOSCRCEN bit in CKGR_MOR, the MOSCRCS
bit in the Power Management Controller Status Register (PMC_SR) is automatically cleared,
indicating the Main Clock is off.
Setting the MOSCRCS bit in the Power Management Controller Interrupt Enable Register
(PMC_IER) can trigger an interrupt to the processor.
It is recommended to disable the Main Clock as soon as the processor no longer uses it and
runs out of SLCK or PLLCK.
The CAL4, CAL8 and CAL12 values in the PMC_OCR registers are the default values set by
Atmel during production. These values are stored in a specific Flash memory area different from
the main memory plane. These values cannot be modified by the user and cannot be erased by
a Flash erase command or by the ERASE pin. Values written by the user's application in the
PMC_OCR register are reset after each power up or peripheral reset.
It is possible for the user to adjust the main RC oscillator frequency through PMC_OCR register.
By default, SEL4/8/12 are low, so the RC oscillator will be driven with Flash calibration bits which
are programmed during chip production.
The user can adjust the trimming of the 4/8/12 MHz Fast RC oscillator through this register in
order to obtain more accurate frequency (to compensate derating factors such as temperature
and voltage).
In order to calibrate the 4 MHz Fast RC oscillator frequency, SEL4 must be set to 1 and a valid
frequency value must be configured in CAL4. Likewise, SEL8/12 must be set to 1 and a trim
value must be configured in CAL8/12 in order to adjust the 8/12 MHz frequency oscillator.
However, the adjustment can not be done to the frequency from which the oscillator is operating.
For example, while running from a frequency of 8 MHz, the user can adjust the 4 and 12 MHz
frequency but not the 8 MHz.
SAM3N
337

Related parts for SAM3N2B