전자부품 데이터시트 검색엔진
  Korean  ▼
ALLDATASHEET.CO.KR

X  

HCS12 데이터시트(PDF) 307 Page - Freescale Semiconductor, Inc

부품명 HCS12
상세설명  HCS12 Microcontrollers
PDF  452 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
제조업체  FREESCALE [Freescale Semiconductor, Inc]
홈페이지  http://www.freescale.com
Logo FREESCALE - Freescale Semiconductor, Inc

HCS12 데이터시트(HTML) 307 Page - Freescale Semiconductor, Inc

Back Button HCS12 Datasheet HTML 303Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 304Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 305Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 306Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 307Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 308Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 309Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 310Page - Freescale Semiconductor, Inc HCS12 Datasheet HTML 311Page - Freescale Semiconductor, Inc Next Button
Zoom Inzoom in Zoom Outzoom out
 307 / 452 page
background image
Glossary
S12CPUV2 Reference Manual, Rev. 4.0
Freescale Semiconductor
307
Operation:
Do until B = 0, leave SOP in Y : D, SOW in X
Partial Product = (M pointed to by X)
× (M pointed to by Y)
Sum-of-Products (24-bit SOP) = Previous SOP + Partial Product
Sum-of-Weights (16-bit SOW) = Previous SOW + (M pointed to by Y)
(X) + $0001
⇒ X; (Y) + $0001 ⇒ Y
(B) – $01
⇒ B
Description:
Performs weighted average calculations on values stored in memory. Uses
indexed (X) addressing mode to reference one source operand list, and
indexed (Y) addressing mode to reference a second source operand list.
Accumulator B is used as a counter to control the number of elements to be
included in the weighted average.
For each pair of data points, a 24-bit sum of products (SOP) and a 16-bit
sum of weights (SOW) is accumulated in temporary registers. When B
reaches zero (no more data pairs), the SOP is placed in Y : D. The SOW is
placed in X. To arrive at the final weighted average, divide the content of Y
: D by X by executing an EDIV after the WAV.
This instruction can be interrupted. If an interrupt occurs during WAV
execution, the intermediate results (six bytes) are stacked in the order
SOW[15:0], SOP[15:0], $00:SOP[23:16] before the interrupt is processed. The
wavr pseudo-instruction is used to resume execution after an interrupt. The
mechanism is re-entrant. New WAV instructions can be started and
interrupted while a previous WAV instruction is interrupted.
This instruction is often used in fuzzy logic rule evaluation. Refer to Section
9. Fuzzy Logic Support for more information.
WAV
Weighted Average
WAV
CCR Details:
S
X
HIN
Z
V
C
––
?
–
?
1
??
Z: 1; set
H, N, V and C may be altered by this instruction
Source Form
Address
Mode
Object Code
Access Detail(1)
HCS12
M68HC12
WAV
Special
18 3C
Of(frr,ffff)O
Off(frr,fffff)O
(replace comma if interrupted)
SSS + UUUrr
SSSf + UUUrr
1. The replace comma sequence in parentheses represents the loop for one iteration of SOP and SOW accumulation.



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


데이터시트 다운로드

Go To PDF Page


링크 URL



ALLDATASHEET 가 귀하에 도움이 되셨나요?  [ DONATE ] 

Alldatasheet는?   |   광고문의   |   운영자에게 연락하기   |   개인정보취급방침   |   링크 투 데이터시트    |   링크교환   |   제조사별 검색
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