The counters variants are evaluated at parse time so sequences like the following where data is to be sent to port B instead of port C (when counter 2 is 256) are fine:
<set c1=c2*255><op c1> / <set c1=c2*123><op c1> / <set
c1=c2*255><op c1>
Possible with PIO12:
Port C
Bit.........Bit
7 6 5 4 3 2 1 0
---------------
0 0 0 0 0 0 0 0
<ox 0> <o 0>
0 0 0 0 0 0 0 1
<ox 1> <o 1>
0 0 0 0 0 0 1 0
<ox 2> <o 2>
0 0 0 0 0 0 1 1
<ox 3> <o 3>
0 0 0 0 1 0 0 0
<ox 8> <o 8>
0 0 0 0 1 0 0 1
<ox 9> <o 9>
0 0 0 0 1 0 1 0
<ox a> <o 10>
0 0 0 0 1 0 1 1
<ox b> <o 11>
0 0 0 0 1 1 0 0
<ox c> <o 12>
0 0 0 0 1 1 0 1
<ox d> <o 13>
0 0 0 0 1 1 1 0
<ox e> <o 14>
0 0 0 0 1 1 1 1
<ox f> <o 15>
0 0 0 1 0 0 0 1
<ox 11> <o 17>
1 0 0 0 0 0 0 0
<ox 80> <o 128>
1 1 1 1 1 1 1 1
<ox ff> <o 255>
Possible with PIO12output16:
Port C
Port B
Bit.........Bit Bit.........Bit
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
--------------- ---------------
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1
<ox 100> <o 256>
0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1
<ox 101> <o 257>
1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0
<ox 8080> <o 32896>
Possible with PIO12output24:
Port C
Port B Port A
Bit.........Bit Bit.........Bit Bit.........Bit
7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0
--------------- --------------- ---------------
0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 <ox
10101> <o 65793>
1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 <ox
808080> <o 8421504>
1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0
1 0 1 0 1 0 1 0 <ox aaaaaa> <o 11184810>