System Design for Freescale Kinetis K60512: Real-Time Management and User Interface
This document outlines the system design for the Freescale Kinetis K60512 MCU, featuring an ARM Cortex-M4 core, operating at a bus frequency of 50MHz. The architecture includes 512KB Flash and 64KB SRAM, with an RTOS (MQX) for real-time multitasking. Essential tasks manage device startup, keypad input, user interface, and email functionality, all prioritized for efficient execution. The system integrates TCP/IP communication protocols for connectivity, ensuring real-time data processing and user interaction with minimal CPU load.
System Design for Freescale Kinetis K60512: Real-Time Management and User Interface
E N D
Presentation Transcript
System Software Design Vinh Le
General System Design • MCU: FreescaleKinetis K60512 ARM Cortex M4 • Bus Frequency: 50MHz • Available Memory: • 512KB Flash • 64KB SRAM • Memory Required: • 10KB Flash • 4KB SRAM
Kernel • MQX RTOS provided by Freescale • Real-time preemptive multitasking Kernel • Events Services for Task Synchronization • Semaphores, Mutexes, and Messages • Time Delays • Tick period: 1ms • Real-Time TCP/IP Communication Suite (RTCS) • TCP/IP networking application protocols for Web Communication • Tasks • Start Up, KeyTask, UI Task, MessageTask,
Start Task Description: • Enables all of MCU and Kernel resources and initializes system. • Creates other tasks • Priority #4 • Period: Once (at start-up) • Execution time ~ 1s
Key Task Description: • Reads the keypad and updates the buffer • Priority #7 • Period 10 ms • Execution time ~ 2.2us
User Interface Task Description: • Handles User Inputs • Allows to set the E-Mail address for the device • Displays Message • Navigate through messages • Priority #5 • Period 0.5 sec • Execution time ~ 2 ms
Message Task Description: • Retrieve E-mail message data • Download data and update message list • Priority #6 • Period: 0.5 sec • Execution time ~ 50 ms
CPU Load Lmax= 10.4% Laverage = 3.5%