參數(shù)資料
型號(hào): LPC1112FHN33
廠商: NXP Semiconductors N.V.
元件分類: 32位微控制器
英文描述: Cortex-M0, 16 kB flash, up to 4 kB SRAM
中文描述: Cortex-MO,16kB 閃存,最大4kB靜態(tài)隨機(jī)存儲(chǔ)器
封裝: LPC1112FHN33/202<SOT865-3 (HVQFN32)|<<http://www.nxp.com/packages/SOT865-3.html<1<Always Pb-free,;LPC1112FHN33/202<SOT865-3 (HVQFN32)|<<http://www.nxp.com/packages/SOT865
文件頁(yè)數(shù): 9/12頁(yè)
文件大?。?/td> 89K
代理商: LPC1112FHN33
NXP Semiconductors
AN10960
DALI slave using the LPC1112
AN10960
All information provided in this document is subject to legal disclaimers.
NXP B.V. 2010. All rights reserved.
Application note
Rev. 1 — 22 July 2010
9 of 12
3. Software
3.1 Transmitting a DALI message
Sending a frame is relatively easy, see
dali_drv.c
module. The implementation uses
Timer 0 interrupt every period ‘TE’ to generate the DALI message. Sending a single bit
via bi-phase encoding requires two interrupts, in order to produce a good transition. A '1'
is sent by pulling down the line for one period, followed by releasing it for one period.
Sending a ‘0’ is exactly the opposite. A position counter is used to keep track of which bit
is being transmitted. The counter runs at twice the bit frequency (just like the interrupt),
so bit 0 can be used to detect whether the first or the second period of this bit is to be
transmitted.
3.2 Decoding a DALI message
The best method to decode DALI (Manchester coding) messages is to detect the edges
of the signal and measure the time between these edges. Using a timer capture input of
the LPC1112 this is easy to accomplish, because the input can capture and generate an
interrupt at both rising and falling edge. At the falling edge the pulse ‘high time’ is
captured and stored. At a rising edge the pulse ‘low time’ is captured, and the received
bit(s) is decoded. There are no separate interrupts for rising and falling edge input
capture, and it’s not possible to read the logic level of the capture input pin. That’s why
the capture input pin is also connected to a GPIO input pin.
3.3 Structure
The DALI slave unit software example is written in C language and compiled using Keil’s
uVision (ARM7 RealView, V4.12) free demo compiler. It performs the following main
tasks:
Initialization:
for LPC1112 microcontroller configuration the standard startup code (see
startup_LPC11xx.s
and
system_LPC11xx.c
) from Keil were used and set as
CCLK = IRC / 6 = 2 MHz
DALI slave stack:
DALI Driver: use Timer 0 match 0 for sending DALI forward frames. Use timer 0
capture 0 to receive DALI backward frames (see
dali_drv.c
)
DALI Command: for decoding and execution of the received DALI commands
(see
dali_cmd.c
)
Application (3 modules):
Main: handles ‘sleep’ mode, check and clear DALI transmission event flags and
take action (see
main.c
)
Ballast: handles dimming, fading and translation of required lamp light level into
actual PWM duty cycle. It uses the 10 ms Systick Timer and timer CT32B1 match
MAT0, to generate the PWM output signal (see
ballast.c
).
FLASH: handles the storage of the DALI slave unit parameters, like MIN/MAX
light levels, Addresses and scene’s, using the on-chip flash of the LPC1112 (see
flash.c
).
相關(guān)PDF資料
PDF描述
LPC11C12FBD48 Cortex-M0 with 16 kB flash, 8 kB SRAM, CAN and CANopen drivers on-chip
LPC11D14FBD100 32-bit ARM Cortex-M0 microcontroller; 32 kB flash and 8 kB SRAM; 4 x 40 segment LCD driver
LPC11U12FBD48 32-bit ARM Cortex-M0 microcontroller; up to 16 kB flash; 6 kB SRAM; USB device; USART; 2 SSPs
LPCXpresso
LPD-1 Phase Detectors 1000mV DC output , + 7dBmRF
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
LPC1112FHN33/101 制造商:NXP Semiconductors 功能描述:MCU 32BIT 16KFLASH CORTEX-M0 33HVQFN 制造商:NXP Semiconductors 功能描述:MCU, 32BIT, 16KFLASH, CORTEX-M0, 33HVQFN 制造商:NXP Semiconductors 功能描述:MCU, 32BIT, 16KFLASH, CORTEX-M0, 33HVQFN; Controller Family/Series:ARM Cortex-M0; Core Size:32bit; No. of I/O's:28; Supply Voltage Min:1.8V; Supply Voltage Max:3.6V; Digital IC Case Style:HVQFN; No. of Pins:33; Program Memory ;RoHS Compliant: Yes
LPC1112FHN33/101,5 功能描述:ARM微控制器 - MCU Cortex M0 Ultra Low Power 32 Bit MCU RoHS:否 制造商:STMicroelectronics 核心:ARM Cortex M4F 處理器系列:STM32F373xx 數(shù)據(jù)總線寬度:32 bit 最大時(shí)鐘頻率:72 MHz 程序存儲(chǔ)器大小:256 KB 數(shù)據(jù) RAM 大小:32 KB 片上 ADC:Yes 工作電源電壓:1.65 V to 3.6 V, 2 V to 3.6 V, 2.2 V to 3.6 V 工作溫度范圍:- 40 C to + 85 C 封裝 / 箱體:LQFP-48 安裝風(fēng)格:SMD/SMT
LPC1112FHN33/1015 制造商:NXP Semiconductors 功能描述:IC 32BIT MCU ARM 50MHZ VQFN-33
LPC1112FHN33/102 制造商:NXP Semiconductors 功能描述:MCU, 32BIT, CORTEX-M0, 50MHZ, HVQFN-32 制造商:NXP Semiconductors 功能描述:MCU, 32BIT, CORTEX-M0, 50MHZ, HVQFN-32, Controller Family/Series:LPC1100L, Core 制造商:NXP Semiconductors 功能描述:MCU, 32BIT, CORTEX-M0, 50MHZ, HVQFN-32, Controller Family/Series:LPC1100L, Core Size:32bit, No. of I/O's:28, Supply Voltage Min:1.8V, Supply Voltage Max:3.6V, Digital IC Case Style:HVQFN, No. of Pins:32, Program Memory Size:16KB, RAM
LPC1112FHN33/102,5 功能描述:ARM微控制器 - MCU 32b 16K Flash 42I/O RoHS:否 制造商:STMicroelectronics 核心:ARM Cortex M4F 處理器系列:STM32F373xx 數(shù)據(jù)總線寬度:32 bit 最大時(shí)鐘頻率:72 MHz 程序存儲(chǔ)器大小:256 KB 數(shù)據(jù) RAM 大小:32 KB 片上 ADC:Yes 工作電源電壓:1.65 V to 3.6 V, 2 V to 3.6 V, 2.2 V to 3.6 V 工作溫度范圍:- 40 C to + 85 C 封裝 / 箱體:LQFP-48 安裝風(fēng)格:SMD/SMT