For Newbie

Thursday, 27 October 2011

Set and Clear Bit Port Parallel

Set and Clear Bit Port Parallel

set and clear bit parallel port

Set Bit can be conducted by operating logic OR into input data by logic grade 1
For example:
Data= 11111110 is operated by logic OR toward data 11111110, so it will be 11111110 OR 11111111 the result 1111 1111
The result is set bit toward the last data.
Clear Data can be conducted by operating logic AND toward input data by logic grade 0
For example:
Data: 11111111 is operated by logic AND toward data 1111 1110, so it will be 11111111 or 11111110 the result 11111110
The result is clear bit toward the last data
On the above explanation, each data is displayed in form of binary (0 and 1), in accessing parallel port, the data is sent in format hexadecimal or decimal. Therefore, the data then must be converted first into hexadecimal format or decimal one if any conversion way from binary data to decimal one is not understood yet. And then, you can click here to create the application converted from binary data to hexadecimal

Share on Facebook
Share on Twitter
Share on Google+

Related : Set and Clear Bit Port Parallel