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

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
17.4 API description
UM10398
User manual
Fig 67. CAN API pointer structure
0x1FFF 1FF8
0x1FFF 1FFC
0x1FFF 2000
17.4.1 Calling the C_CAN API
A fixed location in ROM contains a pointer to the ROM driver table i.e. 0x1FFF 1FF8. This
location is the same for all LPC11Cxx parts. The ROM driver table contains pointer to the
CAN API table. Pointers to the various CAN API functions are stored in this table. CAN
API functions can be called by using a C structure.
Figure 67
RAM from address 0x1000 0050 to 0x1000 00B8 is used by the CAN API. This address
range should not be used by the application. For applications using the on-chip CAN API,
the linker control file should be modified appropriately to prevent usage of this area for
application’s variable storage.
In C, the structure with the function list that is referenced to call the API functions looks as
follows:
typedef struct _CAND {
} CAND;
void (*init_can)
void (*isr)
void (*config_rxmsgobj) (CAN_MSG_OBJ * msg_obj);
uint8_t (*can_receive)
void (*can_transmit) (CAN_MSG_OBJ * msg_obj);
void (*config_canopen) (CAN_CANOPENCFG * canopen_cfg);
void (*canopen_handler) (void);
void (*config_calb)
Ptr to Device Table 0
Ptr to Device Table 1
Ptr to C_CAN API Table
Ptr to Device Table n
ROM Driver Table
illustrates the pointer mechanism used to access the on-chip CAN API. On-chip
All information provided in this document is subject to legal disclaimers.
(void);
(uint32_t * can_cfg, uint8_t isr_ena);
(CAN_CALLBACKS * callback_cfg);
(CAN_MSG_OBJ * msg_obj);
Rev. 12 — 24 September 2012
Chapter 17: LPC11Cxx C_CAN on-chip drivers
Device n
Ptr to Function 0
Ptr to Function 1
Ptr to Function 2
Ptr to Function n
canopen_handler
config_canopen
config_rxmsgobj
can_transmit
can_receive
config_calb
C_CAN API
init_can
isr
UM10398
© NXP B.V. 2012. All rights reserved.
313 of 538

Related parts for LPC1112FHN33/203,5