st52f510 STMicroelectronics, st52f510 Datasheet - Page 57

no-image

st52f510

Manufacturer Part Number
st52f510
Description
8-bit Intelligent Controller Unit Icu Two Timer/pwms, Adc, I2c, Spi, Sci
Manufacturer
STMicroelectronics
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
st52f510F3M
Manufacturer:
ST
0
Part Number:
st52f510F3M6
Manufacturer:
ST
0
Part Number:
st52f510G3M6
Manufacturer:
ST
0
Figure 8.3 Fuzzyfication
8.4 Defuzzyfication
In this phase the output crisp values are
determined by implementing the consequent part
of the rules.
Each consequent Singleton X
weight values
processor, in order to compute the upper part of
the Defuzzyfication formula.
Each output value is obtained from the consequent
crisp values (X
Defuzzyfication formula:
where:
i = identifies the current output variable
N = number of the active rules on the current
output
X
The Decision Processor outputs are stored in the
RAM location i-th specified in the assembler
instruction OUT i.
IF INPUT 1 IS X1 OR INPUT 2 IS X2 THEN .......
IF INPUT 1 IS X1 AND INPUT 2 IS X2 THEN .......
ij
ij
1
1
= weight of the j-th singleton
= abscissa of the j-th singleton
X1
X1
i
) by carrying out the following
Input 1
Input 1
Y
i
, calculated by the Decision
i
=
OR = Max
---------------------
N
j
N
j
X
ij ij
ij
i
is multiplied by its
X2
X2
Input 2
Input 2
8.5 Input Membership Function
The Decision Processor allows the management of
triangular Mbfs. In order to define an Mbf, three
different parameters must be stored on the
Program/Data Memory (see Figure 8.4):
In order to reduce the size of the memory area and
the computational effort the vertical range of the
vertex is fixed between 0 and 15 (4 bits)
By using the previous memorization method
different kinds of triangular Membership Functions
may be stored. Figure 8.5 shows some examples
of valid Mbfs that can be defined in ST52F510/
F513/F514.
Each Mbf is then defined storing 3 bytes in the first
Kbyte of the Program/Data Memory.
The Mbf is stored by using the following instruction:
MBF n_mbf lvd v rvd
where:
n_mbf is a tag number that identifies the Mbf
lvd , v , and rvd are the parameters that describe the
Mbf’s shape as described above.
Figure 8.4 Mbfs Parameters
the vertex of the Mbf: V;
the length of the left semi-base: LVD;
the length of the right semi-base: RVD;
15
15
w
0
0
X
V
LVD
ST52F510/F513/F514
Input Mbf
Output Singleton
RVD
Input Variable
Output Variable
57/106

Related parts for st52f510