+ All Categories
Home > Documents > Computer Engineering Capstone Design Summer A...

Computer Engineering Capstone Design Summer A...

Date post: 27-Sep-2018
Category:
Upload: trantuyen
View: 217 times
Download: 0 times
Share this document with a friend
22
Computer Engineering Capstone Design Summer A 1998–2000: Handheld Video Games J. S. McDonald IEEE/HKN Odd-Wednesday Talks May 24, 2000 http://www.kettering.edu/~mcdonald/ece403/
Transcript
Page 1: Computer Engineering Capstone Design Summer A …tex.loria.fr/ctan-doc/support/dvipdfm/mcdonald-slides.pdf · rb0/int rb7:rb1 rc0/t1oso/t1cki rc1/t1osi/ccp2 rc2/ccp1 rc3/sck/scl rc4/sdi/sd

Computer Engineering Capstone DesignSummer A 1998–2000:

Handheld Video GamesJ. S. McDonald

IEEE/HKN Odd-Wednesday TalksMay 24, 2000

http://www.kettering.edu/~mcdonald/ece403/

Page 2: Computer Engineering Capstone Design Summer A …tex.loria.fr/ctan-doc/support/dvipdfm/mcdonald-slides.pdf · rb0/int rb7:rb1 rc0/t1oso/t1cki rc1/t1osi/ccp2 rc2/ccp1 rc3/sck/scl rc4/sdi/sd

PIC-Pong• By Rickard Gunee; uses a 4-MHz PIC16F84 and a TV(!)

• the game in action:

• the game:

IEEE/HKNSlide 1

Page 3: Computer Engineering Capstone Design Summer A …tex.loria.fr/ctan-doc/support/dvipdfm/mcdonald-slides.pdf · rb0/int rb7:rb1 rc0/t1oso/t1cki rc1/t1osi/ccp2 rc2/ccp1 rc3/sck/scl rc4/sdi/sd

Origi

nalG

ameB

oyPat

ent

IEEE/H

KN

Slid

e2

Page 4: Computer Engineering Capstone Design Summer A …tex.loria.fr/ctan-doc/support/dvipdfm/mcdonald-slides.pdf · rb0/int rb7:rb1 rc0/t1oso/t1cki rc1/t1osi/ccp2 rc2/ccp1 rc3/sck/scl rc4/sdi/sd

Gam

eBoy

Pat

ent

Dra

win

gs

IEEE/H

KN

Slid

e3

Page 5: Computer Engineering Capstone Design Summer A …tex.loria.fr/ctan-doc/support/dvipdfm/mcdonald-slides.pdf · rb0/int rb7:rb1 rc0/t1oso/t1cki rc1/t1osi/ccp2 rc2/ccp1 rc3/sck/scl rc4/sdi/sd

Gam

eBoy

Blo

ckD

iagr

am

IEEE/H

KN

Slid

e4

Page 6: Computer Engineering Capstone Design Summer A …tex.loria.fr/ctan-doc/support/dvipdfm/mcdonald-slides.pdf · rb0/int rb7:rb1 rc0/t1oso/t1cki rc1/t1osi/ccp2 rc2/ccp1 rc3/sck/scl rc4/sdi/sd

GameBoy Schematic

IEEE/HKNSlide 5

Page 7: Computer Engineering Capstone Design Summer A …tex.loria.fr/ctan-doc/support/dvipdfm/mcdonald-slides.pdf · rb0/int rb7:rb1 rc0/t1oso/t1cki rc1/t1osi/ccp2 rc2/ccp1 rc3/sck/scl rc4/sdi/sd

Project Overview (1999)In a Nutshell

Design and build a hand-held video game.

Some Details

The game must

• use a Microchip PIC 16C74A microcontroller

• use a Micro Electronics SG128128 graphic LCD module

• have an appropriate soundtrack and/or sound effects

• be battery-powered, compact, and sturdily constructed

• survive evaluation by a dozen 5th-graders!?!!

IEEE/HKNSlide 6

Page 8: Computer Engineering Capstone Design Summer A …tex.loria.fr/ctan-doc/support/dvipdfm/mcdonald-slides.pdf · rb0/int rb7:rb1 rc0/t1oso/t1cki rc1/t1osi/ccp2 rc2/ccp1 rc3/sck/scl rc4/sdi/sd

Project History• 1998: “Original Edition Handheld Video Games”:

– no sound, makeshift buttons and cases

– Games: Street Fighter, Battleship, Breakout, PIC Pilot

• 1999: “Handheld Video Games II”:

– one- or two-track sound, real NES buttons, smaller cases

– Games: Combat!, Bowling, Go Banana!, Tetris, MissileCommand, Duel Tetris, PICman

• 2000: “Ultimate Handheld Video Games” (as in, the last):

– custom printed-circuit boards, even smaller cases, in-circuitemulator for development

– Games: ???IEEE/HKNSlide 7

Page 9: Computer Engineering Capstone Design Summer A …tex.loria.fr/ctan-doc/support/dvipdfm/mcdonald-slides.pdf · rb0/int rb7:rb1 rc0/t1oso/t1cki rc1/t1osi/ccp2 rc2/ccp1 rc3/sck/scl rc4/sdi/sd

PIC Overview• Harvard architecture (separate instruction and data memories)

– 14-bit instructions

– 8-bit data

• Single-cycle instruction execution via instruction pre-fetch

1997 Microchip Technology Inc. DS30390E-page 17

PIC16C7X

3.1�

Clocking Scheme/Instruction Cycle

The clock input (from OSC1) is internally divided byfour to generate four non-overlapping quadratureclocks namely Q1, Q2, Q3 and Q4. Internally, the pro-gram counter (PC) is incremented every Q1, theinstruction is fetched from the program memory andlatched into the instruction register in Q4. The instruc-tion is decoded and executed during the following Q1through Q4. The clocks and instruction execution flowis shown in Figure 3-4.

3.2�

Instruction Flow/Pipelining�

An “Instruction Cycle” consists of four Q cycles (Q1,Q2, Q3 and Q4). The instruction fetch and execute arepipelined such that fetch takes one instruction cyclewhile decode and execute takes another instructioncycle. However, due to the pipelining, each instructioneffectively executes in one cycle. If an instructioncauses the program counter to change (e.g. GOTO)

then two cycles are required to complete the instruction(Example 3-1).

A fetch cycle begins with the program counter (PC)incrementing in Q1.

In the execution cycle, the fetched instruction is latchedinto the “Instruction Register" (IR) in cycle Q1. Thisinstruction is then decoded and executed during theQ2, Q3, and Q4 cycles. Data memory is read during Q2(operand read) and written during Q4 (destinationwrite).

FIGURE 3-4: CLOCK/INSTRUCTION CYCLE

EXAMPLE 3-1: INSTRUCTION PIPELINE FLOW

Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4

OSC1

Q1

Q2

Q3

Q4

PC

OSC2/CLKOUT(RC mode)

PC PC+1 PC+2

Fetch INST (PC)Execute INST (PC-1) Fetch INST (PC+1)

Execute INST (PC) Fetch INST (PC+2)Execute INST (PC+1)

Internalphase�cloc� k

All instructions are single cycle, except for any program branches. These take two cycles since the fetchinstruction is “flushed” from the pipeline while the new instruction is being fetched and then executed.

Tcy0 Tcy1 Tcy2 Tcy3 Tcy4 Tcy5

1. MOVLW 55h Fetch 1 Execute 1

2. MOVWF PORTB Fetch 2 Execute 2

3. CALL SUB_1 Fetch 3 Execute 3

4. BSF PORTA, BIT3 (Forced NOP) Fetch 4 Flush

5. Instruction @ address SUB_1 Fetch SUB_1 Execute SUB_1

• 200-ns instruction cycle

• Reduced instruction set (35 total) . . .

IEEE/HKNSlide 8

Page 10: Computer Engineering Capstone Design Summer A …tex.loria.fr/ctan-doc/support/dvipdfm/mcdonald-slides.pdf · rb0/int rb7:rb1 rc0/t1oso/t1cki rc1/t1osi/ccp2 rc2/ccp1 rc3/sck/scl rc4/sdi/sd

PIC

Inst

ruct

ion

Set

1

997

Mic

roch

ip T

echn

olog

y In

c.D

S31

005A

-pag

e 5-

3

Sec

tio

n 5

. CP

U a

nd

AL

U

CPU and ALU

5

Tab

le 5

-1:

Mid

-Ran

ge

MC

U In

stru

ctio

n S

et

Mn

emo

nic

,O

per

and

sD

escr

ipti

on

Cyc

les

14-B

it In

stru

ctio

n W

ord

Sta

tus

Bit

sA

ffec

ted

No

tes

MS

bL

Sb

BY

TE

-OR

IEN

TE

D F

ILE

RE

GIS

TE

R O

PE

RA

TIO

NS

AD

DW

FA

ND

WF

CLR

FC

LRW

CO

MF

DE

CF

DE

CF

SZ

INC

FIN

CF

SZ

IOR

WF

MO

VF

MO

VW

FN

OP

RLF

RR

FS

UB

WF

SW

AP

FX

OR

WF

f, d

f, d

f - f, d

f, d

f, d

f, d

f, d

f, d

f, d

f - f, d

f, d

f, d

f, d

f, d

Add

W a

nd f

AN

D W

with

fC

lear

fC

lear

WC

ompl

emen

t fD

ecre

men

t fD

ecre

men

t f, S

kip

if 0

Incr

emen

t fIn

crem

ent f

, Ski

p if

0In

clus

ive

OR

W w

ith f

Mov

e f

Mov

e W

to f

No

Ope

ratio

nR

otat

e Le

ft f t

hrou

gh C

arry

Rot

ate

Rig

ht f

thro

ugh

Car

ryS

ubtr

act W

from

fS

wap

nib

bles

in f

Exc

lusi

ve O

R W

with

f

1 1 1 1 1 1 1(2)

1 1(2)

1 1 1 1 1 1 1 1 1

000000000000000000000000000000000000

0111

0101

0001

0001

1001

0011

1011

1010

1111

0100

1000

0000

0000

1101

1100

0010

1110

0110

dfff

dfff

lfff

0xxx

dfff

dfff

dfff

dfff

dfff

dfff

dfff

lfff

0xx0

dfff

dfff

dfff

dfff

dfff

ffff

ffff

ffff

xxxx

ffff

ffff

ffff

ffff

ffff

ffff

ffff

ffff

0000

ffff

ffff

ffff

ffff

ffff

C,D

C,Z

Z Z Z Z Z Z Z Z C C C,D

C,Z

Z

1,2

1,2

2 1,2

1,2

1,2,

31,

21,

2,3

1,2

1,2

1,2

1,2

1,2

1,2

1,2

BIT

-OR

IEN

TE

D F

ILE

RE

GIS

TE

R O

PE

RA

TIO

NS

BC

FB

SF

BT

FS

CB

TF

SS

f, b

f, b

f, b

f, b

Bit

Cle

ar f

Bit

Set

fB

it Te

st f,

Ski

p if

Cle

arB

it Te

st f,

Ski

p if

Set

1 1 1 (2

)1

(2)

01010101

00bb

01bb

10bb

11bb

bfff

bfff

bfff-

bfff

ffff

ffff

ffff

ffff

1,2

1,2

3 3L

ITE

RA

L A

ND

CO

NT

RO

L O

PE

RA

TIO

NS

AD

DLW

AN

DLW

CA

LLC

LRW

DT

GO

TOIO

RLW

MO

VLW

RE

TF

IER

ET

LWR

ET

UR

NS

LEE

PS

UB

LWX

OR

LW

k k k - k k k - k - - k k

Add

lite

ral a

nd W

AN

D li

tera

l with

WC

all s

ubro

utin

eC

lear

Wat

chdo

g T

imer

Go

to a

ddre

ssIn

clus

ive

OR

lite

ral w

ith W

Mov

e lit

eral

to W

Ret

urn

from

inte

rrup

tR

etur

n w

ith li

tera

l in

W

Ret

urn

from

Sub

rout

ine

Go

into

sta

ndby

mod

eS

ubtr

act W

from

lite

ral

Exc

lusi

ve O

R li

tera

l with

W

1 1 2 1 2 1 1 2 2 2 1 1 1

11111000101111001100001111

111x

1001

0kkk

0000

1kkk

1000

00xx

0000

01xx

0000

0000

110x

1010

kkkk

kkkk

kkkk

0110

kkkk

kkkk

kkkk

0000

kkkk

0000

0110

kkkk

kkkk

kkkk

kkkk

kkkk

0100

kkkk

kkkk

kkkk

1001

kkkk

1000

0011

kkkk

kkkk

C,D

C,Z

Z T O,P

D

Z T O,P

DC

,DC

,ZZ

Not

e1:

Whe

n an

I/O

reg

iste

r is

mod

ified

as

a fu

nctio

n of

itse

lf (

e.g.

, MOVF PORTB, 1),

the

valu

e us

ed w

ill b

e th

at

valu

e pr

esen

t on

the

pins

them

selv

es. F

or e

xam

ple,

if th

e da

ta la

tch

is '1

' for

a p

in c

onfig

ured

as

inpu

t and

is

driv

en lo

w b

y an

ext

erna

l dev

ice,

the

data

will

be

writ

ten

back

with

a '0

'.2:

If th

is in

stru

ctio

n is

exe

cute

d on

the

TM

R0

regi

ster

(an

d, w

here

app

licab

le, d

= 1

), th

e pr

esca

ler

will

be

clea

red

if as

sign

ed to

the

Tim

er0

Mod

ule.

3:If

Pro

gram

Cou

nter

(P

C)

is m

odifi

ed o

r a

cond

ition

al te

st is

true

, the

inst

ruct

ion

requ

ires

two

cycl

es. T

he

seco

nd c

ycle

is e

xecu

ted

as a

NO

P.

IEEE/H

KN

Slid

e9

Page 11: Computer Engineering Capstone Design Summer A …tex.loria.fr/ctan-doc/support/dvipdfm/mcdonald-slides.pdf · rb0/int rb7:rb1 rc0/t1oso/t1cki rc1/t1osi/ccp2 rc2/ccp1 rc3/sck/scl rc4/sdi/sd

PIC

16C74

A

PIC

16C

7X

DS

3039

0E-p

age

12

199

7 M

icro

chip

Tec

hnol

ogy

Inc.

FIG

UR

E 3

-3:

PIC

16C

74/7

4A/7

7 B

LO

CK

DIA

GR

AM

EP

RO

M

Pro

gram

Mem

ory

13D

ata

Bus

8�

14P

rogr

amB

us

Inst

ruct

ion

reg

Pro

gram

Cou

nter

8 Le

vel S

tack

(13-

bit)

RA

MF

ileR

egis

ters

Dire

ct A

ddr

7

RA

M A

ddr

(1)

9�

Add

r M

UX

Indi

rect

Add

r

FS

R r

eg

STA

TU

S r

eg

MU

X

ALU

� W r

eg

Pow

er-u

pT

imer

Osc

illat

or

Sta

rt-u

p T

imer

Pow

er-o

nR

eset

W�

atch

dog

Tim

er

Inst

ruct

ion

Dec

ode

&C

ontr

ol

Tim

ing

Gen

erat

ion

OS

C1/

CLK

IN

� OS

C2/

CLK

OU

T

MC

LRV�

DD

, VS

S

PO

RTA

PO

RT

B

PO

RT

C

PO

RT

D

PO

RT

E

RA

4/T

0CK

IR

A5/

SS

/AN

4

RB

0/IN

T

RB

7:R

B1

RC

0/T

1OS

O/T

1CK

IR

C1/

T1O

SI/C

CP

2R

C2/

CC

P1

RC

3/S

CK

/SC

LR

C4/

SD

I/SD

AR

C5/

SD

OR

C6/

TX

/CK

RC

7/R

X/D

T

RD

7/P

SP

7:R

D0/

PS

P0

RE

0/R

D/A

N5

RE

1/W

R/A

N6

RE

2/C

S/A

N7

8�

8�

Bro

wn-

out

Res

et(2

)�

Not

e1:

Hig

her

orde

r bi

ts a

re fr

om th

e S

TAT

US

reg

iste

r.2:

Bro

wn-

out R

eset

is n

ot a

vaila

ble

on th

e P

IC16

C74

.

US

AR

TC

CP

1C

CP

2S

ynch

rono

us

A/D

Tim

er0

Tim

er1

Tim

er2

Ser

ial P

ort

RA

3/A

N3/

VR

EF

RA

2/A

N2

RA

1/A

N1

RA

0/A

N0

Par

alle

l Sla

ve P

ort

8�

3�

Dev

ice

Pro

gra

m M

emo

ryD

ata

Mem

ory

(R

AM

)

PIC

16C

74P

IC16

C74

AP

IC16

C77

4K x

14

4K x

14

8K x

14

192

x 8

192

x 8

368

x 8

•4K

prog

ram

and

192-

byte

data

mem

orie

s

•33

I/O

s,in

clud

ing

8A/D IE

EE/H

KN

Slid

e10

Page 12: Computer Engineering Capstone Design Summer A …tex.loria.fr/ctan-doc/support/dvipdfm/mcdonald-slides.pdf · rb0/int rb7:rb1 rc0/t1oso/t1cki rc1/t1osi/ccp2 rc2/ccp1 rc3/sck/scl rc4/sdi/sd

PIC

16C74

AReg

iste

rs

1

997

Mic

roch

ip T

echn

olog

y In

c.D

S30

390E

-pag

e 21

PIC

16C

7X

FIG

UR

E 4

-4:

PIC

16C

72 R

EG

IST

ER

FIL

E

MA

P

IND

F(1

)

TM

R0

PC

LS

TAT

US

FS

RP

OR

TAP

OR

TB

PO

RT

C

PC

LAT

HIN

TC

ON

PIR

1

TM

R1L

TM

R1H

T1C

ON

� TM

R2

� T2C

ON

SS

PB

UF

SS

PC

ON

CC

PR

1L

� CC

PR

1HC

CP

1CO

N

AD

RE

SA

DC

ON

0

IND

F(1

)

OP

TIO

NP

CL

ST

ATU

SF

SR

TR

ISA

TR

ISB

� TR

ISC

� PC

LAT

HIN

TC

ON

PIE

1

PC

ON

PR

2S

SPA

DD

SS

PS

TAT

AD

CO

N1

00h

� 01h

� 02h

� 03h

� 04h

� 05h

� 06h

� 07h

� 08h

� 09h

� 0Ah

� 0Bh

� 0Ch

� 0Dh

� 0Eh

� 0Fh

� 10h

11h

12h

13h

14h

15h

16h

17h

18h

19h

1Ah

1Bh

1Ch

1Dh

1Eh

1Fh

80h

� 81h

� 82h

� 83h

� 84h

� 85h

� 86h

� 87h

� 88h

� 89h

� 8Ah

� 8Bh

� 8Ch

� 8Dh

� 8Eh

� 8Fh

� 90h

� 91h

� 92h

� 93h

� 94h

� 95h

� 96h

� 97h

� 98h

� 99h

� 9Ah

� 9Bh

� 9Ch

� 9Dh

� 9Eh

� 9Fh

20h

A0h

Gen

eral

Pur

pose

Reg

iste

r

Gen

eral

Pur

pose

Reg

iste

r

7Fh

FF

hB

ank

0B

ank

1

File

Add

ress

BF

hC

0h

Uni

mpl

emen

ted

data

mem

ory

loca

tions

, rea

d as

'0

'.N

ote

1:N

ot a

phy

sica

l reg

iste

r.

File

Add

ress

FIG

UR

E 4

-5:

PIC

16C

73/7

3A/7

4/74

A

RE

GIS

TE

R F

ILE

MA

P

IND

F(1

)

TM

R0

PC

LS

TAT

US

FS

RP

OR

TAP

OR

TB

PO

RT

CP

OR

TD

(2)

PO

RT

E(2

)

PC

LAT

HIN

TC

ON

PIR

1P

IR2

TM

R1L

TM

R1H

� T1C

ON

TM

R2

T2C

ON

SS

PB

�U

FS

SP

CO

NC

CP

R1L

CC

PR

1H

� CC

P1C

ON

RC

STA

TX

RE

GR

CR

EG

CC

PR

2LC

CP

R2H

� CC

P2C

ON

AD

RE

S

� AD

CO

N0

IND

F(1

)

OP

TIO

N

PC

LS

TAT

US

FS

RT

RIS

AT

RIS

B

� TR

ISC

TR

ISD

(2)

TR

ISE

(2)

PC

LAT

HIN

TC

ON

PIE

1P

IE2

PC

ON

PR

2S

SP

AD

DS

SP

ST

AT

TX

STA

SP

BR

G

� AD

CO

N1

00h

01h

02h

03h

04h

05h

06h

07h

08h

09h

0Ah

0Bh

0Ch

0Dh

0Eh

0Fh

10h

11h

12h

13h

14h

15h

16h

17h

18h

19h

1Ah

1Bh

1Ch

1Dh

1Eh

1Fh

80h

81h

82h

83h

84h

85h

86h

87h

88h

89h

8Ah

8Bh

8Ch

8Dh

8Eh

8Fh

90h

91h

92h

93h

94h

95h

96h

97h

98h

99h

9Ah

9Bh

9Ch

9Dh

9Eh

9Fh

20h

A0h

Gen

er

alP

urpo

seR

egis

ter

Gen

er

alP

urpo

seR

egis

ter

7Fh

FF

h

Ban

k 0

Ban

k 1

File

Add

ress

File

Add

ress

Uni

mpl

emen

ted

data

mem

ory

loca

tions

, rea

d as

'0

'.N

ote

1:N

ot a

phy

sica

l reg

iste

r.2:

The

se r

egis

ters

are

not

phy

sica

lly im

ple-

men

ted

on th

e P

IC16

C73

/73A

, rea

d as

'0'.

IEEE/H

KN

Slid

e11

Page 13: Computer Engineering Capstone Design Summer A …tex.loria.fr/ctan-doc/support/dvipdfm/mcdonald-slides.pdf · rb0/int rb7:rb1 rc0/t1oso/t1cki rc1/t1osi/ccp2 rc2/ccp1 rc3/sck/scl rc4/sdi/sd

Development Environment• PICDEM-2 demonstration board

• MPLAB IDE (Integrated Development Environment)

– assembler

– linker

– excellent simulator

Free for download, with many useful application notes

• Chipmaster 6000 device programmer

• U-V eraser

IEEE/HKNSlide 12

Page 14: Computer Engineering Capstone Design Summer A …tex.loria.fr/ctan-doc/support/dvipdfm/mcdonald-slides.pdf · rb0/int rb7:rb1 rc0/t1oso/t1cki rc1/t1osi/ccp2 rc2/ccp1 rc3/sck/scl rc4/sdi/sd

PICDEM-2 Demonstration Board

1998 M

icrochip Technology Inc.

DS

30374B-page 79

Ap

pen

dix A

. Hard

ware D

etail

Figu

re A-2:

PIC

DE

M-2 S

chem

atic

VDD VDD MCLR RA0 RA1 RA2 RA3 RA4 RA5 RB0 RB1 RB2 RB3 RB4 RB5 RB6 RB7 OSC1 VSS VSS

11 32

1 2 3 4 5 6 7

33 34 35 36 37 38 39 40

13

12 31

U1

PIC16C64

+5V

C2

NMCLR RA0 RA1 RA2 RA3 RA4 RA5 RB0 RB1 RB2 RB3 RB4 RB5 RB6 RB7

RD0 RD1 RD2 RD3 RD4 RD5 RD6 RD7 OS0 OS1 RC2 SCL SDA RC5

TX RXRB

+5V

R16 5K 470

C16 0.01

LM78L05U5

IN OUTCOM

1

42

3 W02M

CR1

+9V Battery

J2132

DJ005A

C18 220

C19 0.1

VCC2

11 10

12

9

1

3

6

U3

MAX232A

+5V

C12 0.1

TX RX

14 7 13 8 4 5

V+ T1IN T2IN R1OUT R2OUT C1+ C1- V-

T1OUT T2OUT

R1IN R2IN

C2+

C2-

GND

15C14 0.1

C11

0.1

C15 0.1

1 2 3 4 5

6 7 8 9

J1

16

+

Notes: Unless otherwise specified, resistance values are in ohms, 5% 1/4W. Capacitance values are in microfarads.

0.1

RE0 RE1 RE2 RD0 RD1 RD2 RD3 RD4 RD5 RD6 RD7 RC0 RC1 RC2 RC3 RC4 RC5 RC6 RC7

OSC2

8 9 10 19 20 21 22 27 28 29 30 15 16 17 18 23 24 25 26 14

1 2 3 4 5 6 7 8

R1 4.7KS1

+5V

C1 0.1

+5V

R4 4.7K

C3 20PF

OSC1

Provision Only

1 2 3 4 5 6

RA0 RA1 RA2 RA3 RA4 RA5

R2

S2

+5V

R3 4.7K

A0 A1 A2 SCL WP

1 2 3

6 7

U4

SDA

+5V

524LC01B

VDD

VSS

C10

0.1

+5V+5V

X1

CR2 1N914

+C17 220

VDD MCLR RA0 RA1 RA2 RA3 RA4 RA5 RB0 RB1 RB2 RB3 RB4 RB5 RB6 RB7 VSS VSS

20

1

2 3 4 5 6 7

21 22 23 24 25 26 27 28

8

19

U2

PIC16C73

+5VC8

NMCLR RA0 RA1 RA2 RA3 RA4 RA5 RB0 RB1 RB2 RB3 RB4 RB5 RB6 RB7

OSC1

OSC2

0.1

OSC1

OSC2

RC0 RC1 RC2 RC3 RC4 RC5 RC6 RC7

9 10 11 12 13 14 15 16 17 18

OSO OSI RC2 SCL SDA RC5

TX RX

RE0 RE1 RE2

RE

+5VR5

10K

R6

330

J3+5V1 2 3 4 5 6 7 8 9

10 11 12 13 14

RA1 RA2 RA3

FOR LCD DSPLY

R7 4.7K S3

+5V

C9 0.1

C13 0.1

R14 10

+5VR15

470GRN

POWER

D1

J8

Y1

TBDC4 20PF

C5 20PF

Not PopulatedOUT

TXCO

RC1 2 3 4 5 6 7 8

OSO OSI RC2 SCL SDA RC5

TX RX

(RC0) (RC1)

(RC3) (RC4)

(RC6) (RC7)

RD1 2 3 4 5 6 7 8

RD0 RD1 RD2 RD3 RD4 RD5 RD6 RD7

J41 2 3 4 5 6 7 8 9

KEYBOARD

9 P

IN H

EA

DE

R

RB0 RB1 RB2 RB3

RN3 RB4

RN3 RB5

RN3 RB6

RN3 RB7

RN1 RB0

RN1 RB1

RN1 RB2

RN1 RB3

RN2 RB4

RN2 RB5

RN2 RB6

RN2 RB7

D2

D3

D4

D5

D6

D7

D8

D9

J7

J6

OSC2

Provision Only, Not Populated

Y3

TBDC6 20pF

C7 20pF

+5V

R10 10

R11 10

R12 820

R8 10

R9 10

R13 820

+5V +5V

RA

Y2

J5

8

Breadboard

R19 470

R17 470

R18 470

4

3

RN3

4

4

4

3

3

IEEE/HKNSlide 13

Page 15: Computer Engineering Capstone Design Summer A …tex.loria.fr/ctan-doc/support/dvipdfm/mcdonald-slides.pdf · rb0/int rb7:rb1 rc0/t1oso/t1cki rc1/t1osi/ccp2 rc2/ccp1 rc3/sck/scl rc4/sdi/sd

MPLAB IDE

IEEE/HKNSlide 14

Page 16: Computer Engineering Capstone Design Summer A …tex.loria.fr/ctan-doc/support/dvipdfm/mcdonald-slides.pdf · rb0/int rb7:rb1 rc0/t1oso/t1cki rc1/t1osi/ccp2 rc2/ccp1 rc3/sck/scl rc4/sdi/sd

LCD Module Overview

Block Diagram:

SRAM8Kx8 bits

LCD128x128

T6963C

FS

RESET

C/D

CE

RD

WR

D7-D0

BiasCircuitVEE

VDDVSS

Toshiba

Controller

• 128× 128-pixel graphics and/or

• 16× 16 array of 8× 8-pixel characters (including user-defined)

IEEE/HKNSlide 15

Page 17: Computer Engineering Capstone Design Summer A …tex.loria.fr/ctan-doc/support/dvipdfm/mcdonald-slides.pdf · rb0/int rb7:rb1 rc0/t1oso/t1cki rc1/t1osi/ccp2 rc2/ccp1 rc3/sck/scl rc4/sdi/sd

Gra

phic

LCD

Con

trol

ler

(Tos

hiba

T69

63C)

IEEE/H

KN

Slid

e16

Page 18: Computer Engineering Capstone Design Summer A …tex.loria.fr/ctan-doc/support/dvipdfm/mcdonald-slides.pdf · rb0/int rb7:rb1 rc0/t1oso/t1cki rc1/t1osi/ccp2 rc2/ccp1 rc3/sck/scl rc4/sdi/sd

ISD

Chi

pCor

der

Bra

gsby

the

Com

pany

:

Fea

ture

s an

d B

enef

its o

f Chi

pCor

der

Pro

duct

s

Sin

gle-

Chi

p S

olut

ion

Opt

imal

for

ligh

twei

ght,

port

able

pro

duct

s.

Sim

ple

Inte

grat

ion

No

soft

war

e de

velo

pmen

t req

uire

d, q

uick

tim

e to

mar

ket

Exc

eptio

nal S

ound

Qua

lity

Aut

hent

ic, n

atur

al s

ound

ing

voic

e an

d m

usic

rep

rodu

ctio

n

Low

Pow

er C

onsu

mpt

ion

Idea

l for

bat

tery

-pow

ered

app

licat

ions

.

Bat

tery

-less

Voi

ce S

tora

ge Po

wer

fai

lure

pro

tect

ion

Low

Cos

t M

eets

con

sum

er m

arke

t dem

ands

Chi

pCor

der

Pro

duct

s O

ffer:

V

oice

rec

ord

and

play

back

sys

tem

on

a si

ngle

chi

p 6

seco

nds

to 8

min

utes

rec

ord

and

play

back

dur

atio

ns

Indu

stry

-lea

ding

sou

nd q

ualit

y Fu

lly in

tegr

ated

sys

tem

fun

ctio

ns: A

GC

, mic

pre

amp,

spe

aker

dri

vers

,fi

lters

, osc

illat

or, m

emor

y L

ow v

olta

ge o

pera

tion

Mes

sage

man

agem

ent

Flex

ible

arc

hite

ctur

e B

atte

ry-l

ess

mes

sage

sto

rage

·| H

ome

|·| A

bout

ISD

|·| P

rodu

cts

|·| A

pplic

atio

ns |·

| Fin

ance

|·| N

ews |

··|

Em

ploy

men

t |·|

Site

Map

|·| S

earc

h |·

| Qui

ckLi

nks

IEEE/H

KN

Slid

e17

Page 19: Computer Engineering Capstone Design Summer A …tex.loria.fr/ctan-doc/support/dvipdfm/mcdonald-slides.pdf · rb0/int rb7:rb1 rc0/t1oso/t1cki rc1/t1osi/ccp2 rc2/ccp1 rc3/sck/scl rc4/sdi/sd

ChipCorder Interfacing

Interface to a Typical Microcontroller:

Application N

ote

Audible T

hermom

eter Schem

atics

AN

1292

�MO

TO

RO

LA19

Date: August 12, 1996 Sheet 1 of 1

Size Document Number REV

B O

Title

TALKING THERMOMETER

VCC

R3100K

C21uF

VDD 3

DQ 2

GND 1

U3

DS1820

VCC

S1

SW PUSHBUTTON

GND

GND

VCC

1

2

P1

GNDR2100K

C31uF VDD 9

VSS 10

RESET 20

IRQ 19

PA7 11

PA6 12

PA5 13

PA4 14

PA3 15

PA2 16

PA1 17

PA0 18PB5 3

PB4 4PB3 5PB2 6

PB1 7

PB0 8

OSC1 1

OSC2 2

U1

M68HC705J1A

VCC

VCC

GND

A9 10

A8 9

A7 8

A6 7

A5 6

A4 5

A3 4

A2 3

A1 2

PD 24

P/R 27

EOM 25

VCCD 28

VCCA 16

SP+ 14

SP- 15

MIC REF 18

MIC 17

VSSA 13

VSSD 12

AUX IN 11

ANA IN 20

ANA OUT 21

AGC 19

XCLK 26

OVF 22

CE 23

A0 1

U2

ISD2545

VCC�

LS1

SPEAKER

J1

PHONEJACK

P2

PHONEPLUG

GND

GND

GNDR1470K

C14.7uF

R4

10

GND

VCC

VCC

GND

NC 1 VCC 14

OUT 8GND 7

Y1

CAN_OSCGND

IEEE/HKNSlide 18

Page 20: Computer Engineering Capstone Design Summer A …tex.loria.fr/ctan-doc/support/dvipdfm/mcdonald-slides.pdf · rb0/int rb7:rb1 rc0/t1oso/t1cki rc1/t1osi/ccp2 rc2/ccp1 rc3/sck/scl rc4/sdi/sd

Chi

pCor

der

Dev

elop

men

t•

Qua

drav

oxQ

V-4

00de

velo

pmen

tbo

ard

and

softwar

esu

ppor

tpr

ogra

mm

ing

of.w

avfil

es

•Pro

ject

win

dow

:

�•

Wav

efor

med

itor:

IEEE/H

KN

Slid

e19

Page 21: Computer Engineering Capstone Design Summer A …tex.loria.fr/ctan-doc/support/dvipdfm/mcdonald-slides.pdf · rb0/int rb7:rb1 rc0/t1oso/t1cki rc1/t1osi/ccp2 rc2/ccp1 rc3/sck/scl rc4/sdi/sd

2000: Printed-Circuit Fab• Layout for Duel Tetris (using Linux freeware pcb):

• Fabrication cost at APC: ≈$100 for 2 copies

IEEE/HKNSlide 20

Page 22: Computer Engineering Capstone Design Summer A …tex.loria.fr/ctan-doc/support/dvipdfm/mcdonald-slides.pdf · rb0/int rb7:rb1 rc0/t1oso/t1cki rc1/t1osi/ccp2 rc2/ccp1 rc3/sck/scl rc4/sdi/sd

2000: MPLAB-ICE• MPLAB-compatible In-Circuit Emulation system:

MPLAB™-ICE User’s Gu ide

DS51159A-page 8 1998 Microchip Technology Inc.

1.4 Components of MPLAB- ICE SystemThe MPLAB-ICE system consists of these items (Figure 1.1):

1. Emulator pod2. Parallel cable to connect the emulator pod to a PC3.

�Power supply cable

4.�

Processor module with cable5.

�Device adapter to connect the processor module to the target system

6.�

Logic probe connector

Figur e 1.1: MPLAB -ICE Emulator Sys tem

The e�

mulator pod connects to the PC through a parallel port using the provided cable. It contains the hardware necessary to perform the common em� ulator functions, such as trace, break, and emulate.

The processor module inserts into a slot in the front of the emulator pod. It co� ntains the hardware necessary to emulate a specific device or family of dev

�ices.

The d�

evice adapter is located at the end of the processor module’s cable. It co� nnects to the target system.

A �

logic probe connector is also available. Logic probes may be connected here, or individual jumper leads may be used to connect to individual co� nnector pins. See Appendix A for more information on the connector and logic probes.

Parallel Cable

Power SupplyCable

Emulator Pod

Processor Modulewith Ca ble

Logic ProbeConnector

Device Adapter

• No more code, compile, simulate, burn, reset, crash, erase,code, compile, simulate, burn, reset, crash, erase, . . . cycle!

IEEE/HKNSlide 21


Recommended