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
 
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.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…