參數(shù)資料
型號(hào): T89C51RC2-SLBCL
廠商: Atmel Corp.
英文描述: 8-bit Microcontroller with 16 Kbytes/ 32 Kbytes FLASH
中文描述: 8位微控制器,帶有16字節(jié)/ 32千字節(jié)閃存
文件頁數(shù): 97/170頁
文件大?。?/td> 1927K
代理商: T89C51RC2-SLBCL
97
A/T89C51CC01
4129L–CAN–08/05
// Enable the CAN macro
CANGCON = 02h
Configure message object 3 in reception to receive only standard (11-bit identi-
fier) message 100h
2.
// Select the message object 3
CANPAGE = 30h
// Enable the interrupt on this message object
CANIE2 = 08h
// Clear the status and control register
CANSTCH = 00h
CANCONCH = 00h
// Init the acceptance filter to accept
only
message 100h in standard mode
CANIDT1 = 20h
CANIDT2 = 00h
CANIDT3 = 00h
CANIDT4 = 00h
CANIDM1 = FFh
CANIDM2 = FFh
CANIDM3 = FFh
CANIDM4 = FFh
// Enable channel in reception
CANCONCH = 88h // enable reception
Note:
To enable the CAN interrupt in reception:
EA = 1
ECAN = 1
CANGIE = 20h
3.
Send a message on the message object 12
// Select the message object 12
CANPAGE = C0h
// Enable the interrupt on this message object
CANIE1 = 01h
// Clear the Status register
CANSTCH = 00h;
// load the identifier to send (ex: 555h)
CANIDT1 = AAh;
CANIDT2 = A0h;
// load data to send
CANMSG = 00h
CANMSG = 01h
CANMSG = 02h
CANMSG = 03h
CANMSG = 04h
CANMSG = 05h
CANMSG = 06h
CANMSG = 07h
// configure the control register
CANCONCH = 18h
相關(guān)PDF資料
PDF描述
T89C51RC2-SLBCM 8-bit Microcontroller with 16 Kbytes/ 32 Kbytes FLASH
T89C51RC2-SLTCL 8-bit Microcontroller with 16 Kbytes/ 32 Kbytes FLASH
T89C51RC2-SLTCM 8-bit Microcontroller with 16 Kbytes/ 32 Kbytes FLASH
T89C51RC2-SLTIM 8-bit Microcontroller with 16 Kbytes/ 32 Kbytes FLASH
T89C51RD2 0 to 40MHz Flash Programmable 8-bit Microcontroller
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
T89C51RC2-SLBCM 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit Microcontroller with 16 Kbytes/ 32 Kbytes FLASH
T89C51RC2-SLBIL 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit Microcontroller with 16 Kbytes/ 32 Kbytes FLASH
T89C51RC2-SLBIM 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit Microcontroller with 16 Kbytes/ 32 Kbytes FLASH
T89C51RC2-SLSCL 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit Microcontroller with 16 Kbytes/ 32 Kbytes FLASH
T89C51RC2-SLSCM 制造商:ATMEL 制造商全稱:ATMEL Corporation 功能描述:8-bit Microcontroller with 16K/ 32K Bytes Flash