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

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.16 CANopen SDO segmented write callback
}
Remark: If the flag isr_handled was set 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 segmented write callback function is called by the CANopen handler.
The callback function allows the following actions:
Responses can be selected to be 8-byte (CANopen standard compliant) or 1-byte (faster
but not supported by all SDO clients).
// Values for CANOPEN_sdo_seg_read/write() callback 'openclose' parameter
#define CAN_SDOSEG_SEGMENT 0 // segment read/write
#define CAN_SDOSEG_OPEN 1 // channel is opened
#define CAN_SDOSEG_CLOSE 2 // channel is closed
Example call (writing a buffer):
uint8_t write_buffer[0x321];
// CANopen callback for segmented write accesses
uint32_t CANOPEN_sdo_seg_write(
{
}
else
{
}
uint16_t index, uint8_t subindex, uint8_t openclose,
uint8_t length, uint8_t *data, uint8_t *fast_resp)
static uint16_t write_ofs;
uint16_t i;
if ((index == 0x2200) && (subindex==0))
{
}
return 0;
return SDO_ABORT_NOT_EXISTS;
if (openclose == CAN_SDOSEG_OPEN)
{
{
}
// Initialize the write buffer
for (i=0; i<sizeof(write_buffer); i++)
{
inform about the opening and closing of the write channel.
pass on data segments of up to seven bytes from the writing host.
abort the transmission at any time, for example when there is a buffer overflow.
*last = TRUE;
All information provided in this document is subject to legal disclaimers.
Rev. 12 — 24 September 2012
// this is last segment
Chapter 17: LPC11Cxx C_CAN on-chip drivers
UM10398
© NXP B.V. 2012. All rights reserved.
322 of 538

Related parts for LPC1114FHN33/203,5