LPC1112FHN33/203,5 NXP Semiconductors, LPC1112FHN33/203,5 Datasheet - Page 315

no-image

LPC1112FHN33/203,5

Manufacturer Part Number
LPC1112FHN33/203,5
Description
ARM Microcontrollers - MCU Cortex-M0 16kB flash up to 4 kB SRAM
Manufacturer
NXP Semiconductors
Datasheet

Specifications of LPC1112FHN33/203,5

Rohs
yes
Core
ARM Cortex M0
Processor Series
LPC1112
Data Bus Width
32 bit
Maximum Clock Frequency
50 MHz
Program Memory Size
16 KB
Data Ram Size
4 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.5 CAN receive
17.4.6 CAN transmit
Transmit message objects are automatically configured when used.
// control bits for CAN_MSG_OBJ.mode_id
#define CAN_MSGOBJ_STD 0x00000000UL // CAN 2.0a 11-bit ID
#define CAN_MSGOBJ_EXT 0x20000000UL // CAN 2.0b 29-bit ID
#define CAN_MSGOBJ_DAT 0x00000000UL // data frame
#define CAN_MSGOBJ_RTR 0x40000000UL // rtr frame
typedef struct _CAN_MSG_OBJ {
} CAN_MSG_OBJ;
void config_rxmsgobj (CAN_MSG_OBJ * msg_obj)
Example call:
// Configure message object 1 to receive all 11-bit messages 0x000-0x00F
msg_obj.msgobj = 1;
msg_obj.mode_id = 0x000;
msg_obj.mask = 0x7F0;
(*rom)->pCAND-> config_rxmsgobj(&msg_obj);
The CAN receive function allows reading messages that have been received by an Rx
message object. A pointer to a message object structure is passed to the receive function.
Before calling, the number of the message object that is to be read has to be set in the
structure.
void config_rxmsgobj (CAN_MSG_OBJ * msg_obj)
Example call:
// Read out received message
msg_obj.msgobj = 5;
(*rom)->pCAND->can_receive(&msg_obj);
The CAN transmit function allows setting up a message object and triggering the
transmission of a CAN message on the bus. 11-bit standard and 29-bit extended
messages are supported as well as both standard data and remote-transmit (RTR)
messages.
void config_txmsgobj (CAN_MSG_OBJ * msg_obj)
Example call:
uint32_t mode_id;
uint32_t mask;
uint8_t data[8];
uint8_t dlc;
uint8_t msgobj;
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.
315 of 538

Related parts for LPC1112FHN33/203,5