ST7DALIF2 STMicroelectronics, ST7DALIF2 Datasheet - Page 92

no-image

ST7DALIF2

Manufacturer Part Number
ST7DALIF2
Description
8-BIT MCU WITH SINGLE VOLTAGE FLASH MEMORY, DATA EEPROM, ADC, TIMERS, SPI
Manufacturer
STMicroelectronics
Datasheet

Specifications of ST7DALIF2

8 Kbytes Single Voltage Flash Program Memory With Read-out Protection, In-circuit Programming And In-application Programming (icp And Iap). 10k Write/erase Cycles Guaranteed, Data Retention
20 years at 55°C.
256 Bytes Data Eeprom With Read-out Protection. 300k Write/erase Cycles Guaranteed, Data Retention
20 years at 55°C.
Clock Sources
Internal 1% RC oscillator, crystal/ceramic resonator or external clock
Five Power Saving Modes
Halt, Active-Halt, Wait and Slow, Auto Wake Up From Halt
DALI communication module
16.4
16.5
92/171
General description
The DCM is able to receive or transmit a serial DALI signal using a 16-bit shift register, an
edge detector, several data/control registers and arbitration logic.
The DCM receives the DALI standard signal from the lighting control network, checks for
errors and loads the address/data bytes of a "forward frame" to the corresponding
DCMFA/DCMFD registers and sends back the data byte of the "backward frame" (written by
software to the DCMBD register) in DALI standard format.
The data rate can be changed by writing in the DCMCLK register (f
The DALI standard data rate f
Following the above formula, if f
"207". The bi-phase bit period is 833.33 us ±10%.
The polarity of the bi-phase start bit is not configurable. The start bit is a logical ’1’.
The polarity of the 2 stop bits is not configurable. The 2 stop bits are set to high level.
If an error is detected during reception, the frame will be ignored and the DCM will return to
Receive state.
Functional description
The user must write to the DCMCLK register to select the data rate according to the DALI
signal frequency.
After Reset, the DCM is in Receive state and waits for the bi-phase start bit (logical ’1’) of
the "forward frame".
The DCM checks the data format of the "forward frame" with the 4-bit pre-shift register. If an
error occurs during reception, the DCM will skip the data and return to the Receive state.
If there is no error in the "forward frame", the data will be shifted Most Significant Bit-first into
the 16-bit shift register. The address byte and the data byte will be loaded to the
corresponding DCMFA and DCMFD registers. The DCM will send an interrupt signal by
setting the ITF bit in the DCMCSR register.
If the software receives an interrupt signal from the DCM, it reads the DCMFA and DCMFD
registers.
Depending on the command, the DCM is able to send back or receive data.
In an interrupt routine, the RTS bit has to be set either before or at the same time as the RTA
bit.
If the software asks the DCM to send back a "backward frame", the software must first write
to the DCMBD register and switch the DCM to Transmit state by setting the RTS and RTA
bits in the DCMCR register during the interrupt routine. The DCMBD register will be shifted
out from the 16-bit shift register in DALI format, the Most Significant Bit-first.
When the "backward frame" has been transmitted, the DCM will send an interrupt signal by
setting the ITF bit in the DCMCSR register.
f
DATA
= f
CPU
/[(N+1)*16]
DALI
CPU
is 1.2 kHz. N is the integer value of the DCMCLK register.
is 8 MHz, the integer value of the DCMCLK register is
DATA
= 2* f
DALI
ST7DALIF2
).

Related parts for ST7DALIF2