AT90CAN32 Atmel Corporation, AT90CAN32 Datasheet - Page 172

no-image

AT90CAN32

Manufacturer Part Number
AT90CAN32
Description
Manufacturer
Atmel Corporation
Datasheets

Specifications of AT90CAN32

Flash (kbytes)
32 Kbytes
Pin Count
64
Max. Operating Frequency
16 MHz
Cpu
8-bit AVR
# Of Touch Channels
16
Hardware Qtouch Acquisition
No
Max I/o Pins
53
Ext Interrupts
8
Usb Speed
No
Usb Interface
No
Spi
1
Twi (i2c)
1
Uart
2
Can
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)
2
Eeprom (bytes)
1024
Self Program Memory
YES
Dram Memory
No
Nand Interface
No
Picopower
No
Temp. Range (deg C)
-40 to 85
I/o Supply Class
2.7 to 5.5
Operating Voltage (vcc)
2.7 to 5.5
Fpu
No
Mpu / Mmu
no / no
Timers
4
Output Compare Channels
8
Input Capture Channels
2
Pwm Channels
7
32khz Rtc
Yes
Calibrated Rc Oscillator
Yes

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT90CAN32-15AT
Manufacturer:
LUCENT
Quantity:
18
Part Number:
AT90CAN32-15AT
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT90CAN32-15AT1
Manufacturer:
MELEXIS
Quantity:
34 000
Part Number:
AT90CAN32-15AT1
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT90CAN32-15AZ
Manufacturer:
IXYS
Quantity:
2 400
Part Number:
AT90CAN32-15AZ
Manufacturer:
ATMEL
Quantity:
246
Part Number:
AT90CAN32-15AZ
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT90CAN32-15MT
Manufacturer:
Atmel
Quantity:
8 000
Part Number:
AT90CAN32-16AU
Manufacturer:
Atmel
Quantity:
10 000
Part Number:
AT90CAN32-16AU
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
AT90CAN32-16AUR
Manufacturer:
Atmel
Quantity:
10 000
16.2
16.2.1
172
SS Pin Functionality
AT90CAN32/64/128
Slave Mode
The following code examples show how to initialize the SPI as a Slave and how to perform a
simple reception.
Note:
When the SPI is configured as a Slave, the Slave Select (SS) pin is always input. When SS is
held low, the SPI is activated, and MISO becomes an output if configured so by the user. All
other pins are inputs. When SS is driven high, all pins are inputs, and the SPI is passive, which
Assembly Code Example
C Code Example
SPI_SlaveInit:
SPI_SlaveReceive:
void SPI_SlaveInit(void)
{
}
char SPI_SlaveReceive(void)
{
}
; Set MISO output, all others input
ldi
out
; Enable SPI
ldi
out
ret
; Wait for reception complete
sbis
rjmp
; Read received data and return
in
ret
/* Set MISO output, all others input */
DDR_SPI = (1<<DD_MISO);
/* Enable SPI */
SPCR = (1<<SPE);
/* Wait for reception complete */
while(!(SPSR & (1<<SPIF)));
/* Return data register */
return SPDR;
1. The example code assumes that the part specific header file is included.
r17,(1<<DD_MISO)
DDR_SPI,r17
r17,(1<<SPE)
SPCR,r17
SPSR,SPIF
SPI_SlaveReceive
r16,SPDR
(1)
(1)
7679H–CAN–08/08

Related parts for AT90CAN32