Contenido

  1. Before you start
  2. A little history: handheld LCD games
Chapter 1. The watch
  1. Lesson 0. Logic: 0 and 1, gates from transistors, an adder
    1. 0.1. The simulator
    2. 0.2. Boolean algebra: 0, 1 and three operations
    3. 0.3. A transistor is a switch
    4. 0.4. NOT, NAND, NOR from transistors
    5. 0.5. Adding one digit
    6. 0.6. A 4-bit adder
    7. 0.7. The canvas and the check
    8. Lesson 0 as a paste (Cmd+I)
  2. Lesson 1. BCD → 7-segment decoder
    1. 0. What you need to know
    2. 1. The screen
    3. 2. Inputs
    4. 3. Method: truth table → formula
    5. 4. Truth table
    6. 5. Deriving each segment
    7. 6. Assembly
    8. 7. Even cheaper (for later)
    9. 8. The whole lesson as one paste (Cmd+I)
  3. Lesson 2. Memory and a 0…9 counter
    1. 2.1. SR latch — memory for 1 bit
    2. 2.2. D latch — no forbidden combination
    3. 2.3. D flip-flop — remember in one instant
    4. 2.4. The 0…9 counter
    5. 2.5. The machine: counter → decoder → LCD
    6. Lesson 2 as a paste (Cmd+I) — on top of lesson 1
  4. Lesson 3. Seconds 00…59: two digits and a carry
    1. 3.1. How to link two digits — and why not "in a chain"
    2. 3.2. The MUX2 multiplexer: "choose one of two"
    3. 3.3. Chip CNT10E = CNT10 + EN
    4. 3.4. Tens of seconds: 0…5 on the same CNT10E
    5. 3.5. The second digit on the LCD
    6. 3.6. Check
    7. Lesson 3 as a paste (Cmd+I) — on top of lessons 1 and 2
  5. Lesson 4. An HH:MM watch made of blocks
    1. 4.1. Why HH:MM and not six digits
    2. 4.2. The CNT60 block — from scratch, on labels
    3. 4.3. The CNT24 block — hours 00…23
    4. 4.4. The LCD: two more digits and a colon
    5. 4.5. The canvas: a watch from three blocks
    6. 4.6. Check
    7. Lesson 4 as a paste (Cmd+I) — on top of lessons 1–3
  6. Lesson 5. Setting the time
    1. 5.1. The idea
    2. 5.2. Assembly (on top of the lesson-4 canvas)
    3. 5.3. Check
  7. Lesson 6. Real time, SET mode and "one press = +1"
    1. 6.1. An honest generator: 1Hz, 2Hz, 10Hz, 60Hz
    2. 6.2. Why one generator for the whole watch (not "a separate one for the buttons")
    3. 6.3. The ÷10 divider — where "a second has passed" comes from
    4. 6.4. The colon: on half a second, off half a second
    5. 6.5. SET mode
    6. 6.6. Chip EDGE: one press = exactly +1
    7. 6.7. Assembly (on top of the lesson-5 canvas)
    8. 6.8. Check
    9. Pasting the EDGE chip (Cmd+I)
  8. Chapter 1 summary
Chapter 2. The game
  1. Before chapter 2
  2. Lesson 7. The game screen and a 60Hz clock
    1. 7.1. New in the LCD editor
    2. 7.2. The screen picture
    3. 7.3. Marking: 83 pins
    4. 7.4. A 60Hz clock
    5. 7.5. Check
    6. Paste (Cmd+I) — only the new clock elements
  3. Lesson 8. The astronaut's pose: 4 buttons → a register → body and arm
    1. 8.1. A pose = 2 bits
    2. 8.2. The encoder: which button is pressed
    3. 8.3. The register: pressed — stored, released — held
    4. 8.4. The decoder: which arm
    5. 8.5. Building the POSE chip
    6. 8.6. On the canvas
    7. 8.7. Check
    8. Lesson 8 as a paste (Cmd+I)
  4. Lesson 9. Pipes: the crystals roll
    1. 9.1. A pipe = a shift register
    2. 9.2. The game step and taking turns
    3. 9.3. Appearing: where randomness comes from in a circuit
    4. 9.4. Check
    5. Lesson 9 as a paste (Cmd+I)
  5. Lesson 10. Catching and missing
    1. 10.1. The judge
    2. 10.2. Score 000…999
    3. 10.3. Misses and the "flown away" crystal
    4. 10.4. Check
    5. Lesson 10 as a paste (Cmd+I)
  6. Lesson 11. Waiting for START, the game, game over
    1. 11.1. Three states — one flip-flop
    2. 11.2. START is a game reset
    3. 11.3. The GAME chip
    4. 11.4. Check
    5. Lesson 11 as a paste (Cmd+I)
  7. Lesson 12. Speed: the more points, the faster
    1. 12.1. How to make a divider "by P"
    2. 12.2. The SPEED chip
    3. 12.3. Check
    4. Lesson 12 as a paste (Cmd+I)
  8. Lesson 13. The comet
    1. 13.1. When it comes
    2. 13.2. How long it is visible
    3. 13.3. Two points
    4. 13.4. The COMET chip
    5. 13.5. Check
    6. Lesson 13 as a paste (Cmd+I)
  9. Lesson 14. Sound
    1. 14.1. The buzzer
    2. 14.2. A beep of 5 clocks
    3. 14.3. A "boo" on a miss
    4. 14.4. On the canvas
    5. 14.5. Check
    6. Chapter 2 is built
    7. Lesson 14 as a paste (Cmd+I)
  10. Chapter 2 summary
  11. All the parts
  12. Instructions in pictures
  13. Something doesn't work