Advertisement
Guest User

Untitled

a guest
Jul 18th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. always @(posedge UsClk)
  2. begin
  3.     if ((PPMIN==1) and (LastPPMIN==0)) begin
  4.         if (CurrentCount > 2500) begin
  5.             CurrentCount = 0;
  6.             ChannelSelect = 0;
  7.         end
  8.         else begin
  9.             PPMreg(ChannelSelect) = CurrentCount;
  10.             CurrentCount = 0;
  11.             ChannelSelect = ChannelSelect + 1;
  12.         end
  13.     end
  14.     else begin
  15.         CurrentCount = CurrentCount + 1;
  16.     end
  17. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement