Hello Irmus,

Irmus>>>I now how work lpt but i dont now how from 10011001 make hex in the pic<<

Mister_e gave you some excellent code for doing this.

what happens with Mister_e's code, when data is sent via Parallel port to PortB, it is *already* in Hex format!...

Mister_e's code:

RParrallel VAR BYTE

while SleepPin=High
Wend
RParrallel=PORTB

RParallel will have your 10011001 value...
the hex value is 99. (split your data into 2 groups of 4)
MSB LSB
10011001 = 1001 1001
= 9 9

Hex=99

Dwayne