changed code to work with the baudrate and clk frquency you want