Design of a full-speed Universal Serial Bus peripheral interface