summaryrefslogtreecommitdiff
path: root/45/CH8/EX8.5/example_8_5.sce
blob: 93c6942988b7133644b6281173abd938f30552cb (plain)
1
2
3
4
5
6
7
8
9
10
//example 8.5
clc;
clear;
disp('Here what happens at each point in time' );
disp('Time  t0: S = 0, R = 0,  no change in Q (Q remains 0)');
disp('Time  t1: S = 1, R = 0,  Q changes from 0 to 1');
disp('Time  t2: S = 0, R = 1,  Q resets to 0');
disp('Time  t3: S = 1, R = 0,  Q sets to 1 ');
disp('Time  t4: S = 0, R = 0,  no change in Q (Q remains 1)');
disp('Notice that either R or S, or both, are allowed to change state at any time, whether C is high or low. The only time both R and S must be stable (unchanging) is during the short PTs of the clock.');