/
7 : It Doesn’t Work! 7 : It Doesn’t Work!

7 : It Doesn’t Work! - PowerPoint Presentation

celsa-spraggs
celsa-spraggs . @celsa-spraggs
Follow
369 views
Uploaded On 2018-01-02

7 : It Doesn’t Work! - PPT Presentation

CET360 Microprocessor Engineering J Sumey 2 Stuck in the mud Ive built and programmed my prototype but it doesnt work Now What 3 Wrong Reactions throw things and curse ID: 618843

work software troubleshooting hardware software work hardware troubleshooting problems problem datasheets reactions register journal logic supply doesn

Share:

Link:

Embed:

Download Presentation from below link

Download Presentation The PPT/PDF document "7 : It Doesn’t Work!" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

Slide1

7: It Doesn’t Work!

CET360

Microprocessor Engineering

J

. SumeySlide2

2

Stuck in the mud…

“I’ve built and programmed my prototype, but it doesn’t work!”

Now What???Slide3

3

Wrong Reactions

throw things and curse

stomp around awhile and leave

haphazardly change wiresstart taking pot shots at the softwarewait for instructor to fix itSlide4

4

Right Reactions

apply a logical methodology to identifying and correcting the problem

backtrack:

when did it last work?what changes were made since then?consult journal!Slide5

5

Divide and Conquer!

is the problem:

hardware?

software?or both!?Slide6

6

Hardware Problems

breadboard / wiring errors

power supply errors

dead batteriesshortsfaulty componentsalways be aware!look – smell – touchSlide7

7

Hardware Troubleshooting

schematic

power supply ammeter

oscilloscopeDSO / logic analyzerLEDsdatasheetsSlide8

8

Software Problems

semantic/logic errors

data representation errors

operator mis-precedenceside effectsISR issuesI/O register configuration errorsSlide9

9

Software Troubleshooting

breakpoints/single-stepping

register/memory display & manipulation

software triggerslinker map“heartbeat” debug pulsesback-ups!Slide10

Software Documentation

*

=== Pin Connections === * PTA0..5: (o) LCD i/f (on-module)

* PTE6:

(o) Firebird yellow LED * PTE3:

(

o) RGB LED Red cathode

* PTE2

:

(

o) RGB LED Green cathode

* PTF1

:

(

o) RGB LED Blue cathode

* PTG1

:

(

o) RGB LED common anode

* PTG0

:

(

i

) push button switch S2

* PTF5

:

(

o) speaker

* PTB0

..7: (i) IR sensor array * PTD0/AN8: (i) Go button * PTD3/AN10: (i) breadboard pot * PTD4/AN11: (i) Vbs (1/2 Vbatt) * PTE0/TXD1: (o) SCI1 TxD * PTE1/RXD1: (i) SCI1 RxD * PTF2/TPM1C4: (i) drive tach * PTF3/TPM1C5: (o) steering servo pulse * PTF4/TPM2C0: (o) drive motor duty cycle

10Slide11

11

Other Tips

SEE

(Someone Else’s Eyes)

document everything (lab journal)re-read datasheetsdesign reviews