summaryrefslogtreecommitdiff
path: root/cesar/bsu/aclf/test/utest/zc_capture.sce
blob: e74574d021c753ff06f9d87b82310fff08f43b6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// SPiDCOM Technologies.
// Nélio Laranjeiro
// 16-05-2008
// Cesar project.

// This script will provide a function to generate a perfect 50 Hz frequency
// AC Line based on the NTB date.


// Function to simulate the frequency of the AC line.
// @param  phy the previous value provided.
// @Return phy + 250 000
function phy = phy_clock_get_zero_cross (phy)

phy = phy + 1000000;
return phy;

endfunction