Confused by the CPU12 Reference Manual

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Confused by the CPU12 Reference Manual

2,858件の閲覧回数
Anastasios
Contributor I
Hello all,

I am trying to write a fuzzy controller and I have noticed an ambiguity in the CPU12 Reference Manual. In Section 6(Instruction Glossary) of the RM, page 243, in the "MEM" instruction it writes:

"a 4-byte data structure that describes a trapezoidal
membership function. The data structure consists of:
• Point_1 — The x-axis starting point for the leading side (at MX)
• Slope_1 — The slope of the leading side (at MX+1)
• Point_2 — The x-axis position of the rightmost point (at MX+2)
• Slope_2 — The slope of the trailing side (at MX+3); the right side
slopes up and to the left from point_2 "

And in Section 9(fuzzy logic support) of the RM, page 341, it writes (figure 9-4)

"ADDR $40 X-POSITION OF point_1
ADDR+1 $D0 X-POSITION OF point_2
ADDR+2 $08 slope_1 ($FF/(X-POS OF SATURATION – point_1))
ADDR+3 $04 slope_2 ($FF/(point_2 – X-POS OF SATURATION))"

So what is the right format for the membership function's data structure,

point1,point2,slope1,slope2
or
point1,slope1,point2,slope2


Thank you all in advance,

Anastasios
ラベル(1)
0 件の賞賛
返信
1 返信

998件の閲覧回数
Steve
NXP Employee
NXP Employee
Hi,
 The description in the MEM opcode is incorrect in the V3 CPU manual. The correct format is point1,point2,slope1,slope2.
 I've asked for the manuals to be fixed.
 
Thanks for pointing this out.
0 件の賞賛
返信