Figure 2—Port pin PTA0/ADx serves a dual purpose; it is used as the serial I/O port in Configuration mode and the daylight sensor in Charge mode.