AT89C51CC01 Atmel Corporation, AT89C51CC01 Datasheet - Page 93
AT89C51CC01
Manufacturer Part Number
AT89C51CC01
Description
Manufacturer
Atmel Corporation
Datasheets
1.AT89C51CC01.pdf
(167 pages)
2.AT89C51CC01.pdf
(12 pages)
3.AT89C51CC01.pdf
(32 pages)
4.AT89C51CC01.pdf
(29 pages)
Specifications of AT89C51CC01
Flash (kbytes)
32 Kbytes
Max. Operating Frequency
40 MHz
Cpu
8051-12C
Max I/o Pins
34
Uart
1
Can
1
Adc Channels
8
Adc Resolution (bits)
10
Adc Speed (ksps)
62.5
Sram (kbytes)
1.25
Eeprom (bytes)
2048
Self Program Memory
API
Operating Voltage (vcc)
3.0 to 5.5
Timers
4
Isp
UART/CAN
Watchdog
Yes
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
Company:
Part Number:
AT89C51CC01CA-IM
Manufacturer:
ATMEL
Quantity:
831
Company:
Part Number:
AT89C51CC01CA-RLTUM
Manufacturer:
ATMEL
Quantity:
4 000
Company:
Part Number:
AT89C51CC01CA-RLTUM
Manufacturer:
Atmel
Quantity:
3 136
Company:
Part Number:
AT89C51CC01CA-SLIM
Manufacturer:
ATMEL
Quantity:
11
Company:
Part Number:
AT89C51CC01CA-SLSUM
Manufacturer:
ATMEL
Quantity:
2 916
Part Number:
AT89C51CC01UA-RLTUM
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
Part Number:
AT89C51CC01UA-UM
Manufacturer:
ATMEL/爱特梅尔
Quantity:
20 000
4129N–CAN–03/08
2. Configure message object 3 in reception to receive only standard (11-bit identi-
Note:
3. Send a message on the message object 12
// Enable the CAN macro
fier) message 100h
// Select the message object 3
// Enable the interrupt on this message object
// Clear the status and control register
// Init the acceptance filter to accept only message 100h in standard mode
// Enable channel in reception
EA = 1
ECAN = 1
CANGIE = 20h
// Select the message object 12
// Enable the interrupt on this message object
// Clear the Status register
// load the identifier to send (ex: 555h)
// load data to send
// configure the control register
CANGCON = 02h
CANPAGE = 30h
CANIE2 = 08h
CANSTCH = 00h
CANCONCH = 00h
CANIDT1 = 20h
CANIDT2 = 00h
CANIDT3 = 00h
CANIDT4 = 00h
CANIDM1 = FFh
CANIDM2 = FFh
CANIDM3 = FFh
CANIDM4 = FFh
CANCONCH = 88h // enable reception
CANPAGE = C0h
CANIE1 = 01h
CANSTCH = 00h;
CANIDT1 = AAh;
CANIDT2 = A0h;
CANMSG = 00h
CANMSG = 01h
CANMSG = 02h
CANMSG = 03h
CANMSG = 04h
CANMSG = 05h
CANMSG = 06h
CANMSG = 07h
CANCONCH = 18h
To enable the CAN interrupt in reception:
93