Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- always @(posedge UsClk)
- begin
- LastPPMIN=PPMIN;
- if ((PPMIN==1) and (LastPPMIN==0)) begin
- if (CurrentCount > 2500) begin
- CurrentCount = 0;
- ChannelSelect = 0;
- end
- else begin
- PPMreg(ChannelSelect) = CurrentCount;
- CurrentCount = 0;
- ChannelSelect = ChannelSelect + 1;
- end
- end
- else begin
- CurrentCount = CurrentCount + 1;
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement