LPC1113FHN33/303,5 NXP Semiconductors, LPC1113FHN33/303,5 Datasheet - Page 320

no-image

LPC1113FHN33/303,5

Manufacturer Part Number
LPC1113FHN33/303,5
Description
ARM Microcontrollers - MCU Cortex-M0 24 kB flash up to 8kB SRAM
Manufacturer
NXP Semiconductors
Datasheet

Specifications of LPC1113FHN33/303,5

Rohs
yes
Core
ARM Cortex M0
Processor Series
LPC1113
Data Bus Width
32 bit
Maximum Clock Frequency
50 MHz
Program Memory Size
24 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.13 CANopen SDO expedited read callback
17.4.14 CANopen SDO expedited write callback
}
The CANopen SDO expedited read callback function is called by the CANopen handler.
The callback function is called before the SDO response is generated, allowing to modify
or update the data.
Example call:
// CANopen callback for expedited read accesses
uint32_t CANOPEN_sdo_exp_read(uint16_t index, uint8_t subindex)
{
}
Remark: If the flag isr_handled was set to TRUE when initializing CANopen, this callback
function will be called by the CAN API interrupt handler and therefore will execute on the
interrupt level.
The CANopen SDO expedited write callback function is called by the CANopen handler.
The callback passes on the new data and is called before the new data has been written,
allowing to reject or condition the data.
Example call:
// CANopen callback for expedited write accesses
uint32_t CANOPEN_sdo_exp_write(uint16_t index, uint8_t subindex, uint8_t
*dat_ptr)
{
}
// If we went into bus off state, tell the application to
// re-initialize the CAN controller
if (error_info & CAN_ERROR_BOFF)
return;
// Every read of [2001h,0] increases param by one
if ((index == 0x2001) && (subindex==0))
return 0;
// Writing 0xAA55 to entry [2001h,0] unlocks writing the config table
if ((index == 0x2001) && (subindex == 0))
if (*(uint16_t *)dat_ptr == 0xAA55)
reset_can = TRUE;
param++;
{
}
else
write_config_ena = TRUE;
return(FALSE); // Reject any other value
return(TRUE);
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.
320 of 538

Related parts for LPC1113FHN33/303,5