For the investigation of the charmonium spectrum, yet undiscovered charm-meson states and glueballs, the PANDA detector will be employed at the future FAIR facility. PANDA will contain an electromagnetic calorimeter composed of PbWO4 (PWO) crystals that are cooled to -25 degrees C and coupled to large-area avalanche photodiodes or vacuum phototriodes/-tetrodes. The photosensor signals are continuously digitized by sampling analog-to-digital converters (SADCs) and analyzed online in field programmable gate arrays (FPGAs) that are part of the digitizer module to detect hits and extract energy and time information. The online SADC-data processing algorithm was designed, optimized, and implemented in VHDL for a Xilinx FPGA. In order to estimate...