Bicycle Information Tracking System

12
BICYCLE INFORMATION TRACKING SYSTEM System Software Design Review

description

Bicycle Information Tracking System. System Software Design Review. BITS General System Software Design. MCU: NXP LPC2378 ARM7 32-bit 512 KB Flash, 8KB EEPROM and SRAM Bus Frequency: 20 MHz Approximate Memory requirements: ROM: ~220 KB maximum - PowerPoint PPT Presentation

Transcript of Bicycle Information Tracking System

Page 1: Bicycle Information Tracking System

BICYCLE INFORMATION TRACKING SYSTEM

System Software Design Review

Page 2: Bicycle Information Tracking System

BITS General System Software Design

MCU: NXP LPC2378 ARM7 32-bit 512 KB Flash, 8KB EEPROM and SRAM

Bus Frequency: 20 MHz Approximate Memory requirements:

ROM: ~220 KB maximum Includes FatFS file system, drivers for all

peripherals RAM: ~2 KB SD Card: 1 KB on a FAT formatted 256 MB card

Resources used: 5 GPIO, 1 SPI, Micro-SD card

Page 3: Bicycle Information Tracking System

BITS System Software Design: Kernel

Timeslice based system Shared resources use flags

FatFS file system Open-source system for SD card read/write

Tick period: 1 ms Number of tasks: 4

AppInit, Input Task, SDCard, UI Display

Page 4: Bicycle Information Tracking System

BITS System Software Design: Tasks

Start Task Initializes all resources including LCD, SD card, and GPIO,

checks SD card for previous data. Displays splash screen Only runs at beginning Execution time: 3 seconds

Input task Monitors GPIO port P3 for input from Hall Effect Sensor

Uses this information to perform calculations Monitors GPIO port P4 for input from switches, as well as

information from the touchscreen Toggles turn signals, changes data shown on screen

Monitors input from Touch Screen Period: 1 ms Execution time: ~10 us

Page 5: Bicycle Information Tracking System

BITS System Software Design: Tasks

SDCard task Writes strings and data to SD card when prompted

by the user Period: ~20 ms (Sporadic) Execution time: ~3 ms

UI Display task Controls displayed information on the screen

based on Touchscreen/GPIO input, also calculates information obtained from P3 to determine distance and speed.

Period: ~10 ms Execution time: ~1 ms

Page 6: Bicycle Information Tracking System

BITS System Software Design: Tasks

Maximum CPU load: 26%

Average CPU load: 8%

Page 7: Bicycle Information Tracking System

BITS Data Flow: GPIO/Touch Task

Page 8: Bicycle Information Tracking System

BITS Data Flow: UI Task

Page 9: Bicycle Information Tracking System

BITS Data Flow: SD Card Task

Page 10: Bicycle Information Tracking System

BITS Data Flow: State Diagram

Page 11: Bicycle Information Tracking System

BITS Modules and Functions

Microsoft Excel Worksheet

Page 12: Bicycle Information Tracking System

Questions?