Electronic Components Datasheet Search
  New Zealand  ▼
ALLDATASHEET.CO.NZ

X  

HCS12 Datasheet(PDF) 342 Page - Freescale Semiconductor, Inc

Part # HCS12
Description  HCS12 Microcontrollers
PDF  452 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  FREESCALE [Freescale Semiconductor, Inc]
Direct Link  http://www.freescale.com
Logo FREESCALE - Freescale Semiconductor, Inc

HCS12 Datasheet(HTML) 342 Page - Freescale Semiconductor, Inc

Back Button HCS12 Datasheet HTML 338Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 339Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 340Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 341Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 342Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 343Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 344Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 345Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 346Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 342 / 452 page
background image
S12CPUV2 Reference Manual, Rev. 4.0
342
Freescale Semiconductor
9.2.2 Rule Evaluation (REV and REVW)
Rule evaluation is the central element of a fuzzy logic inference program.
This step processes a list of rules from the knowledge base using current
fuzzy input values from RAM to produce a list of fuzzy outputs in RAM.
These fuzzy outputs can be thought of as raw suggestions for what the
system output should be in response to the current input conditions. Before
the results can be applied, the fuzzy outputs must be further processed, or
defuzzified, to produce a single output value that represents the combined
effect of all of the fuzzy outputs.
The CPU12 offers two variations of rule evaluation instructions. The REV
instruction provides for unweighted rules (all rules are considered to be
equally important). The REVW instruction is similar but allows each rule to
have a separate weighting factor which is stored in a separate parallel data
structure in the knowledge base. In addition to the weights, the two rule
evaluation instructions also differ in the way rules are encoded into the
knowledge base.
An understanding of the structure and syntax of rules is needed to
understand how a microcontroller performs the rule evaluation task. An
example of a typical rule is:
If temperature is warm and pressure is high, then heat is
(should be) off.
At first glance, it seems that encoding this rule in a compact form
understandable to the microcontroller would be difficult, but it is actually
simple to reduce the rule to a small list of memory pointers. The antecedent
portion of the rule is a statement of input conditions and the consequent
portion of the rule is a statement of output actions.
The antecedent portion of a rule is made up of one or more (in this case two)
antecedents connected by a fuzzy and operator. Each antecedent
expression consists of the name of a system input, followed by is, followed
by a label name. The label must be defined by a membership function in the
knowledge base. Each antecedent expression corresponds to one of the
fuzzy inputs in RAM. Since and is the only operator allowed to connect
antecedent expressions, there is no need to include these in the encoded
rule. The antecedents can be encoded as a simple list of pointers to (or
addresses of) the fuzzy inputs to which they refer.
The consequent portion of a rule is made up of one or more (in this case
one) consequents. Each consequent expression consists of the name of a
system output, followed by is, followed by a label name. Each consequent



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com