ST52F510FMB6 STMICROELECTRONICS [STMicroelectronics], ST52F510FMB6 Datasheet - Page 58

no-image

ST52F510FMB6

Manufacturer Part Number
ST52F510FMB6
Description
8-BIT INTELLIGENT CONTROLLER UNIT ICU Two Timer/PWMs, ADC, I2C, SPI, SCI
Manufacturer
STMICROELECTRONICS [STMicroelectronics]
Datasheet
ST52F510/F513/F514
Figure 8.5 Example of valid Mbfs
8.6 Output Singleton
The Decision Processor uses a particular kind of
membership function called Singleton for its output
variables. A Singleton doesn’t have a shape, like a
traditional Mbf, and is characterized by a single
point identified by the couple (X, w), where w is
calculated by the Inference Unit as described
earlier. Often, a Singleton is simply identified with
its Crisp Value X.
Table 8.1 Fuzzy Instructions Set
58/106
MBF n_mbf Ivd v rvd
IS n m
ISNOT n m
FZAND
FZOR
CON crisp
OUT n_out
FUZZY
( )
Instruction
Stores the Mbf n_mbf with the shape identified by the parameters Ivd , v and rvd
Fixes the alpha value of the input n with the Mbf m
Calculates the complementary alpha value of the input n with the Mbf m.
Implements the Fuzzy operation AND
Implements the Fuzzy operation OR
Multiplies the crisp value with the last
Performs Defuzzyfication and stores the currently Fuzzy output in the register
n_out
Starts the computation of a sigle fuzzy variable
Modify the priority in the rule evaluation
Figure 8.6 Output Membership Functions
8.7 Fuzzy Rules
Rules can have the following structures:
if A op B op C...........then Z
if (A op B) op (C op D op E...) ...........then Z
where op is one of the possible linguistic operators
(AND/OR)
In the first case the rule operators are managed
sequentially; in the second one, the priority of the
operator is fixed by the brackets.
Each rule is codified by using an instruction set, the
inference time for a rule with 4 antecedents and 1
consequent is about 3 microseconds at 20 MHz.
The Assembler Instruction Set used to manage the
Fuzzy operations is reported in the table below.
1
0
ij
i0
in
Description
weight
X
i0
j-th Singleton
X
ij
X
in
i-th OUTPUT

Related parts for ST52F510FMB6