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114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1
0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1
1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0
1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206
1 1 1 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0
1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0
0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0
1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0
1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0
1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0
Disable internal timer,wakeup disabled Initiallization mode request sleep mode request Initiallization mode request Wake up enabled Initiallization mode request sleep mode request,WAKE UP ENABLED Initiallization mode request Enable internal timer Initiallization mode request Sleep request Initiallization mode request timer+wakeup enable Initiallization mode request
Normal Initialization Sleep mode Initialization Sleep mode Initialization Sleep mode Initialization Normal Initialization Sleep mode Initialization Sleep mode Initialization
CAN0CTL0 RXFRM RXACT R(0) R(0)
CSWAI R(0)
SYNC R(0)
TIME R(0)
WUPE x
SLPRQ INITRQ Additional const x 1 INITAK,!CANE
0 0 0
0 0 0
X X 1
x x x
X X X
x 1 X
1 x X
0 0 0
SLPAK,!CANE SLPAK,!CANE !CANE
X X
X X
X X
1 1
1 X
X X
0 0
0 0
!CANE !CANE
x 1
1 x
X X
1 1
X X
X X
0 0
0 0
!LOOPB !LOOPB
CAN0CTL1 CANE 1
CLKSRC LOOPB LISTEN 0 X X X X
WUPM SLPAK INITAK X 0 1 INITRQ
1
X
X
X
X
x
1
0
1
X
X
X
X
1
0
0
1
X
0
1
X
X
0
0
1 0
X X
1 X
0 X
X X
X X
0 X
0 X
CANRFLG WUPIF CSCIF X X
RSTAT1 RSTAT0 TSTAT1 TSTAT0 OVRIF RXF X X X X 1
SLPRQ
MSCAN MODE Initialization mode
ACTIVE BIT CPU MODE INITRQ RUN MODE
Sleep mode req. Sleep mode req. POWERDOWN MODE
SLPRQ WUPE CSWAI
RUN MODE WAIT MODE WAIT MODE
TIMER ON FOR STAMP OPERATION MSCAN SYNC. TO CAN BUS
TIME SYNC
RUN MODE RUN MODE
MSCAN RECVG MESSEGE MSCAN REVD VALID MESSGE
RXACT RXFRM
RUN MODE RUN MODE
MSCAN MODE Initiallization mode ACK
ACTIVE BIT CPU MODE INITAK RUN
SLEEP MODE ACK (IF WUPE ON)
SLPAK
RUN,WAIT MODE
WAKE UP WITH SPEC. PULSE WIDTH
WUPM
RUN
LISTEN ONLY(ONLY REC. NO TRANS)
LISTEN
RUN
LOOPBACK MODE MSCAN STOPPED
LOOPB CANE
RUN RUN,WAIT,STOP
MSCAN MODE
ACTIVE BIT CPU MODE
CHECKING FOR REGESTER VALUES ARE VALID OR NOT VALID, IF VALID THEN CORRESPONDING CHANGES IN REGESTERS AND MODES CAN0CTL0 Previous MODE Initialization mode
RXFRM 0 0 0 0 0 X X
Disable Mode
Sleep Mode
Normal Mode
Loop Back Mode
Disable Mode Not In Initialization Mode
0 0 0
X X X
0 0 0
X X X
0 1 1
X X X X X
0 0 0 0 0
X X X X X
0 0 0 0 0
X X X X X
X X X X X
X X X X
0 0 0 1
X X 1 X
0 0 0 1
X X X X
X X X X
0 1
0 0
X X
0 0
X X
X X
CANRFLG
CANE 1 1 1 1 1 1 1 0 0 0
0 0 X X
Present values WUPE X X 1 X X X X X
TIME 0 0 0
X X X
CAN0CTL1 Previous Mode1 Initialization mode
RXACT CSWAI SYNC 0 0 0 0 0 0 0 0 0 If any one of this bit is one 0 0 0 0 0 0 X X X X X X
Present Values CLKSRC LOOPB LISTEN X X X X X X X X X X 0 1 X 1 0 X X X X 1 1 X X X X X X
0 0 0 0 0 0 0 0 X X
WUPM X X X X X X X X X
If any one of this bit is one
Previous Mode1 Initialization mode
WUPIF
Disable Mode Sleep Mode Not In Initialization Mode (Normal Mode)
Present Values CSCIF RSTAT1 RSTAT0
X
X
0
X 1 0 X
X X X X X
0 0 0 0
X
CANRIER Previous Mode1 Initialization mode
Disable Mode Sleep Mode Not In Initialization Mode
Disable Mode Sleep Mode Listen only Mode
TSTAT0
0
0
0 0 0 0 0 0 0 0 If any one of this bit is one
0 0 0 0
Present Values WUPIE X
CSCIE X
RSTATE1 RSTATE0 TSTATE1 TSTATE0 X X X X
X 1 0 X
X X X X
X X X X
X X X X
X X X X
X X X X
0 0
0 0
Present Values 0 0
0 0
0 0
TXE2 X
0
0
0
0
0
X
0
0
0
0
0
X
0
0
0
0
0
CANTFLG Previous Mode1 Initialization mode
0
TSTAT1
If Any bit is 1
If Any bit is 1 X
Not In Initialization Mode(Normal mode) 0 0
0 0
0 0
0 0
0 0
0
0 0
0 0
Present Values 0 0
0 0
0 0
TXEIE2 X
0
0
0
0
0
X
CANTIER Previous Mode1 Initialization mode
Disable Mode
If Any bit is 1
Sleep Mode Listen only Mode
0
0
0
0
0
0
0
0
0
0
If Any bit is 1
X If Any bit is 1 X
Not In Initialization Mode(Normal mode) 0 0
0 0
0 0
0 0
0 0
0
0 0
0 0
Present Values 0 0
0 0
0 0
ABTRQ2 X
0
0
0
0
0
X
0
0
0
0
0
X
0
0
0
0
0
CANTARQ Previous Mode1 Initialization mode
Disable Mode Sleep Mode Listen only Mode
If Any bit is 1
If Any bit is 1
If Any bit is 1 X
Not In Initialization Mode(Normal mode) 0
0
0
0
0
X
0 0
0 0
Present Values 0 0
0 0
0 0
ABTAK2 X
0 X If Any bit is 1 0 0
0 X
0 X
0 X
0 X
X
0 0
0 0
0 0
0 0
X X X
0 0
0 0
TX2 X
0
0
X
0 0 0
0 0 0
X X X X
CANTAAK Previous Mode1 Initialization mode
Disable Mode
Sleep Mode
CANTBSEL Previous Mode1 Initialization mode
Disable Mode
Present Values 0 0 0 0 0 0 We con't write in intialization Mode 0 0 0
Sleep Mode Not In Initialization Mode(Normal mode)
0 0 0
0 0 0
0 0 0 If Any bit is 1
OR NOT VALID, IF VALID THEN STERS AND MODES
Present values SLPRQ X 1 X X X X X X
bit is one
Status INITRQ 1 0 0 X 0 1 0 1
Additional const INITAK,!CANE SLPAK,!CANE WUPE,WUPIF !CANE CANE
Valid Valid Valid Not valid Valid Valid Not valid Valid
X X X
0 X X
X 0 1 1 0
0 1 0 1 0
0 0 X X
0 0 X X
Not Valid Not Valid Not Valid Not Valid
X X
X X
Valid Not Valid
WUPE,WUPIF CANE INITAK,!CANE SLPAK,!CANE,CANTFLAG=07
Valid Not Valid Valid Valid Valid Valid Not Valid Not Valid
Status SLPAK 0 0 1 0 0 0 0 X X
INITAK 0 0 1 0 0 0 0 X X
Additional const INITRQ SLPRQ !INTRQ,!SLPRQ !INTRQ,!SLPRQ !INTRQ,!SLPRQ !INTRQ,!SLPRQ
Valid Valid Not Valid Valid Valid Valid Not Valid Not Valid Not Valid Not Valid
OVRIF
Additional const
Status
RXF
X
X
INITRQ,INITAK
Not Valid
X 0 X X X
X 0 X X X
!CANE WUPE
Not Valid Valid Not Valid Valid Not Valid
OVRIFE X
RXFIE X
X 0 X X
X 0 X X
TXE1 X
TXE0 X
X
X
X
X
Additional const
Status
INITRQ,INITAK
Not Valid
!CANE WUPE,WUPIF
Not Valid Valid Not Valid Valid
Additional const
Status
INITRQ,INITAK
Not Valid
Error(Invalid assignment)
Not Valid
Disable Mode
Valid
Normal Mode
Not Valid
Error(Invalid assignment)
Not Valid
Error(Invalid assignment)
Not Valid
Normal Mode Error(Buffers are full, transmition not possible
WUPE,WUPIF
If Any bit is 1 X
X
If Any bit is 1 0
0
TXEIE1 X X
Present Mode
Valid
Additional const TXEIE0 X INITRQ,INITAK
Status Not Valid
X
Present Mode Error(Invalid assignment) Disable Mode
Not Valid
X
X
WUPE,WUPIF
If Any bit is 1 X
X
If Any bit is 1 0
0
Additional const ABTRQ11 ABTRQ0 X X INITRQ,INITAK X X
Valid Not Valid
Error(Invalid assignment)
Not Valid
Error(Invalid assignment)
Valid Normal Mode Not Valid Error(Buffers are full, transmition not possible Status Present Mode Not Valid
X X
Error(Invalid assignment) Disable Mode
WUPE,WUPIF
If Any bit is 1
Not Valid Valid
Normal Mode
Not Valid
Error(Invalid assignment) Error(Invalid assignment)
X
X
Not Valid
X
X
Valid
ABTAK1 X
Normal Mode
Normal Mode
Additional const
Status
ABTAK0 X INITRQ,INITAK
Not Valid
Error(User con' t write)
Not Valid Not Valid
Disable Mode Error(Invalid assignment)
Valid Not Valid
Normal Mode Sleep Mode
X
X
X X X
X X X
TX1 X
TX0 X
X
X
X X X X
X X X X
WUPE,WUPIF
Present Mode
Additional const
Status
INITRQ,INITAK
Not Valid
Error(Invalid assignment)
Not Valid
Disable Mode
Valid Not Valid Valid
Normal Mode Sleep Mode Normal Mode
WUPE,WUPIF CANTFLG CANTFLG
Present Mode
Present Mode
Additional Information
Initialization mode Sleep Mode Normal Mode Error Disable Mode Normal Mode Disable Mode Initialization mode
Any value & 01=01
Any value & 01=01
Sleep Mode Sleep Mode Normal Mode Normal Mode Intialization Mode Sleep Mode Error(At a time intrq & slprq can't be 1) Error(Synch bit must be 1) Error(It is not possible write) Error(It is not possible write) Power Down Mode Error(It is not possible write)
Any value & 01=01
Rxact and sync bits are not writable by user whenever mscan in normal mode accrding its state progamer has to set it.
Loop Back mode Error
Present Mode Initialization mode Sleep Mode Error Normal Mode Normal Mode Normal Mode Error(Invlid assignment) Disable Mode Disable Mode Error
SLPAK,INITAK bitsv not writable by user, whenever request bit in canctl0 is 1 then programer has to set corrsponding aknowledge bit in canctl1 is 1 At a time both loopb and LISEN are not set
We con't write this bits othere than Intialization mode
Present Mode
Error
We con't write this bits in Intialization Mode
Disable Mode Normal Mode Sleep Mode Normal Mode Error(Invlid assignment)
Present Mode
Error
We con't write this bits in Intialization Mode
Disable Mode Normal Mode Error Normal Mode
Present Mode Error(Invalid assignment)
We con't write this bits in Intialization Mode
Disable Mode Normal Mode Error(Invalid assignment)
In this mode transmition not possible
Error(Invalid assignment) Normal Mode Error(Buffers are full, transmition not possible Present Mode
Invalid assignment)
Disable Mode
We con't write this bits in Intialization Mode
Normal Mode
Invalid assignment)
Invalid assignment)
This Regester is read only regester
Normal Mode ers are full, transmition not possible Present Mode
Invalid assignment)
Disable Mode
Normal Mode
Invalid assignment)
Invalid assignment)
This Regester is read only regester
Normal Mode
Present Mode
r(User con' t write)
Disable Mode Invalid assignment)
Normal Mode Sleep Mode
Present Mode
Invalid assignment)
Disable Mode
Normal Mode Sleep Mode Normal Mode
This regester con't write by user in any Mode, only progam has to set particular bit according to particular request bit in CANARQ REGESTER
Before CANCTL0,CANCTL1 |(OR)= 01
Set regester values
CANCTL0&=07,CANRFLG&=3C,CANRIER&=3C,CANTFLG=07,CANTIER=CA CANCTL0=REG VALUE,CANCTL1 |=02 CANCTL0&=FE,CANCTL1&=FE(INITRQ=
CANCTL0&=FE,CANCTL1&=FE(INITRQ=INITAK=0) CANCTL0,CANCTL1 |(OR)= 01
CANCTL0&=07,CANRFLG&=3C,CANRIER&=3C,CANTFLG=07,CANTIER=CANTAR
CANCTL0=REG VALUE,CANCTL1&=FD(SLPRQ=SLPAK CANCTL0,CANCTL1 |(OR)= 01
NO CHANGES CANCTL0&=07,CANRFLG&=3C,CANRIER&=3C,CANTFLG=07,CANTIER=CANTAR CANCTL0=REG VALUE,CANCTL1&=FD(SLPRQ=SLPAK ```````````` ````````````
CommandButton1
`
CANCTL0&=07,CANRFLG&=3C,CANRIER&=3C,CANTFLG=07,CANTIER=CANTAR CANCTL1|=02 CANCTL1=REG VALUE CANCTL1=REG VALUE (Trans Mode Is Listen only Mode) CANCTL1=REG VALUE (Trans Mode Is Loop Back Mod CANCTL1=REG VALUE
CANRFLG.REG VALUE|=REG VALUE CANRFLG.REG VALUE|=REG VALUE
CANRFLG.REG VALUE|=REG VALUE CANRFLG.REG VALUE|=REG VALUE
CANTFLG.REG VALUE=REG VALUE Select particular transmit buffer a
CANTFLG.REG VALUE=REG VALUE Select particular transmit buffer a
CANTIER=REG VALUE
CANTIER=REG VALUE
CANTARQ=REG VALUE
CANTARQ=REG VALUE
CABTSEL=REG VALUE, select Buffer from available beff
CABTSEL=REG VALUE, select Buffer from available beff
=3C,CANTFLG=07,CANTIER=CANTARQ=CANTAAK=CANTBSEL=0 L0=REG VALUE,CANCTL1 |=02 L0&=FE,CANCTL1&=FE(INITRQ=INITAK=0)
NCTL1&=FE(INITRQ=INITAK=0)
CANTFLG=07,CANTIER=CANTARQ=CANTAAK=CANTBSEL=0
E,CANCTL1&=FD(SLPRQ=SLPAK=0)
NO CHANGES CANTFLG=07,CANTIER=CANTARQ=CANTAAK=CANTBSEL=0 E,CANCTL1&=FD(SLPRQ=SLPAK=0) ```````````` ````````````
CANTFLG=07,CANTIER=CANTARQ=CANTAAK=CANTBSEL=0
CTL1=REG VALUE ode) UE (Trans Mode Is Loop Back Mode) CTL1=REG VALUE
E Select particular transmit buffer and transmit data
E Select particular transmit buffer and transmit data
E, select Buffer from available beffers
E, select Buffer from available beffers
POSSIBILITIES FOR TRANSMITING AND RECEIVING MESSEGE CAN0CTL0 Previous MODE Initialization mode
Disable Mode Sleep Mode Normal Mode
RXFRM 0 0 0 0 X
Sleep Mode Not In Initialization Mode
CANTFLG
TIME 0 0 0 0 X
Present values WUPE SLPRQ X X X 1 1 X X X X X
X X X X
0 0 0 0
X X X X
0 1 X X
X X X 0
X
0
X
0
X
X
1
CANE 1 1 1 1 1
Present Values CLKSRC LOOPB LISTEN X X X X X X X 0 1 X 1 0 X X X
WUPIF
CSCIF
1 X
X X
CANRIER Previous Mode1 Initialization mode
SYNC 0 0 0 0 X
0 0 0 0
CANRFLG Previous Mode1
Sleep Mode Not In Initialization Mode (Normal Mode)
CSWAI 0 0 0 0 X
X X X X
CAN0CTL1 Previous Mode1 Initialization mode
RXACT 0 0 0 0 X
Present Values RSTAT1 RSTAT0 0 0
0 0
0 0 0 0 0 0
TSTAT1 0 0
WUPM X X X X X
SLPAK 0 0 0 0 0
TSTAT0
OVRIF
0 0
0 X
Present Values WUPIE 1 X
CSCIE X X
RSTATE1 RSTATE0 TSTATE1 TSTATE0 OVRIFE X X X X 0 X X X X X
Previous Mode1 Sleep Mode Not In Initialization Mode(Normal mode)
0
0
Present Values 0
0
0
0
0
0
0 0
0 0
Present Values 0 0
0 0
0 0
0
0
0
0
0
0 0
0 0
Present Values 0 0
0 0
0 0
0
0
0
0
0
X
X
0
0
Present Values 0
0
0
ABTAK2
ABTAK1
0 0
0 0
0 0
0 0
0 0
X X
X X
0
0
Present Values 0
0
0
TX2
TX1
0 0 0
0 0 0
0 0 0
0 0 0
X X X X
X X X X
CANTIER Previous Mode1 Sleep Mode Not In Initialization Mode(Normal mode) CANTARQ Previous Mode1 Initialization mode Sleep Mode Not In Initialization Mode(Normal mode)
CANTAAK Previous Mode1 Sleep Mode
CANTBSEL Previous Mode1 Disable Mode Sleep Mode Not In Initialization Mode(Normal mode)
0 0 0 If Any bit is 1
0
0
X
X If Any bit is 1
TXEIE2 X
TXEIE1 X
If Any bit is 1
ABTRQ2 ABTRQ11 X X
alues INITRQ 1 0 0 1 1 0 X 0 1
Additional const INITAK,!CANE SLPAK,!CANE WUPE,WUPIF CANE
WUPE,WUPIF CANE INITAK,!CANE
Status
Present Mode
Valid Valid Valid Valid Valid
Initialization mode Sleep Mode Normal Mode Normal Mode Initialization mode
Valid Valid Valid Valid
Sleep Mode Normal Mode Normal Mode Intialization Mode
Valid
Sleep Mode
SLPAK,!CANE,CANTF LAG=07 0
INITAK 0 0 0 0 0
Status
Present Mode
Additional const INITRQ SLPRQ !INTRQ,!SLPRQ !INTRQ,!SLPRQ !INTRQ,!SLPRQ
Valid Valid Valid Valid Valid
Initialization mode Sleep Mode Normal Mode Normal Mode Normal Mode
Additional const
Status
Present Mode
WUPE
Valid Valid
Normal Mode Normal Mode
Additional const
Status
Present Mode
WUPE,WUPIF
Valid Valid
Normal Mode Normal Mode
RXF 0 X
RXFIE 0 X
X
Additional const WUPE,WUPIF
Status Valid
Present Mode Normal Mode
Valid
Normal Mode
Additional const
Status
Present Mode
WUPE,WUPIF
Valid
Normal Mode
Valid
Normal Mode
If Any bit is 1
TXEIE0 X
If Any bit is 1
Additional const ABTRQ0 X
WUPE,WUPIF
X
Additional const
Status
Present Mode
Valid
Normal Mode
Valid
Normal Mode
Status
Present Mode
ABTAK0 X X
WUPE,WUPIF
Additional const
Valid Not Valid
Status
Normal Mode Sleep Mode
Present Mode
TX0 X X X X
WUPE,WUPIF CANTFLG CANTFLG
Valid Not Valid Valid
Normal Mode Sleep Mode Normal Mode
Additional Information
Before
Set regester values
Any value & 01=01
CANCTL0,CANCTL1 |(OR)= 01
CANCTL0&=07,CANRFLG
Any value & 01=01
CANCTL0,CANCTL1 |(OR)= 01
C CANCTL0&=07,CANRFLG&=3C
CANC Any value & 01=01 CANCTL0,CANCTL1 |(OR)= 01 Rxact and sync bits are not writable by user whenever mscan in normal mode accrding its state progamer has to set it.
SLPAK,INITAK bitsv not writable by user, whenever request bit in canctl0 is 1 then programer has to set corrsponding aknowledge bit in canctl1 is 1
`
CANCTL0&=07,CANRFLG&=3C
CANC
CANCTL0&=07,CANRFLG&=3C CANCTL1|=02 CANCTL1=REG VALUE (Trans Mod CAN
CANRFLG.REG VALUE|= CANRFLG.REG VALUE|=
CANRFLG.REG VALUE|= CANRFLG.REG VALUE|=
CANTFLG.REG VA
CANTFLG.REG VA
CANTIER=REG VALUE
CANTIER=REG VALUE
CANTARQ=REG VALUE
CANTARQ=REG VALUE
CABT
CABT
t regester values
CANCTL0&=07,CANRFLG&=3C,CANRIER&=3C,CANTFLG=07,CANTIER=CANTARQ=CANTAAK=CANTBSEL=0 CANCTL0=REG VALUE,CANCTL1 |=02 CANCTL0&=FE,CANCTL1&=FE(INITRQ=INITAK=0) CANCTL0&=FE,CANCTL1&=FE(INITRQ=INITAK=0) CTL0&=07,CANRFLG&=3C,CANRIER&=3C,CANTFLG=07,CANTIER=CANTARQ=CANTAAK=CANTBSEL=0
CANCTL0=REG VALUE,CANCTL1&=FD(SLPRQ=SLPAK=0) NO CHANGES CTL0&=07,CANRFLG&=3C,CANRIER&=3C,CANTFLG=07,CANTIER=CANTARQ=CANTAAK=CANTBSEL=0
CANCTL0=REG VALUE,CANCTL1&=FD(SLPRQ=SLPAK=0)
CTL0&=07,CANRFLG&=3C,CANRIER&=3C,CANTFLG=07,CANTIER=CANTARQ=CANTAAK=CANTBSEL=0 1|=02 1=REG VALUE (Trans Mode Is Listen only Mode) CANCTL1=REG VALUE (Trans Mode Is Loop Back Mode) CANCTL1=REG VALUE
CANRFLG.REG VALUE|=REG VALUE CANRFLG.REG VALUE|=REG VALUE
CANRFLG.REG VALUE|=REG VALUE CANRFLG.REG VALUE|=REG VALUE
CANTFLG.REG VALUE=REG VALUE Select particular transmit buffer and transmit data CANTFLG.REG VALUE=REG VALUE Select particular transmit buffer and transmit data
CANTIER=REG VALUE
CANTIER=REG VALUE
CANTARQ=REG VALUE
CANTARQ=REG VALUE
CABTSEL=REG VALUE, select Buffer from available beffers CABTSEL=REG VALUE, select Buffer from available beffers