LPC1114FHN33/203,5 NXP Semiconductors, LPC1114FHN33/203,5 Datasheet - Page 319

no-image

LPC1114FHN33/203,5

Manufacturer Part Number
LPC1114FHN33/203,5
Description
ARM Microcontrollers - MCU Cortex-M0 32 kB Fl 8 kB SRAM
Manufacturer
NXP Semiconductors
Datasheet

Specifications of LPC1114FHN33/203,5

Rohs
yes
Core
ARM Cortex M0
Processor Series
LPC1114
Data Bus Width
32 bit
Maximum Clock Frequency
50 MHz
Program Memory Size
32 KB
Data Ram Size
8 KB
On-chip Adc
Yes
Operating Supply Voltage
1.8 V to 3.6 V
Operating Temperature Range
- 65 C to + 150 C
Package / Case
HVQFN-33
Mounting Style
SMD/SMT
Factory Pack Quantity
260
NXP Semiconductors
UM10398
User manual
17.4.12 CAN error callback
17.4.11 CAN message transmit callback
// CAN receive handler
void CAN_rx(uint8_t msgobj_num)
{
}
Remark: The callback is not called if the user CANopen handler is activated for the
message object that is used for SDO receive.
Called on the interrupt level by the CAN interrupt handler after a message has been
successfully transmitted on the bus.
Example call:
// CAN transmit handler
void CAN_tx(uint8_t msgobj_num)
{
}
Remark: The callback is not called after the user CANopen handler has used a message
object to transmit an SDO response.
The CAN error callback function is called on the interrupt level by the CAN interrupt
handler.
// error status bits
#define CAN_ERROR_NONE 0x00000000UL
#define CAN_ERROR_PASS 0x00000001UL
#define CAN_ERROR_WARN 0x00000002UL
#define CAN_ERROR_BOFF 0x00000004UL
#define CAN_ERROR_STUF 0x00000008UL
#define CAN_ERROR_FORM 0x00000010UL
#define CAN_ERROR_ACK 0x00000020UL
#define CAN_ERROR_BIT1 0x00000040UL
#define CAN_ERROR_BIT0 0x00000080UL
#define CAN_ERROR_CRC 0x00000100UL
Example call:
// CAN error handler
void CAN_error(uint32_t error_info)
// Read out received message
msg_obj.msgobj = msgobj_num;
(*rom)->pCAND->can_receive(&msg_obj);
return;
// Reset flag used by application to wait for transmission finished
if (wait_for_tx_finished == msgobj_num)
return;
wait_for_tx_finished = 0;
All information provided in this document is subject to legal disclaimers.
Rev. 12 — 24 September 2012
Chapter 17: LPC11Cxx C_CAN on-chip drivers
UM10398
© NXP B.V. 2012. All rights reserved.
319 of 538

Related parts for LPC1114FHN33/203,5