AN1212 Freescale Semiconductor / Motorola, AN1212 Datasheet - Page 35

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
0243
0246
0249
024C
024E
0251
0253
0255
0256
0258
025A
025C
025E
0260
0262
0263
0265
0267
0269
026B
026E
026F
0271
0273
0275
0277
027A
MOTOROLA
CC0255
0F4208
CD0217
1F42
CC0255
1D12
1C42
81
B613
B618
AB04
B716
B619
B717
81
A6D1
B732
A610
B730
CD01E1
81
A626
B732
A618
B730
CD01E1
81
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
txdone:
set6:
return:
*** Timer Setup Subroutine ***
TIMERSU: lda
*** Load Acceptance Mask Register Subroutine ***
LOADAMR: lda
*** Load Acceptance Code Register Subroutine ***
LOADACR: lda
J1850 Multiplex Bus Communication Using the MC68HC705C8
and the SC371016 J1850 Communications Interface (JCI)
Freescale Semiconductor, Inc.
For More Information On This Product,
jmp
brclr tx,txcntrl,set6 ;Message to Tx?
jsr
bclr txt,txcntrl
jmp
bclr ocie,tcr
bset txi,txcntrl
rts
lda
add
sta
lda
sta
rts
sta
lda
sta
jsr
rts
sta
lda
sta
jsr
rts
return
TXDATA
return
tsr
tcrh
#vdelay
ocrh
tcrl
ocrl
#amrbyte
data
#maskbyte
command
TRANSFER
#acrbyte
data
#idbyte
command
TRANSFER
Go to: www.freescale.com
;Jump to end of subroutine
;Jump to routine to transmit message
;data to JCI
;Clear txt bit, no message to Tx
;Jump to end of subroutine
;Clear OCIE bit in TCR, disabling int.
;Set txi bit, previous Tx complete
;Return from subroutine
;Read TSR
;Load MSB timer value into acc.
;Add appropriate delay value
;Store in OCR MSB
;Load LSB timer value into acc.
;Store in OCR LSB
;Return from subroutine
;Load AMR data byte into
;Data storage location
;Load "load as AMR byte" command
;into RAM location "command"
;Call TRANSFER subroutine to transfer
;data and command bytes to JCI
;Return From Subroutine
;Load ACR data byte into
;Data storage location
;Load "load as ACR byte" command
;into RAM location "command"
;Call TRANSFER subroutine to transfer
;data and command bytes to JCI
;Return From Subroutine
Code Listings
AN1212/D
35

Related parts for AN1212