9
Standard serial ports have either 5 pins or 25 pins. Although are also serial ports, USB and PS/2 ports do not obey this rule.
Parallel ports typically have 25 or 36 pin ports. Serial ports, by contrast, have only 9 pins. Both type of ports have two rows of pins.
The traditional parallel port is a 25 "d-sub" connector. Serial ports come in two flavors, either 25 pin "d-sub" or 9 pin. USB (another serial communication standard) is a different animal. PS/2 is also a serial port and it has six pins.
how many ports does com port have
Your computer might not necessarily have a com port at all. A com port is just an older style serial port. USB ports have replaced com ports for the most part. If you have any com ports, they would be on the back of the computer. They would be male (pins sticking out), and have 9 or 25 pins. If there is a 25-pin female D-socket, that would be a parallel port.
9
9
9
The PIC16F88 microcontroller has a total of 13 I/O pins that can be configured as user input or output ports. These pins are grouped into Port A, Port B, and Port C, with Port A having 6 pins, Port B having 8 pins, and Port C having 4 pins. However, the exact number of usable I/O pins can depend on the specific configuration and function requirements of the application.
A DB-9 connector is a 9-pin connector, approximately 2cm long by 0.75cm wide, with two rows of pins or sockets, a row of 5 and, a row of 4, hence 9 pins total. It is often used in low-speed data communications such as RS-232, and is the connector on personal computers since the IBM PC-AT used for COM ports. There are larger versions with 15 pins, called DB-15 and used for game ports and 10Base5 network AUIs, and 25 pins, called DB-25 and used for earlier COM ports and printer ports among other things.
15 pins
As with ports, the gender of a connector is determined by whether or not it has pins. For example, a D-sub connector is male if it has pins (i.e. a VGA connector), whereas a serial connector is female (a serial port on the motherboard is male [it has pins to receive the connector], and the connector has the holes in which the pins are inserted). There is a reason they refer to the meeting of male and female plugs "mating"! Don't think of it as what's being plugged in and what's receiving the plug, but rather whether or not the connector and ports have pins or holes to receive the pins.