That was English, but for people who haven't studied binary and hexadecimal number systems and the variants of each, its kind of a joke...
1 in 32 bit binary is:
00000000000000000000000000000001
then changing it to negative with two's complements:
11111111111111111111111111111110
+1 is
11111111111111111111111111111111 (-1, twos complement)
THEN break it up into parts of four starting at the right:
1111 1111 1111 1111 1111 1111 1111 1111
Whats next you ask? Hexadecimal is sub 16 so, 0-9 and A-F. Basically 1111 equals F, so in Hex format: FFFFFFFF
The joke was that we had to show our work by doing the same thing in 8-bit, 16-bit and 32-bit.
1111 1111 (8-bits) = FF
1111 1111 1111 1111 (16-bits) = FFFF
1111 1111 1111 1111 1111 1111 1111 1111 (32-bits) = FFFFFFFF
At least I got to the fun part of my homework which was redesigning electronic circuits.
The question was to redesign a circuit which turned on a light when the car door was open.
We had to make each switch act the same rather than the way they were originally and make the light bulb high asserted rather than low.
The old schematic went as follows:
Two open STSP switches, one side +5, one side ground labeled LDOPEN and RDOPEN for right door and left door as being open. Once closed, +5V was grounded and LDOPEN or RDOPEN became low.
RDOPEN lead to an OR gate and LDOPEN lead to a NAND gate and then to pin 2 of the OR gate. The truth table for the OR gate is as follows
T1-T2-T3
0 - 0 - 0
0 - 1 - 0
1 - 0 - 0
1 - 1 - 1 (only when both inputs equal 1 or high, does the output equal high)
Then the OR gate goes to another NAND gate reversing 1's to 0's and 0's to 1's. This pin went to the light and the second pin of the light went to +5VDC. Wheat that means, is when the OR output is 0, the light turns on and any other time, it is off. Becuase the NAND gate comes after the OR gate, the outputs are 1, 1, 1, 0 so the light is only off once both doors close. Pretty complex when it should be much more simple. I had to simplify it but I already took 10 minugtes to type that when I shold be sleeping, so Ill let you mull over it as is.
It is easier to understand with a picture...and a previous year of discrete electronics theory![]()
Huh:what:
Good morning you lot. I am back at work and raring to go!
Home!
Oh well, only about 8 hours to go.
For some reason I been playing Doom on GBA quite a lot the past 2 days
Got to the Hell map with no real trouble though even on hard![]()
Anyone know if Rogue Squadron 3d for PC is considered abandonware now?
Early break round today. Means two blocks of two hours of calls in a row at the end of the day.
Blegh.
Wonder if I should call in sick. Probably a bad idea.![]()
Time to wait for the post to arrive
Figured it was time for an avatar switch up
Woken up at 7AM by the post, and couldn't get back to sleep. ;__;