Upload
others
View
3
Download
0
Embed Size (px)
Citation preview
Team Presentation #3 - DWS implementation
TEAM [T7]
Yeong-Sik Kim 201111343
Yeong-Hun Kim 200911377
Jeong-Il Won 201111371
Mihael Myung-Jae Lee 201111377
Yong-Gyeom Jeong 200811455
2012-10-11 1 /20 TEAM 7
Structured Analysis & Structured Design - simply summary
Data Structure & Function Outline - simply summary
Source Code - development Environment - definition - function - demo
Contents
2012-10-11 2 /20 TEAM 7
Structured Analysis DFD - Overall
A Button Signal
B Button Signal
C Button Signal
D Button Signal
1.5
1.1
1.2
1.3
1.4
A Button Input
B Button Input
C Button Input
D Button Input
2.3
2.4
Display
Light
Time & Button & State Data
Button2.1.2
2.1.4
2.1.9
2.1.6
2.1.8
2.1.7
2.1.5
Disable
Tick
Tick
Tick
Enable
Disable
Trigger
Tick
Trigger
Trigger
Trigger
Enable
PM Command
Back Light Command
LED Monitor Command
LED Monitor Command
LED Monitor Command
LED Monitor Command
2.1.3Tick
2.1.1
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
Tick
Tick
Time & Button & State Data
2.2
Tick
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
Tick
Tick
Tick
Tick
Tick
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
Time & Button & State Data
2012-10-11 3 /20 TEAM 7
Structured Design Structured Chart
2012-10-11 4 /20 TEAM 7
Main
Time Controller
PM Controller
LED Controller
Light Controller
Time Flowing
PM Indicator
Lab TimeTime
Keeping
Time Changing
Stop Watch
Back Light
Determine Button
A Button Interface
B Button Interface
C Button Interface
D Button Interface
LED Monitor Interface
Back Light Interface
A Button Signal B Button Signal C Button Signal D Button Signal
Button Time Data
Time Data
Time & Button & State Data
Time & State Data
Time & Button Data
Time Data
Time Data
Time Data
Time Data
PM Command
LED Monitor Command
EnableDisable Trigger
Trigger Trigger Trigger
EnableDisable
Time DataTime & Button & State Data
Time & State Data
Time & Button & State Data
Time & State Data Time & Button
& StateData
Time & State Data
Time Data
LED Monitor Command
LED Monitor Command
LED Monitor Command
LightCommand
PM CommandLED Monitor Command Back Light Command
LED Monitor Command
LightCommand
PM Command
Trigger
Windows 7 Home Edition K
MinGW 4.7.0
Eclipse IDE for C/C++ Developers
Development Environment
2012-10-11 5 /20 TEAM 7
Header - Definition.h - Function.h - stdio.h, windows.h, conio.h, time.h
Source - Main.c - Function.c
Project Structure
2012-10-11 6 /20 TEAM 7
Definition
struct BUTTON struct TIME struct STOP_TIME struct DISPLAY struct STATE struct TIME_CHANGING_STATE struct STOP_INFO struct STOP_MODE struct PM_STATE struct LIGHT_STATE struct TIME_BUTTON_STATE struct PM_COMMAND struct LED_MONITOR_COMMAND struct BACK_LIGHT_COMMAND
2012-10-11 7 /20 TEAM 7
Code Analysis
Main
Time Controller
PM Controller
LED Controller
Light Controller
Time Flowing
PM Indicator
Lab TimeTime
Keeping
Time Changing
Stop Watch
Back Light
Determine Button
A Button Interface
B Button Interface
C Button Interface
D Button Interface
LED Monitor Interface
Back Light Interface
A Button Signal B Button Signal C Button Signal D Button Signal
Button Time Data
Time Data
Time & Button & State Data
Time & State Data
Time & Button Data
Time Data
Time Data
Time Data
Time Data
PM Command
LED Monitor Command
EnableDisable Trigger
Trigger Trigger Trigger
EnableDisable
Time DataTime & Button & State Data
Time & State Data
Time & Button & State Data
Time & State Data Time & Button
& StateData
Time & State Data
Time Data
LED Monitor Command
LED Monitor Command
LED Monitor Command
LightCommand
PM CommandLED Monitor Command Back Light Command
LED Monitor Command
LightCommand
PM Command
Trigger
Reference No.
1.5
Name Determine Button
Input A,B,C,D Button Signal
Output Button
Process Description
If button is pushed, then save the button in variable
2012-10-11 8 /20 TEAM 7
Code Analysis
Reference No.
2.2.2
Name Time Flowing
Input Trigger
Output
Process Description
If real-time passed, then increase the virtual time in TIME structure
Main
Time Controller
PM Controller
LED Controller
Light Controller
Time Flowing
PM Indicator
Lab TimeTime
Keeping
Time Changing
Stop Watch
Back Light
Determine Button
A Button Interface
B Button Interface
C Button Interface
D Button Interface
LED Monitor Interface
Back Light Interface
A Button Signal B Button Signal C Button Signal D Button Signal
Button Time Data
Time Data
Time & Button & State Data
Time & State Data
Time & Button Data
Time Data
Time Data
Time Data
Time Data
PM Command
LED Monitor Command
EnableDisable Trigger
Trigger Trigger Trigger
EnableDisable
Time DataTime & Button & State Data
Time & State Data
Time & Button & State Data
Time & State Data Time & Button
& StateData
Time & State Data
Time Data
LED Monitor Command
LED Monitor Command
LED Monitor Command
LightCommand
PM CommandLED Monitor Command Back Light Command
LED Monitor Command
LightCommand
PM Command
Trigger
2012-10-11 9 /20 TEAM 7
Main
Time Controller
PM Controller
LED Controller
Light Controller
Time Flowing
PM Indicator
Lab TimeTime
Keeping
Time Changing
Stop Watch
Back Light
Determine Button
A Button Interface
B Button Interface
C Button Interface
D Button Interface
LED Monitor Interface
Back Light Interface
A Button Signal B Button Signal C Button Signal D Button Signal
Button Time Data
Time Data
Time & Button & State Data
Time & State Data
Time & Button Data
Time Data
Time Data
Time Data
Time Data
PM Command
LED Monitor Command
EnableDisable Trigger
Trigger Trigger Trigger
EnableDisable
Time DataTime & Button & State Data
Time & State Data
Time & Button & State Data
Time & State Data Time & Button
& StateData
Time & State Data
Time Data
LED Monitor Command
LED Monitor Command
LED Monitor Command
LightCommand
PM CommandLED Monitor Command Back Light Command
LED Monitor Command
LightCommand
PM Command
Trigger
Reference No.
2.1.1 & 2.1.4
Name PM Controler & PM Indicator
Input Enable, Disable
Output LED Monitor Command
Process Description
If virtual time over 12:00 then change the turn-on in PM_STATE structure to TRUE. Otherwise change to FALSE .
Code Analysis
2012-10-11 10 /20 TEAM 7
Main
Time Controller
PM Controller
LED Controller
Light Controller
Time Flowing
PM Indicator
Lab TimeTime
Keeping
Time Changing
Stop Watch
Back Light
Determine Button
A Button Interface
B Button Interface
C Button Interface
D Button Interface
LED Monitor Interface
Back Light Interface
A Button Signal B Button Signal C Button Signal D Button Signal
Button Time Data
Time Data
Time & Button & State Data
Time & State Data
Time & Button Data
Time Data
Time Data
Time Data
Time Data
PM Command
LED Monitor Command
EnableDisable Trigger
Trigger Trigger Trigger
EnableDisable
Time DataTime & Button & State Data
Time & State Data
Time & Button & State Data
Time & State Data Time & Button
& StateData
Time & State Data
Time Data
LED Monitor Command
LED Monitor Command
LED Monitor Command
LightCommand
PM CommandLED Monitor Command Back Light Command
LED Monitor Command
LightCommand
PM Command
Trigger
Reference No.
2.1.2
Name LED Controller
Input Tick, Load
Output Trigger, Enable, Disable, Save
Process Description
It changes State Data by button
Code Analysis
2012-10-11 11 /20 TEAM 7
Main
Time Controller
PM Controller
LED Controller
Light Controller
Time Flowing
PM Indicator
Lab TimeTime
Keeping
Time Changing
Stop Watch
Back Light
Determine Button
A Button Interface
B Button Interface
C Button Interface
D Button Interface
LED Monitor Interface
Back Light Interface
A Button Signal B Button Signal C Button Signal D Button Signal
Button Time Data
Time Data
Time & Button & State Data
Time & State Data
Time & Button Data
Time Data
Time Data
Time Data
Time Data
PM Command
LED Monitor Command
EnableDisable Trigger
Trigger Trigger Trigger
EnableDisable
Time DataTime & Button & State Data
Time & State Data
Time & Button & State Data
Time & State Data Time & Button
& StateData
Time & State Data
Time Data
LED Monitor Command
LED Monitor Command
LED Monitor Command
LightCommand
PM CommandLED Monitor Command Back Light Command
LED Monitor Command
LightCommand
PM Command
Trigger
Reference No.
2.1.5
Name Lap Time
Input Trigger, Tick
Output LED Monitor Command
Process Description
If A button is pushed on Stopwatch State, It saves time data in STOP_INFO structure.
Code Analysis
2012-10-11 12 /20 TEAM 7
Main
Time Controller
PM Controller
LED Controller
Light Controller
Time Flowing
PM Indicator
Lab TimeTime
Keeping
Time Changing
Stop Watch
Back Light
Determine Button
A Button Interface
B Button Interface
C Button Interface
D Button Interface
LED Monitor Interface
Back Light Interface
A Button Signal B Button Signal C Button Signal D Button Signal
Button Time Data
Time Data
Time & Button & State Data
Time & State Data
Time & Button Data
Time Data
Time Data
Time Data
Time Data
PM Command
LED Monitor Command
EnableDisable Trigger
Trigger Trigger Trigger
EnableDisable
Time DataTime & Button & State Data
Time & State Data
Time & Button & State Data
Time & State Data Time & Button
& StateData
Time & State Data
Time Data
LED Monitor Command
LED Monitor Command
LED Monitor Command
LightCommand
PM CommandLED Monitor Command Back Light Command
LED Monitor Command
LightCommand
PM Command
Trigger
Reference No. 2.1.6
Name Time Keeping
Input Trigger, Tick
Output LED Monitor Command
Process Description
Being implemented by LED Controller’s trigger, It sends LED Monitor Command to LED Monitor Interface in order that DWS can show current time which would be periodically changed.
Code Analysis
2012-10-11 13 /20 TEAM 7
Main
Time Controller
PM Controller
LED Controller
Light Controller
Time Flowing
PM Indicator
Lab TimeTime
Keeping
Time Changing
Stop Watch
Back Light
Determine Button
A Button Interface
B Button Interface
C Button Interface
D Button Interface
LED Monitor Interface
Back Light Interface
A Button Signal B Button Signal C Button Signal D Button Signal
Button Time Data
Time Data
Time & Button & State Data
Time & State Data
Time & Button Data
Time Data
Time Data
Time Data
Time Data
PM Command
LED Monitor Command
EnableDisable Trigger
Trigger Trigger Trigger
EnableDisable
Time DataTime & Button & State Data
Time & State Data
Time & Button & State Data
Time & State Data Time & Button
& StateData
Time & State Data
Time Data
LED Monitor Command
LED Monitor Command
LED Monitor Command
LightCommand
PM CommandLED Monitor Command Back Light Command
LED Monitor Command
LightCommand
PM Command
Trigger
Reference No.
2.1.7
Name Time Changing
Input Trigger, Tick
Output LED Monitor Command
Process Description
If A button pushed on Time Keeping mode, It changes current time depending on the order of section
Code Analysis
2012-10-11 14 /20 TEAM 7
Main
Time Controller
PM Controller
LED Controller
Light Controller
Time Flowing
PM Indicator
Lab TimeTime
Keeping
Time Changing
Stop Watch
Back Light
Determine Button
A Button Interface
B Button Interface
C Button Interface
D Button Interface
LED Monitor Interface
Back Light Interface
A Button Signal B Button Signal C Button Signal D Button Signal
Button Time Data
Time Data
Time & Button & State Data
Time & State Data
Time & Button Data
Time Data
Time Data
Time Data
Time Data
PM Command
LED Monitor Command
EnableDisable Trigger
Trigger Trigger Trigger
EnableDisable
Time DataTime & Button & State Data
Time & State Data
Time & Button & State Data
Time & State Data Time & Button
& StateData
Time & State Data
Time Data
LED Monitor Command
LED Monitor Command
LED Monitor Command
LightCommand
PM CommandLED Monitor Command Back Light Command
LED Monitor Command
LightCommand
PM Command
Trigger
Reference No.
2.1.8
Name Stop Watch
Input Trigger, Tick
Output LED Monitor Command
Process Description
If C button is pushed on Time Keeping Mode, It changes mode. And then push B button , Start Stop Watch
Code Analysis
2012-10-11 15 /20 TEAM 7
Code Analysis
Main
Time Controller
PM Controller
LED Controller
Light Controller
Time Flowing
PM Indicator
Lab TimeTime
Keeping
Time Changing
Stop Watch
Back Light
Determine Button
A Button Interface
B Button Interface
C Button Interface
D Button Interface
LED Monitor Interface
Back Light Interface
A Button Signal B Button Signal C Button Signal D Button Signal
Button Time Data
Time Data
Time & Button & State Data
Time & State Data
Time & Button Data
Time Data
Time Data
Time Data
Time Data
PM Command
LED Monitor Command
EnableDisable Trigger
Trigger Trigger Trigger
EnableDisable
Time DataTime & Button & State Data
Time & State Data
Time & Button & State Data
Time & State Data Time & Button
& StateData
Time & State Data
Time Data
LED Monitor Command
LED Monitor Command
LED Monitor Command
LightCommand
PM CommandLED Monitor Command Back Light Command
LED Monitor Command
LightCommand
PM Command
Trigger
Reference No.
2.1.9
Name Back Light
Input Enable, Disable
Output Back Light Command
Process Description
If D button is pushed on anytime, then It changes Light state to TRUE. And 2 seconds later, changes FALSE.
2012-10-11 16 /20 TEAM 7
Code Analysis
Main
Time Controller
PM Controller
LED Controller
Light Controller
Time Flowing
PM Indicator
Lab TimeTime
Keeping
Time Changing
Stop Watch
Back Light
Determine Button
A Button Interface
B Button Interface
C Button Interface
D Button Interface
LED Monitor Interface
Back Light Interface
A Button Signal B Button Signal C Button Signal D Button Signal
Button Time Data
Time Data
Time & Button & State Data
Time & State Data
Time & Button Data
Time Data
Time Data
Time Data
Time Data
PM Command
LED Monitor Command
EnableDisable Trigger
Trigger Trigger Trigger
EnableDisable
Time DataTime & Button & State Data
Time & State Data
Time & Button & State Data
Time & State Data Time & Button
& StateData
Time & State Data
Time Data
LED Monitor Command
LED Monitor Command
LED Monitor Command
LightCommand
PM CommandLED Monitor Command Back Light Command
LED Monitor Command
LightCommand
PM Command
Trigger
Reference No.
2.3
Name LED Monitor Interface
Input LED Monitor Command
Output Display
Process Description
It print a display mode Depending on current states.
2012-10-11 17 /20 TEAM 7
Code Analysis
Main
Time Controller
PM Controller
LED Controller
Light Controller
Time Flowing
PM Indicator
Lab TimeTime
Keeping
Time Changing
Stop Watch
Back Light
Determine Button
A Button Interface
B Button Interface
C Button Interface
D Button Interface
LED Monitor Interface
Back Light Interface
A Button Signal B Button Signal C Button Signal D Button Signal
Button Time Data
Time Data
Time & Button & State Data
Time & State Data
Time & Button Data
Time Data
Time Data
Time Data
Time Data
PM Command
LED Monitor Command
EnableDisable Trigger
Trigger Trigger Trigger
EnableDisable
Time DataTime & Button & State Data
Time & State Data
Time & Button & State Data
Time & State Data Time & Button
& StateData
Time & State Data
Time Data
LED Monitor Command
LED Monitor Command
LED Monitor Command
LightCommand
PM CommandLED Monitor Command Back Light Command
LED Monitor Command
LightCommand
PM Command
Trigger
Reference No.
2.4
Name Back Light Interface
Input Back Light Command
Output Light
Process Description
If Light state is TRUE, then changes text color yellow. Otherwise black.
2012-10-11 18 /20 TEAM 7
DEMO
2012-10-11 19 /20 TEAM 7
Questions?
2012-10-11 20 /20 TEAM 7