cp3cn23 National Semiconductor Corporation, cp3cn23 Datasheet - Page 164
cp3cn23
Manufacturer Part Number
cp3cn23
Description
Cp3cn23 Reprogrammable Connectivity Processor With Dual Can Interfaces
Manufacturer
National Semiconductor Corporation
Datasheet
1.CP3CN23.pdf
(246 pages)
- Current page: 164 of 246
- Download datasheet (3Mb)
www.national.com
}
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
; NAME: ACBStartX
;
;
; PARAMETERS:
;
;
;
; CALLS:
;
; RETURNED: error/success
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
UWORD
{
KBD_OUT |= BIT0; // OScope marker
acb->ACBctl1
return (ACB_NOERR);
ACB_T
UWORD
acb =
if (acb->ACBcst & ACBBB && !(acb->ACBst & ACBMASTER))
acb->ACBctl1
Timeout =
while (!(acb->ACBst & ACBSDAST) && Timeout--)
{
}
if (!Timeout)
acb->ACBsda =
Timeout =
while (!(acb->ACBst & ACBSDAST) &&
}
if (!Timeout)
else if (acb->ACBst & ACBNEGACK)
else {
}
ACBStartX (UBYTE Slave, UBYTE R_nW, UWORD Count)
return (ACBERR_NOTMASTER);
if (acb->ACBst & ACBBER) {
}
return (ACBERR_NOTMASTER);
!(acb->ACBst & ACBNEGACK)&&
--Timeout) {
if (acb->ACBst & ACBBER) {
}
return (ACBERR_TIMEOUT);
return (ACBERR_NEGACK);
return (ACB_NOERR);
*acb;
Timeout;
(ACB_T*)ACB_ADDRESS;
acb->ACBst
return (ACBERR_COLLISION);
acb->ACBst
return (ACBERR_COLLISION);
UBYTE
UBYTE
UWORD
100;
1000;
|=
Initiates an ACB bus transaction by sending the Start bit, followed by the Slave address
and R/W flag.
|=
Slave | R_nW;
ACBSTOP;
Slave
R_nW
Count
ACBSTART;
|=
|=
ACBBER;
ACBBER;
-
-
-
Checks for any ACB errors throughout this sequence and returns status.
I2C address of Slave device
Read/Write flag (0x01 or 0x00)
Desired number of bytes (read/write)
/* Send STOP bit
/* Return success status....
/* Get address of ACB module
/* If Bus is Busy and we’re NOT the Master, return err
/* If we’re good to go, send Start condition
/* Check if we’re the Bus Master with timeout
/* Related to bus error problem
/* If collision occurs, clear error and return status
/* If timeout, we must NOT be the Master...signal error */
/* Now, send the address and R/W flag...
/* Send address and R/W flag
/* Failsafe for lockup
/* Wait for address to be sent and ACK’d
/* If a bus error occurs while sending address, clear
/* the error flag and return error status
/* If timeout, signal error
/* Or if Slave does not reply, report busy/error
/* Otherwise return success
164
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
*/
Related parts for cp3cn23
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Freescale Semiconductor Technical Data
Manufacturer:
National Semiconductor Corporation
Datasheet:
Part Number:
Description:
Self-calibrating 12-bit Plus Sign Serial I/o A/d Converters With Mux And Sample/hold
Manufacturer:
National Semiconductor Corporation
Datasheet:
Part Number:
Description:
Pllatinum Tm Fractional N Rf / Integer N If Dual Low Power Frequency Synthesizer
Manufacturer:
National Semiconductor Corporation
Datasheet:
Part Number:
Description:
Pllatinum? 2.0 Ghz Frequency Synthesizer For Rf Personal Communications
Manufacturer:
National Semiconductor Corporation
Datasheet:
Part Number:
Description:
Pllatinumtm 160 Mhz Frequency Synthesizer For Rf Personal Communications
Manufacturer:
National Semiconductor Corporation
Datasheet:
Part Number:
Description:
Dual N-channel Enhancement Mode Field Effect Transistor
Manufacturer:
National Semiconductor Corporation
Datasheet:
Part Number:
Description:
Video Amplifier System (obsolete)
Manufacturer:
National Semiconductor Corporation
Datasheet:
Part Number:
Description:
Synchronous Step-up DC/DC Converter For White Led Applications
Manufacturer:
National Semiconductor Corporation
Datasheet:
Part Number:
Description:
CLC420 - High Speed, Voltage Feedback op Amp, Package: Lcc, Pin Nb=20
Manufacturer:
National Semiconductor Corporation
Datasheet:
Part Number:
Description:
Monolithic Triple 4.5 CRT Driver
Manufacturer:
National Semiconductor Corporation
Datasheet:
Part Number:
Description:
Differential Video Amplifier
Manufacturer:
National Semiconductor Corporation
Datasheet:
Part Number:
Description:
ADC10061 - 10-Bit 600 NS A/D Converter With Input Multiplexer And Sample/Hold, Package: Soic Wide, Pin Nb=20
Manufacturer:
National Semiconductor Corporation
Datasheet:
Part Number:
Description:
DS36277 - Dominant Mode Multipoint Transceiver, Package: Soic Narrow, Pin Nb=8
Manufacturer:
National Semiconductor Corporation
Datasheet:
Part Number:
Description:
Printer Solenoid Driver
Manufacturer:
National Semiconductor Corporation
Datasheet:
Part Number:
Description:
Quad High Speed Trapezoidal Bus Transceiver
Manufacturer:
National Semiconductor Corporation
Datasheet: