Freescale Semiconductor, Inc.

Freescale Semiconductor, Inc.

C•1•2 Second Include file

%*********************ResetEnsure.tdf ******************************%

%

TITLE “MSC8101 ADS Board Control

and

Status Register.”;

%

% Written by Yehuda

Palchan -

February ,

2000

%

%

This file defines

the Reset

Ensure

State Machine

%

%*******************************************************************%

SubDesign Reset_Ensure

(

Clk: INPUT;

Reset: INPUT;

PushBtn : INPUT;

Rst_True: OUTPUT;

)

Variable

RstEnsureMachine: MACHINE WITH STATES (Start, Rst1, Rst2, Rst3);

Begin

RstEnsureMachine.clk= Clk;-- Initialize

RstEnsureMachine.reset= Reset;

CASE RstEnsureMachine IS

When Start =>-- Poreset State

Rst_True= GND;

if PushBtn == 1 then RstEnsureMachine= Start; else

RstEnsureMachine= Rst1;-- PushButton Pressed end if;

When Rst1=>-- First check of PushButton Succeded

Rst_True= GND;

if PushBtn== 1 then RstEnsureMachine= Start; else RstEnsureMachine= Rst2; end if;

When Rst2=>-- Second check of PushButton Succeded

Rst_True= GND;

if PushBtn== 1 then RstEnsureMachine= Start; else RstEnsureMachine= Rst3; end if;

When Rst3=>-- Third check of PushButton Succeded

Rst_True= VCC;

if PushBtn== 1 then RstEnsureMachine= Start; else RstEnsureMachine= Rst3; end if;

end case;

End;

C-100

MSC8101ADS RevB User’s Manual

MOTOROLA

For More Information On This Product,

Go to: www.freescale.com

Page 101
Image 101
Nortel Networks MSC8101 ADS user manual C12 Second Include file