Rainbow-electronics T89C51CC01 Manual do Utilizador Página 97

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 149
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 96
97
T89C51CC01
Rev. D – 17-Dec-01
No default value after reset
Table 55. CANSTCH Register
CANSTCH (S:B2h)
CAN message object Status
Register
3-0 DLC3:0
Data length code
Number of bytes in the data field of the message.
The range of DLC is from 0 up to 8.
This value is updated when a frame is received (data or remote frame).
If the expected DLC differs from the incoming DLC, a warning appears in the
CANSTCH register.
Bit
Number
Bit
Mnemonic Description
76543210
DLCW TXOK RXOK BERR SERR CERR FERR AERR
Bit
Number
Bit
Mnemonic Description
7DLCW
Data length code warning
The incoming message does not have the DLC expected. Whatever the frame
type, the DLC field of the CANCONCH register is updated by the received DLC.
6TXOK
Transmit OK
The communication enabled by transmission is completed.
When the controller is ready to send a frame, if two or more message objects are
enabled as producers, the lower index message object (0 to 13) is supplied first.
This flag can generate an interrupt.
5RXOK
Receive OK
The communication enabled by reception is completed.
In the case of two or more message object reception hits, the lower index
message object (0 to 13) is updated first.
This flag can generate an interrupt.
4 BERR
Bit error (only in transmission)
The bit value monitored is different from the bit value sent.
Exceptions:
the monitored recessive bit sent as a dominant bit during the arbitration field and
the acknowledge slot detecting a dominant bit during the sending of an error
frame.
This flag can generate an interrupt.
3 SERR
Stuff error
Detectionofmorethanfiveconsecutivebitswiththesamepolarity.
This flag can generate an interrupt.
2CERR
CRC error
The receiver performs a CRC check on each destuffed received message from
thestartofframeuptothedatafield.
If this checking does not match with the destuffed CRC field, a CRC error is set.
This flag can generate an interrupt.
Vista de página 96
1 2 ... 92 93 94 95 96 97 98 99 100 101 102 ... 148 149

Comentários a estes Manuais

Sem comentários