Tutorial with Easy Format Supported Voice/Melody Controller
Home Introduction to the Easy Format supported Voice / Melody controller |
The Easy Format is designed to minimize the
learning curve for programmers. The friendly nature of Easy Format can be
illustrated with real world examples. Comments of the program is followed by the
";" sign. The following examples are prepared with reference to a
micro-controller based sound chip which produces wave files as typical audio signal output
to demonstrate the Easy Format programming capability. Example 1: One shot (Irretriggerable) Example 2: One shot (Retriggerable by itself) Example 3: Police Car (Toy application) After you browse through the following typical examples, you may grasp the concept about the structure of Easy Format. The syntax of an Easy Format application can be divided into following sections.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example 1 One
shot (Irretriggerable) The following state diagram illustrates the state transition in this example. Program Listing |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Input
States
;Note: "Path"1 is the path to be executed corresponding to a rising edge at Port 1.1 Paths |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(Click this button to the top of this document) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example 2 One shot
(Retriggerable by itself) The following state diagram illustrates the state transition in this example. Program Listing |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Input
States
;Note: "Path"1 is the path to be executed
corresponding to a falling edge at Port 1.1. Paths |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(Click this button to the top
of this document) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Example 3 Police Car
(Toy Application) This is a full program application example to demonstrate how Easy Format handle a complicated design requirement. All the work is to be done on a single page. The product requirements are: 4 Push Buttons Inputs and 2 Outputs to drive 2 lights. BUTTONS:
LEDS :
TIME OUT REQUIREMENTS:
The structure of this program can be illustrated with the state diagram. Program Listing |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
EASY 4 ; Declare Wavefiles StartSound.wav/ad4 IdleSound.wav/ad4 AccelSound.wav/ad4 DecelSound.wav/ad4 RunSound.wav/ad4 SirenSound.wav/ad4 SirenRunSound.wav/ad4 Input States
Output States
Paths
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Description:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(Click this button to the top of this document) |
[Home]
[Introduction to Easy Format supported
voice/melody controller]
[Syntax of Easy Formt support voice/melody
controller]
[Introduction to Easy Format Enhanced C] [Contact Us]
For any question or comment:
e-mail to WebMaster@EasyFormat.com
Copyrights© 1999 Grow with Me, Inc. All materials are subject
to change without notice. Easy Format is a trademark of Grow With Me, Inc.
Patent no. 5867818 and other pending patents.
Last modified: 04/18/99 04:15 PM