MC33298 Motorola, MC33298 Datasheet - Page 20

no-image

MC33298

Manufacturer Part Number
MC33298
Description
OCTAL SERIAL SWITCH (SPI Input/Output)
Manufacturer
Motorola
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
MC33298DN
Manufacturer:
MC
Quantity:
20 000
Part Number:
MC33298DW
Manufacturer:
MOT
Quantity:
5 510
Part Number:
MC33298DW
Manufacturer:
MOTOROLA/摩托罗拉
Quantity:
20 000
Part Number:
MC33298DWR2
Manufacturer:
2002+
Quantity:
6 228
Part Number:
MC33298DWR2
Manufacturer:
ON/安森美
Quantity:
20 000
Part Number:
MC33298P
Manufacturer:
ON
Quantity:
4 327
SET LABELS FOR OUTPUT REGISTERS
INITIALIZE THE DATA REGISTERS AND THEIR DATA DIRECTION BIT REGISTERS
SELECT THE DESIRED OUTPUTS
PORTB
PORTC
PORTD
DDRA
DDRB
DDRC
DDRD
DTOUT
DATAIN
VALUE
DATA1
SCR
SSR
SDR
INIT
TOP
20
PORTA
BSET
BCLR
BSET
BCLR
ORG
EQU
EQU
EQU
EQU
EQU
EQU
EQU
EQU
EQU
EQU
EQU
EQU
EQU
EQU
EQU
RSP
LDA
LDA
LDA
LDA
LDA
STA
STA
STA
STA
STA
STA
STA
Table 1. Program to Exercise the MC33298 Using SPI (Having Only SIOP) Protocol
#%00010000
4,PORTA
4,PORTA
4,PORTA
5,PORTA
DTOUT
VALUE
VALUE
$000C
$0000
$0001
$0002
$0003
$0004
$0005
$0006
$0007
$0080
$0081
$0082
$0083
$000A
$000B
$0100
DDRA
DDRB
DDRC
DDRD
#$55
#$FE
#$FF
SCR
;SPI Port
;DO (Data Out), SCLK, CS, RESET, X, FLTOUT, DI (Data In)
;Normally the SIOP Port. SIOP will be disabled
;A–D Converter Port
;Timer Capture Port
;Data Direction Register for SPI Port
;Data Direction Register for SCLK, SDI, SDO, 11111
;Data Direction Register for A–D Converter Port
;Data Direction Register for PORTD, Timer Capture
;Register for the SPI output data. This register will be used for a Serial–to–Parallel transformation.
;Input Register for SPI. Also used for a Serial–to–Parallel transformation.
;Register to store the SPI. Also used for a Serial–to–Parallel transformation.
;Miscellaneous data register
;Label for SIOP control register, 0 SPE 0 MSTR 0 0 0 0.
;Label for SIOP status register, SPIF DCOL 0 0 0 0 0 0, Read Only Register.
;Label for SIOP data register.
;Program starts at first byte of User ROM.
;Reset Stack Pointer to $FF.
;Configuration PortA as the SPI Port.
;All but Bit 0 will be outputs.
;Configure Register B as an output. SIOP is not used for the MC33298, but is available for
another peripheral.
;Configure Register C as an output
;Configure Register D as an output
;Initialize the SIOP Control Register.
;Disable SIOP by clearing Bit 6.
Select outputs of MC33298 to be turned “on.” This instruction is left inside the loop to include
changes while running the program. A set bit will cause the associated MC33298 output to be
“off.” The value register is uncorrupted by the serial–to–parallel conversion.
;Reset the MC33298.
;Also establishes a + or – trigger source
;The MC33298 is reset with a logic low.
;Enable MC33298 by pulling CSB (chip select bar) low. Within the MC33298 the Fault Status is
transferred to the MC33298 Serial Register at a falling edge of CSB.
;Select outputs to be turned “on.”
;Save Output Word (Value) to check for fault.
MC33298
MOTOROLA ANALOG IC DEVICE DATA

Related parts for MC33298