Hello Irmus,
Irmus>>I dont now how to say!!!!
I read one bit from lpt after next - until 8 . How this bits conect to one , in one variable?<<
Ok...SPP is using a Parallel connection... You read all 8 bits at once. You can do this with Portb of most PIC chips. This is the Code the Mister_e gave you, and I have been trying to explain. You told us that you are using SPP (standard Parallel Port). In SPP, you read *all* 8 bits at a time.
Now, you are telling us you are reading 1 "bit" at a time. this is not SPP. This is serial communication.
Mister_e gave you some code on Serial communication too. Using SERIN.
Mister_e's code.
SERIN PORTB.0,0,Rserial
this command will automatically take your eight bits and put them into Hex format. that format will be the variable Rserial.
So Rserial will have the value "10011001" or hex 99.
Dwayne
Ability to Fly:
Hurling yourself towards the ground, and missing.
Engineers that Contribute to flying:
Both optimists and pessimists contribute to the society. The optimist invents the aeroplane, the pessimist the parachute
Pilots that are Flying:
Those who know their limitations, and respect the green side of the grass...
Bookmarks