how to intialized the serial port1?
Initialization is the second step. You have not explained the first step - declaration.