AN1212 Freescale Semiconductor / Motorola, AN1212 Datasheet - Page 36

no-image

AN1212

Manufacturer Part Number
AN1212
Description
J1850 Multiplex Bus Communication Using the MC68HC705C8 and the SC371016 J1850 Communications Interface (JCI)
Manufacturer
Freescale Semiconductor / Motorola
Datasheet
AN1212/D
027B
027D
027F
0282
0283
0285
0287
028A
0300
0300
0302
0304
0306
0308
030A
030C
030F
0312
0313
0315
0317
0319
031A
031C
031E
36
A603
B730
CD01E1
81
A6E0
B730
CD01E1
81
B630
B733
B632
B735
A602
B730
CD01E1
CD01E1
5F
B632
A100
2712
5C
A120
270D
5C
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
*** Flush Rx FIFO Subroutine ***
RXFLUSH: lda
*** Flush Tx FIFO Subroutine ***
TXFLUSH: lda
************************************************************************
*
*
*
************************************************************************
*** Received Message Interrupt Service Routine ***
J1850 Multiplex Bus Communication Using the MC68HC705C8
and the SC371016 J1850 Communications Interface (JCI)
Freescale Semiconductor, Inc.
For More Information On This Product,
sta
jsr
rts
sta
jsr
rts
org
lda
sta
lda
sta
lda
sta
jsr
jsr
clrx
lda
cmp
beq
incx
cmp
beq
incx
Received Message Interrupt Service Routine
#flshfifo
command
TRANSFER
#flshtx
command
TRANSFER
service
command
cmdtemp
data
datatemp
#flshbyte
command
TRANSFER
TRANSFER
data
#id1
getmsg
#id2
getmsg
Go to: www.freescale.com
;Load "flush Rx FIFO" command
;into RAM location "command"
;Call "TRANSFER" subroutine to transfer
;data and command bytes to JCI
:Return From Subroutine
;Load "flush Tx FIFO" command
:into RAM location "command"
;Call TRANSFER subroutine to transfer
;data and command bytes to JCI
;Return From Subroutine
;Save current command byte in
;temporary storage location
;Save current data bye in
;temporary storage location
;Load "flush first byte in FIFO" command
;in command storage location
;Call TRANSFER subroutine, retrieving
;Status and pri/type data byte.
;Call TRANSFER subroutine, retrieving
;Status and target i.d. data byte
;Clear X-Register
;Load target i.d. byte into acc.
;Compare target i.d. with first message
;buffer i.d., if match, get message
;Increment X-Register
;Compare target i.d. with next message
;buffer i.d., if match, get message
;Increment X-Register
MOTOROLA
*
*
*

Related parts for AN1212