Continue to Site

# PT2262 (3^8) list of code

Status
Not open for further replies.

#### xyz9915

##### Member
Hello everyone!
I need list all possible codes (3^8=6561) for PT2262 Trinary encoder chip. So, please help in this respect.
Regards
Azher

#### Nigel Goodwin

##### Super Moderator
Seems a pretty pointless post?, write yourself a list of the numbers from 0 to 6561.

#### Pommie

##### Well-Known Member
Here's 3^4 ths worth,
Code:
0,0,0,0
0,0,0,1
0,0,0,2
0,0,1,0
0,0,1,1
0,0,1,2
0,0,2,0
0,0,2,1
0,0,2,2
0,1,0,0
0,1,0,1
0,1,0,2
0,1,1,0
0,1,1,1
0,1,1,2
0,1,2,0
0,1,2,1
0,1,2,2
0,2,0,0
0,2,0,1
0,2,0,2
0,2,1,0
0,2,1,1
0,2,1,2
0,2,2,0
0,2,2,1
0,2,2,2
1,0,0,0
1,0,0,1
1,0,0,2
1,0,1,0
1,0,1,1
1,0,1,2
1,0,2,0
1,0,2,1
1,0,2,2
1,1,0,0
1,1,0,1
1,1,0,2
1,1,1,0
1,1,1,1
1,1,1,2
1,1,2,0
1,1,2,1
1,1,2,2
1,2,0,0
1,2,0,1
1,2,0,2
1,2,1,0
1,2,1,1
1,2,1,2
1,2,2,0
1,2,2,1
1,2,2,2
2,0,0,0
2,0,0,1
2,0,0,2
2,0,1,0
2,0,1,1
2,0,1,2
2,0,2,0
2,0,2,1
2,0,2,2
2,1,0,0
2,1,0,1
2,1,0,2
2,1,1,0
2,1,1,1
2,1,1,2
2,1,2,0
2,1,2,1
2,1,2,2
2,2,0,0
2,2,0,1
2,2,0,2
2,2,1,0
2,2,1,1
2,2,1,2
2,2,2,0
2,2,2,1
2,2,2,2

Done with VB using,
Code:
    For i = 0 To 2
For j = 0 To 2
For k = 0 To 2
For l = 0 To 2
Debug.Print i & "," & j & "," & k & "," & l
Next
Next
Next
Next

Should be easy to extend.

Mike.

Status
Not open for further replies.

Replies
4
Views
1K
Replies
21
Views
3K
Replies
2
Views
536
Replies
22
Views
3K
Replies
18
Views
8K