Sie sind auf Seite 1von 13

Software Development Document

for

%PROJECTTITLE%

Prepared by: %DEVELOPER%

%COMPANY%
Table of Contents
1.Scope
1.1 Identification
The formal name for this project is: %PROJECTTITLE%
The electronic name is: servoExam2
Date when project was created:%DATE_CREATED%
Dates when changes were made: %CHANGES%

1.2 Purpose
%PURPOSE%
1.3 Introduction
This document describes the detailed design for this project.

2. Referenced Documents
2.1 Related Documentation
%REFERENCES%

2.2 Project Source Files

servoExam2.c
servoExam2.h
..\..\..\..\Program Files (x86)\PICC\Devices\18F4550.h
..\..\..\..\Program Files (x86)\PICC\Drivers\lcd.c

2.3 Project Output File


servoExam2.xsym
servoExam2.err
servoExam2.esym
servoExam2.hex
servoExam2.sym
servoExam2.lst
servoExam2.cof
servoExam2.ccspjt
servoExam2.tre
servoExam2.STA

3. Requirements
3.1 Program Overview
%OVERVIEW%

3.2 Global Data


3.2.1 Constants

Identifier Type Description


LCD_LINE_LENGTH 20
__PCH__ 5.007
__DEVICE__ 4550
__DATE__ 27-nov.-17
__TIME__ 20:46:42 Standard Header file for the
PIC18F4550 device ////////////////
__LCD_C__
lcd_output_enable (x) lcdlat.enable=x
lcd_enable_tris () lcdtris.enable=0
lcd_output_rs (x) lcdlat.rs=x
lcd_rs_tris () lcdtris.rs=0
lcd_output_rw (x) lcdlat.rw=x
lcd_rw_tris () lcdtris.rw=0
LCD_DATA_PORT getenv("SFR:PORTD") portd
LCD_TYPE 2 0=5x7, 1=5x10, 2=2 lines
LCD_LINE_TWO 0x40 LCD RAM address for the second line
LCD_LINE_LENGTH 20

3.2.2 Types
Identifier Type Description
LCD_PIN_MAP {int1 enable,int1 rs,int1 `641
rw,int1 unused,int4 data}

3.2.3 Variables

Identifier Type Description


lcd LCD_PIN_MAP `642
lcdlat LCD_PIN_MAP `643
lcdtris LCD_PIN_MAP `644
LCD_INIT_STRING [4] `645

3.3 Detailed Design

3.3.1 EXT_isr
3.3.1.1 Requirements

Author: %AUTHOR%
Purpose: %PURPOSE%
Date Created:%DATE_CREATED%
Changes:%CHANGES%

3.3.1.2 Local Data


Identifier Type Description

3.3.1.3 Local Constants

Identifier Type Description

3.3.1.4 Local Types

Identifier Type Description

3.3.2 lcd_read_nibble
3.3.2.1 Requirements
// Driver for common LCD modules
//// // ////

Author: %AUTHOR%
Purpose: %PURPOSE%
Date Created:%DATE_CREATED%
Changes:%CHANGES%

3.3.2.2 Local Data

Identifier Type Description

3.3.2.3 Local Constants

Identifier Type Description

3.3.2.4 Local Types

Identifier Type Description


3.3.3 lcd_read_byte
3.3.3.1 Requirements

Author: %AUTHOR%
Purpose: %PURPOSE%
Date Created:%DATE_CREATED%
Changes:%CHANGES%

3.3.3.2 Local Data

Identifier Type Description


low int8 `650
high int8 `651

3.3.3.3 Local Constants

Identifier Type Description

3.3.3.4 Local Types

Identifier Type Description

3.3.4 lcd_read_nibble
3.3.4.1 Requirements

Author: %AUTHOR%
Purpose: %PURPOSE%
Date Created:%DATE_CREATED%
Changes:%CHANGES%

3.3.4.2 Local Data

Identifier Type Description


n int8 `653
3.3.4.3 Local Constants

Identifier Type Description

3.3.4.4 Local Types

Identifier Type Description

3.3.5 lcd_send_nibble
3.3.5.1 Requirements

Author: %AUTHOR%
Purpose: %PURPOSE%
Date Created:%DATE_CREATED%
Changes:%CHANGES%

3.3.5.2 Local Data

Identifier Type Description


address int8 `655
n int8 `656

3.3.5.3 Local Constants

Identifier Type Description

3.3.5.4 Local Types

Identifier Type Description

3.3.6 lcd_send_byte
3.3.6.1 Requirements
Author: %AUTHOR%
Purpose: %PURPOSE%
Date Created:%DATE_CREATED%
Changes:%CHANGES%

3.3.6.2 Local Data

Identifier Type Description

3.3.6.3 Local Constants

Identifier Type Description

3.3.6.4 Local Types

Identifier Type Description

3.3.7 lcd_init
3.3.7.1 Requirements

Author: %AUTHOR%
Purpose: %PURPOSE%
Date Created:%DATE_CREATED%
Changes:%CHANGES%

3.3.7.2 Local Data

Identifier Type Description


i int8 `658
x int8 `660
y int8 `661

3.3.7.3 Local Constants


Identifier Type Description

3.3.7.4 Local Types

Identifier Type Description

3.3.8 lcd_gotoxy
3.3.8.1 Requirements

Author: %AUTHOR%
Purpose: %PURPOSE%
Date Created:%DATE_CREATED%
Changes:%CHANGES%

3.3.8.2 Local Data

Identifier Type Description


address int8 `662
c int8 `664

3.3.8.3 Local Constants

Identifier Type Description

3.3.8.4 Local Types

Identifier Type Description

3.3.9 lcd_putc
3.3.9.1 Requirements

Author: %AUTHOR%
Purpose: %PURPOSE%
Date Created:%DATE_CREATED%
Changes:%CHANGES%

3.3.9.2 Local Data

Identifier Type Description


x int8 `666
y int8 `667

3.3.9.3 Local Constants

Identifier Type Description

3.3.9.4 Local Types

Identifier Type Description

3.3.10 lcd_getc
3.3.10.1 Requirements

Author: %AUTHOR%
Purpose: %PURPOSE%
Date Created:%DATE_CREATED%
Changes:%CHANGES%

3.3.10.2 Local Data

Identifier Type Description


value int8 `668
which int8 `670
ptr *int8 `671

3.3.10.3 Local Constants

Identifier Type Description


3.3.10.4 Local Types

Identifier Type Description

3.3.11 lcd_set_cgram_char
3.3.11.1 Requirements

Author: %AUTHOR%
Purpose: %PURPOSE%
Date Created:%DATE_CREATED%
Changes:%CHANGES%

3.3.11.2 Local Data

Identifier Type Description


i int8 `672
on int8 `674

3.3.11.3 Local Constants

Identifier Type Description

3.3.11.4 Local Types

Identifier Type Description

3.3.12 lcd_cursor_on
3.3.12.1 Requirements

Author: %AUTHOR%
Purpose: %PURPOSE%
Date Created:%DATE_CREATED%
Changes:%CHANGES%

3.3.12.2 Local Data

Identifier Type Description

3.3.12.3 Local Constants

Identifier Type Description

3.3.12.4 Local Types

Identifier Type Description

3.3.13 MAIN
3.3.13.1 Requirements

Author: %AUTHOR%
Purpose: %PURPOSE%
Date Created:%DATE_CREATED%
Changes:%CHANGES%

3.3.13.2 Local Data

Identifier Type Description


valor int8 `678

3.3.13.3 Local Constants

Identifier Type Description

3.3.13.4 Local Types

Identifier Type Description


4.0 Functions

Function Name Description


EXT_isr
lcd_read_nibble // Driver for
common LCD modules
//// //
////
lcd_read_byte
lcd_read_nibble
lcd_send_nibble
lcd_send_byte
lcd_init
lcd_gotoxy
lcd_putc
lcd_getc
lcd_set_cgram_char
lcd_cursor_on
MAIN

Das könnte Ihnen auch gefallen