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

X  

HCS12 Datasheet(PDF) 363 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) 363 Page - Freescale Semiconductor, Inc

Back Button HCS12 Datasheet HTML 359Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 360Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 361Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 362Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 363Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 364Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 365Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 366Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 367Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 363 / 452 page
background image
S12CPUV2 Reference Manual, Rev. 4.0
Freescale Semiconductor
363
In cycle 2.0, the first element of the rule list (a 16-bit address) is read from
memory. Due to propagation delays, this value cannot be used for
calculations until two cycles later (cycle 4.0). The X index register, which is
used to access information from the rule list, is incremented by two to point
at the next element of the rule list.
The operations performed in cycle 4.0 depend on the value of the word read
from the rule list. $FFFE is a special token that indicates a transition from
antecedents to consequents or from consequents to antecedents of a new
rule. The V bit can be used to decide which transition is taking place, and V
is toggled each time the $FFFE token is detected. If V was zero, a change
from antecedents to consequents is taking place, and it is time to apply
weighting (provided it is enabled by the C bit equal one). The address in
TMP2 (derived from Y) is used to read the weight byte from memory. In this
case, there is no bus access in cycle 5.0, but the index into the rule list is
updated to point to the next rule element.
The old value of X (X0) is temporarily held on internal nodes, so it can be
used to access a rule word in cycle 7.2. The read of the rule word is timed
to start two cycles before it will be used in cycle 4.0 of the next loop pass.
The actual multiply takes place in cycles 6.2 through 8.2. The 8-bit weight
from memory is incremented (possibly overflowing to $100) before the
multiply, and the upper eight bits of the 16-bit internal result is used as the
weighted result. By using weight+1, the result can range from 0.0 times A to
1.0 times A. After 8.2, flow continues to the next loop pass at cycle 4.0.
At cycle 4.0, if Rx is $FFFE and V was one, a change from consequents to
antecedents of a new rule is taking place, so accumulator A must be
reinitialized to $FF. During processing of rule antecedents, A is updated with
the smaller of A, or the current fuzzy input (cycle 6.0). Cycle 5.0 is usually
used to read the next rule word and update the pointer in X. This read is
skipped if the current Rx is $FFFF (end of rules mark). If this is a weight
multiply pass, the read is delayed until cycle 7.2. During processing of
consequents, cycle 6.1 is used to optionally update a fuzzy output if the
value in accumulator A is larger.
After all rules have been processed, cycle 7.0 is used to update the PC to
point at the next instruction. If weights were enabled, Y is updated to point
at the location that immediately follows the last rule weight.



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