1996 Jun 27 97
Philips Semiconductors Product specification
8-bit microcontroller with on-chip CAN P8xC592
22.2.4 CONNECTION TO AN OPTICAL BUS LINE
Using an optical medium provides the following
advantages:
Bus nodes are galvanically decoupled.
Optical cable features very high noise immunity.
No noise emission by the bus cable.
An example for an interface to an optical connector is
given in Fig.40. In most cases a transistor is required to
amplify the TX-output current.
Thus more optical power is provided to compensate for
losses in the optical connectors and the optical star. The
P8xC592 features an on-chip
1
2
AV
DD
reference voltage
output so only a capacitor is required for the receiver part.
Two optical fibres are used to connect the bus nodes. The
TX-fibre transfers the output signal of the CAN-controller
to the optical star. The optical star transfers the TX-fibre
input signal over to all the RX-fibres. The RX-fibres
transfer the resulting optical signal over to the receivers of
all the bus nodes.
handbook, full pagewidth
MGA189
R1
56
R2
3.9 k
T1
BS170
C2
100 nF
OPTICAL
CONNECTOR
HBFR - 0501
SERIES
5 V
5 V
optical
cable
PASSIVE OPTICAL STAR
P8xC592
CTX0 CTX1 CRX0 CRX1
OUTPUT CONTROL REGISTER
00011110B (1EH)
or 00010110B (16H)
REFOUT
C1
10 nF
Fig.40 Optical Transceiver.
1996 Jun 27 98
Philips Semiconductors Product specification
8-bit microcontroller with on-chip CAN P8xC592
22.2.5 P8xC592 CAN INTERRUPT HANDLER SOFTWARE EXAMPLE (INCLUDING FAST DMA TRANSFER).
MCS-51 MACRO ASSEMBLER P8xC592 CAN interrupt-handler
LOC OBJ LINE SOURCE
1 $TITLE (8xC592 CAN interrupt-handler)
00A0 2 $NOSYMBOLS NOPAGING
00A1 3
4 ;********************************************************************************************************
5;
6 ;Very fast receive-routine for the 8xC592. It:
7 is embedded in the interrupt-handler for the CAN-controller,
8 uses the DMA-logic and
9 handles up to eight different messages
00A2 10 ;(if these have the same leading 8 identifier-bits).
11 ;
12 ;To allow for faster receive-routine, it is assumed that all other routines
13 ;accessing the CAN-controller, disable the interrupt of the CAN-controller
14 ;(IEN0.5) during their execution.
00A5 15 ;
00A7 16 ;Version: 1.0
17 ;Date: 12-April-90
18 ;Author: Bernhard Reckels
19 ;at: Philips Components Application Lab., Hamburg (PCALH)
00A9 20
00AB 21 ;********************************************************************************************************
00AD 22
23 ;********************************************************************************************************
24 ;initial stuff
25 ;********************************************************************************************************
26
27 ;equatas
28
29 ;addresses of Special Function Registers
00AE 30 CANADR EQU 0DBH
00AF 31 CANDAT EQU 0DAH
32 CANCON EQU 0D9H
00B0 33 CANSTA EQU 0D8H
34
1996 Jun 27 99
Philips Semiconductors Product specification
8-bit microcontroller with on-chip CAN P8xC592
35 ;commands for the CAN-controller / DMA logic
36 CAN_REF_REL EQU 00000100B ;Release Receive Buffer
00A0 37 CAN_RX_DMA EQU 80H + 22 ;Rx DMA-transfer
00A1 38
39 ; addresses of CAN-controller internal registers
40 CAN_REF EQU 20 ;1st address of Rx-buffer
41
42 ; masks
43 INT_FLAG_MASK EQU 00011111B ;all CAN's interrupt-flags
44 ID2_0_MASK EQU 11100000B ;only ID.2 ... ID.0 bits
00A2 45 ; jump-address for a CAN-controller interrupt
46
47
48 CSEG at 2BH
020080 49 LJMP CAN_INT_HANDLER ; CAN's interrupt-vector
00A5 50
00A7 51 ; data storage
52
53 DSEG at 20H
54 CAN_INT_IMAGE: DS 1
00A9 55
00AB 56 BSEG at 00H
00AD 57 CAN_INT_RX: DBIT 1 ; = CAN_INT_IMAGE.0
58 CAN_INT_TX: DBIT 1 ; = CAN_INT_IMAGE.1
59 CAN_INT_KR: DBIT 1 ; = CAN_INT_IMAGE.2
60 CAN_INT_OV: DBIT 1 ; = CAN_INT_IMAGE.3
61 CAN_INT_WK: DBIT 1 ; = CAN_INT_IMAGE.4
62
63 ;********************************************************************************************************
64 ;CAN-controller interrupt-handler
00AE 65 ;
00AF 66 ;Only the receive-interrupt is coded.
67 ;
00B0 68 ;*******************************************************************************************************
69
70 CSEG at 080H
71
LOC OBJ LINE SOURCE

P80C592FFA/00,512

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
IC MCU 8BIT ROMLESS 68PLCC
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet