'Bit-Shifiting w/out C'
I'm wanting to do somethin with the parallel port (again). So far I've
interfaced an ADC (thanks goes to Wagner!), using a 3-wire interface -- that
was easy because I was just inputing data. Now, I have an LM75 (I love free
IC samples! <G>) that I wanna try a shot at -- It's I2C. I know
bit-shifiting is accomplished in C using << and >>, but I'm not a C
programmer, I use VB. I've read (I always read up before I post here) that
you can divide or multiply by 2^n but I'm confused. Let's say I'm using D0
on the LPT, and I have the value of 80h, if I wanted to send out that bit on
D0 I'd have to multiply by 2 7 times!? This is where I'm stuck, and I would
appreciate ANY clarification. Again, I thank you all for the immense
More... (looser matching)
- Last day of these posts
- In 1999
, 2000 only
- New search...