Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

Latest threads

New Articles From Microcontroller Tips

Back
Top