| 数据搜索系统,热门电子元器件搜索 |
|
AT89C51CC02CA-RATUM 数据表(PDF) 80 Page - ATMEL Corporation |
|
|
|||||||||||||||||||||||||||||
AT89C51CC02CA-RATUM 数据表(HTML) 80 Page - ATMEL Corporation |
|
80 / 156 page ![]() 80 AT/T89C51CC02 4126J–CAN–05/06 Working on Message Objects The Page message object register (CANPAGE) is used to select one of the 4 message objects. Then, message object Control (CANCONCH) and message object Status (CANSTCH) are available for this selected message object number in the corresponding SFRs. A single register (CANMSG) is used for the message. The mailbox pointer is managed by the Page message object register with an auto-incrementation at the end of each access. The range of this counter is 8. Note that the maibox is a pure RAM, dedicated to one message object, without overlap. In most cases, it is not necessary to transfer the received message into the standard memory. The message to be transmitted can be built directly in the maibox. Most calcu- lations or tests can be executed in the mailbox area which provide quicker access. CAN Controller Management In order to enable the CAN Controller correctly the following registers have to be initialized: • General Control (CANGCON), • bit Timing (CANBT 1, 2 & 3), • And for each page of 15 message objects: – Message object Control (CANCONCH), – Message object Status (CANSTCH). During operation, the CAN Enable message object registers (CANEN) gives a fast over- view of the message objects availability. The CAN messages can be handled by interrupt or polling modes. A message object can be configured as follows: • Transmit message object • Receive message object • Receive buffer message object • Disable This configuration is made in the CONCH field of the CANCONCH register (See Table 54). When a message object is configured, the corresponding ENCH bit of CANEN register is set. Table 54. Configuration for CONCH1:2 When a Transmitter or Receiver action of a message object is completed, the corre- sponding ENCH bit of the CANEN register is cleared. In order to re-enable the message object, it is necessary to re-write the configuration in CANCONCH register. Non-consecutive message objects can be used for all three types of message objects (Transmitter, Receiver and Receiver buffer). CONCH 1 CONCH 2 Type of Message Object 00 Disable 0 1 Transmitter 10 Receiver 1 1 Receiver buffer |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |