Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

28
Group 8: Video Game Group 8: Video Game Console Console Team Members: Team Members: Rich Capone Rich Capone Hong Jin Cho Hong Jin Cho Dave Elliott Dave Elliott Ryan Gates Ryan Gates

Transcript of Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

Page 1: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

Group 8: Video Game ConsoleGroup 8: Video Game Console

Team Members:Team Members:

Rich CaponeRich Capone

Hong Jin ChoHong Jin Cho

Dave ElliottDave Elliott

Ryan GatesRyan Gates

Page 2: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

Purpose:Purpose:

To create a simple video game system.To create a simple video game system.

Functionality:Functionality:

A “black box” with a controller input, A “black box” with a controller input, CompactFlash card interface, NTSC CompactFlash card interface, NTSC video and single speaker sound output.video and single speaker sound output.

Project OverviewProject Overview

Page 3: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

Project OverviewProject Overview

Project Success Criteria:Project Success Criteria:Ability to boot and initialize peripheral Ability to boot and initialize peripheral devicesdevicesAbility to read data from CompactFlashAbility to read data from CompactFlashAbility to output NTSC videoAbility to output NTSC videoAbility to interpret handheld controller Ability to interpret handheld controller signalsignalAbility to generate sound to a system Ability to generate sound to a system speakerspeaker

Page 4: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

Microprocessor

Motorola HCS12

Sound Circuit

Compact Flash (Game Cartridge)

Power Supply 5V

Power/Reset Button

Game Controller

Sound to Speaker

PWM

SRAM256K

RS-232 & BDM

Xilinx XC95108

SRAM

RGB NTSC Encoder

NTSC Composite

Address Latch

JTAG

Page 5: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

Component SelectionComponent Selection

Ram – CY7C109BRam – CY7C109B Fast Access (12 ns)Fast Access (12 ns) 2 x 128KB2 x 128KB

Address Latches 74AHCT573Address Latches 74AHCT573 8-bit Address Latch for Memory8-bit Address Latch for Memory Very Fast Address Latch (3.5ns)Very Fast Address Latch (3.5ns)

Page 6: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

Component SelectionComponent Selection

Motorola HCS12Motorola HCS12 Fast general I/O pins Fast general I/O pins Large number of I/O pinsLarge number of I/O pins Multiplexed data/address busMultiplexed data/address bus 25 Mhz25 Mhz Development interface (CodeWarrior)Development interface (CodeWarrior)

Via BDM and RS-232Via BDM and RS-232 Simple RAM interfaceSimple RAM interface

Timings adjusted via registersTimings adjusted via registers

Page 7: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

Component SelectionComponent Selection

Xilinx XC95108Xilinx XC95108 Required number of pins (84pin PLCC)Required number of pins (84pin PLCC) In-circuit programmableIn-circuit programmable Development board availableDevelopment board available Capable of 4x NTSC frequencyCapable of 4x NTSC frequency Preferred part from reference designPreferred part from reference design

Page 8: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

Component SelectionComponent SelectionVoltage RegulatorVoltage Regulator

Major ICsMajor ICs

QtyQty Part #Part #Continuous Continuous Current ReqCurrent Req

Peak Current Peak Current ReqReq

33 CY7C109CY7C109 5050 mAmA

11 MC9S12A256MC9S12A256 6565 mAmA

22 74VHC373/SO74VHC373/SO 7575 mAmA

11 XC95108XC95108 <75<75 192.9192.9 mAmA

11 MAX232 MAX232 1515 1818 mAmA

11 AD724AD724 3333 4242 mAmA

11 TC1034ECTTC1034ECT 44 mAmA

Continuous IC Current Req.~317mA

Peak IC Current Req.~443.98 mA

Peak will add ~10% for Capacitor charging.

Supply should be larger than necessary to prevent overdriving, and for expansibility (additional handheld controllers, network

connectivity, etc)

Minimum regulator = 750mA Maximum regulator = 1.5A

Page 9: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

Component SelectionComponent SelectionVoltage RegulatorVoltage Regulator

Solutions:

MAX 744A - 1A load current

LM1572 - 1.5A load current

LM1572 is the current design choice however, if less current is required, the MAX744A can be used to increase efficiency.

Page 10: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

Parts Necessary for PackagingParts Necessary for PackagingCompactFlash RCA jack

SPDT Power/SPST Reset switch Wall wart Nintendo NES Controller

Page 11: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

AutoCAD design of Game System – 3D FrontAutoCAD design of Game System – 3D Front

Page 12: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

AutoCAD design of Game System – 3D BackAutoCAD design of Game System – 3D Back

Page 13: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

CompactFlash AdaptorCompactFlash Adaptor

Page 14: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

AutoCAD design of Game System - FrontAutoCAD design of Game System - Front

Page 15: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

2 port RCA Jack2 port RCA Jack

Page 16: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

AutoCAD design of Game System -BackAutoCAD design of Game System -Back

Page 17: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

AutoCAD design of Game System - LeftAutoCAD design of Game System - Left

Page 18: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

Schematic OverviewSchematic Overview

Page 19: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

Schematic – Power SupplySchematic – Power Supply

The Power Supply is a basic switching regulator.The Power Supply is a basic switching regulator. Two reference designs are under consideration, a Two reference designs are under consideration, a

final choice will be based upon a final circuit mock-up final choice will be based upon a final circuit mock-up to determine actual current draw.to determine actual current draw.

The circuit board will utilize a unique jumper based The circuit board will utilize a unique jumper based voltage isolation scheme. The board will have the voltage isolation scheme. The board will have the ability to turn on/off +5V to both the video circuit, and ability to turn on/off +5V to both the video circuit, and the main microcontroller circuit to aid in debugging as the main microcontroller circuit to aid in debugging as well as isolate chips to simplify programming. Noise well as isolate chips to simplify programming. Noise introduction will be minimal compared to utility in introduction will be minimal compared to utility in debugging.debugging.

Page 20: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

Schematic – MotorolaSchematic – Motorola

Available Ports (all ports are 8bit): Available Ports (all ports are 8bit): Port A Port A – Address [15:8] Data Bus [0:7] (multiplexed)– Address [15:8] Data Bus [0:7] (multiplexed) Port B Port B – Address [0:7] – Address [0:7] (multiplexed) (multiplexed) Port KPort K -- Extended Addressing-- Extended Addressing Port W Port W – Main RAM Control Signals– Main RAM Control Signals Port H Port H – Video Ram Control Signals– Video Ram Control Signals Port J Port J – CF Address bus– CF Address bus Port MPort M– CF Data bus– CF Data bus Port TPort T – CF Control signals – Controller Data– CF Control signals – Controller Data Port P (PWMs) – Audio[0] – Handheld controller[1:2]Port P (PWMs) – Audio[0] – Handheld controller[1:2] Port S Port S – RS-232 (Serial Comms) – RS-232 (Serial Comms) Port A/D Port A/D -- A/D Converters (not used) -- A/D Converters (not used)

Page 21: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

Schematic – MotorolaSchematic – Motorola

Programming accomplished via the BDM Programming accomplished via the BDM interface (Background Debug Mode).interface (Background Debug Mode). Pin BKGDPin BKGD

Processor Core voltage generated by on-Processor Core voltage generated by on-chip step-down voltage regulator. 5V-3.3Vchip step-down voltage regulator. 5V-3.3V

Page 22: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

Schematic – Motorola CrystalSchematic – Motorola Crystal

Capacitors for the crystalCapacitors for the crystal Typical input capacitance : 9 nFTypical input capacitance : 9 nF Citizen 16 Mhz crystal has 18 nF Citizen 16 Mhz crystal has 18 nF

capacitance.capacitance. Input capacitance: 31.9 nFInput capacitance: 31.9 nF

Phase Locked Loop FilterPhase Locked Loop Filter R < 4606 ohmR < 4606 ohm Cs > 5.9 nFCs > 5.9 nF Cs/20 <= Cp <= Cs/10Cs/20 <= Cp <= Cs/10 Cs = 22 nF, Cp = 2.2 nF, Rs = 1KohmCs = 22 nF, Cp = 2.2 nF, Rs = 1Kohm Meets the spec!Meets the spec!

Page 23: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

Schematic – Data/Address BusSchematic – Data/Address Bus

Page 24: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

Schematic – Video SystemSchematic – Video System

Xilinx CPLD updates Video RAM, drives Xilinx CPLD updates Video RAM, drives the NTSC encoder and interfaces to the NTSC encoder and interfaces to memorymemoryResistor matrix creates analog RGB Resistor matrix creates analog RGB signalssignalsVideo RAM stores the screen image (4 Video RAM stores the screen image (4 bits per pixel)bits per pixel)AD724 converts analog RGB signals into AD724 converts analog RGB signals into NTSC videoNTSC video

Page 25: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

Memory mode – Byte by Byte accessMemory mode – Byte by Byte access8bit data, 3bit address pins8bit data, 3bit address pinsOver current protection Over current protection

220uF bulk capacitor220uF bulk capacitor

OperationOperationAddress register setup Command Address register setup Command register setup Buffer filled with a sector register setup Buffer filled with a sector data Strobing CFOE low accesses next data Strobing CFOE low accesses next byte from the buffer. byte from the buffer. Writing is similar, except using CFWE Writing is similar, except using CFWE instead of CFOE.instead of CFOE.

Schematic - CompactFlashSchematic - CompactFlash

Page 26: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

Schematic -- RS-232Schematic -- RS-232

The HCS12 has a built-in RS-232 port.The HCS12 has a built-in RS-232 port.

That will be connected to a MAX232 line That will be connected to a MAX232 line driver for isolation.driver for isolation.

This port will mainly be used for debugging This port will mainly be used for debugging and interfacing to Motorola’s CodeWarrior and interfacing to Motorola’s CodeWarrior suite.suite.

Page 27: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

Digital AudioDigital Audio

The audio circuit is a PWM driven follower The audio circuit is a PWM driven follower circuit.circuit.

1 channel means simplistic audio where 1 channel means simplistic audio where the audible frequency (tone) is adjusted by the audible frequency (tone) is adjusted by the PWM duty cycle.the PWM duty cycle.

Audio is not a critical goal of the design, so Audio is not a critical goal of the design, so simple beeps [and boops] will suffice.simple beeps [and boops] will suffice.

Page 28: Group 8: Video Game Console Team Members: Rich Capone Hong Jin Cho Dave Elliott Ryan Gates.

Questions??Questions??