ATmega48 Automotive Atmel Corporation, ATmega48 Automotive Datasheet - Page 133

no-image

ATmega48 Automotive

Manufacturer Part Number
ATmega48 Automotive
Description
Manufacturer
Atmel Corporation

Specifications of ATmega48 Automotive

Flash (kbytes)
4 Kbytes
Pin Count
32
Max. Operating Frequency
16 MHz
Cpu
8-bit AVR
# Of Touch Channels
12
Hardware Qtouch Acquisition
No
Max I/o Pins
23
Ext Interrupts
24
Usb Speed
No
Usb Interface
No
Spi
2
Twi (i2c)
1
Uart
1
Graphic Lcd
No
Video Decoder
No
Camera Interface
No
Adc Channels
8
Adc Resolution (bits)
10
Adc Speed (ksps)
15
Analog Comparators
1
Resistive Touch Screen
No
Temp. Sensor
No
Crypto Engine
No
Sram (kbytes)
0.5
Eeprom (bytes)
256
Self Program Memory
NO
Dram Memory
No
Nand Interface
No
Picopower
No
Temp. Range (deg C)
-40 to 125
I/o Supply Class
2.7 to 5.5
Operating Voltage (vcc)
2.7 to 5.5
Fpu
No
Mpu / Mmu
no / no
Timers
3
Output Compare Channels
6
Input Capture Channels
1
Pwm Channels
6
32khz Rtc
Yes
Calibrated Rc Oscillator
Yes
7701E–AVR–02/11
• Bit 3..2 – USICS1..0: Clock Source Select
These bits set the clock source for the shift register and counter. The data output latch
ensures that the output is changed at the opposite edge of the sampling of the data input
(DI/SDA) when using the external clock source (USCK/SCL). When the software strobe or
timer/counter 0 compare match clock option is selected, the output latch is transparent and,
therefore, the output is changed immediately. Clearing the USICS1..0 bits enables the soft-
ware strobe option. When using this option, writing a logical one to the USICLK bit clocks both
the shift register and the counter. For the external clock source (USICS1 = 1), the USICLK bit
is no longer used as a strobe, but selects between external clocking and software clocking by
the USITC strobe bit.
Table 16-2 on page 133
and the clock source used for the shift register and the 4-bit counter.
Table 16-2.
• Bit 1 – USICLK: Clock Strobe
Writing a logical one to this bit location strobes the shift register to shift one step, and the
counter to increment by one, provided that the USICS1..0 bits are set to zero, and by doing so,
the software clock strobe option is selected. The output will change immediately when the
clock strobe is executed, i.e., in the same instruction cycle. The value shifted into the shift reg-
ister is sampled during the previous instruction cycle. The bit will be read as zero.
When an external clock source is selected (USICS1 = 1), the USICLK function is changed
from a clock strobe to a clock select register. Setting the USICLK bit in this case will select the
USITC strobe bit as the clock source for the 4-bit counter (see
• Bit 0 – USITC: Toggle Clock Port Pin
Writing a logical one to this bit location toggles the USCK/SCL value either from 0 to 1, or from
1 to 0. The toggling is independent of the setting in the data direction register, but if the PORT
value is to be shown on the pin, DDRE4 must be set as output (to one). This feature allows
easy clock generation when implementing master devices. The bit will be read as zero.
When an external clock source is selected (USICS1 = 1) and the USICLK bit is set to one, writ-
ing to the USITC strobe bit will directly clock the 4-bit counter. This allows an early detection of
when the transfer is done when operating as a master device.
USICS1
0
0
0
1
1
1
1
USICS0
Relations between the USICS1..0 and USICLK Setting
0
0
1
0
1
0
1
USICLK
shows the relationship between the USICS1..0 and USICLK settings
X
0
1
0
0
1
1
Atmel ATtiny24/44/84 [Preliminary]
Shift Register Clock Source
No Clock
Software clock strobe
(USICLK)
Timer/Counter0 Compare
Match
External, positive edge
External, negative edge
External, positive edge
External, negative edge
Table 16-2 on page
4-bit Counter Clock Source
No Clock
Software clock strobe
(USICLK)
Timer/Counter0 Compare
Match
External, both edges
External, both edges
Software clock strobe (USITC)
Software clock strobe (USITC)
133).
133

Related parts for ATmega48 Automotive