Download presentation
Presentation is loading. Please wait.
Published byMarilyn Stevens Modified over 8 years ago
1
1. Sequential Program Model Chapter-6 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill, Inc. 20061
2
Programming using Sequential functions Chapter-6 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill, Inc. 20062 Use of multiple function calls sequentially
3
Programming model of Six sequential function calls function f2 Run code return function f1 Run code return function f4 Run code return function f6 Run code return function f3 Run code return function f5 Run code return Chapter-6 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill, Inc. 20063
4
ACVM Example Sequential Program Model Run function get_user_input ( ) for obtaining input for choice of chocolate from child. Run function read_coins ( ) for reading the coins inserted into ACVM for cost of chocolate. Run function deliver_chocolate for delivering the chocolate Chapter-6 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill, Inc. 20064
5
ACVM Example Sequential Program Model (contd.) Run function display_thanks for displaying ‘Collect the nice chocolate. Visit again!’ Chapter-6 L1: "Embedded Systems - Architecture, Programming and Design", Raj Kamal, Publs.: McGraw-Hill, Inc. 20065
6
ArArchch itectuture,Pro g rara mminin gdd e dSysys tete ms -s - Sequential Programming Model of an ACVM function get_user_input ( ) Run code return function read_coins ( ) Run code return function deliver_chocolate ( ) Run code return function display_thanks ( ) Run code e return Time Sequential function calls while ( ) { get_user_input ( ); read_coins ( ); deliver_chocolate ( ); display_thanks ( );}; Chapter-6 L1: "Emb and Design", Raj Kamal, Publs.: McGraw-Hill, Inc. 20066
Similar presentations
© 2025 SlidePlayer.com Inc.
All rights reserved.