Hi @Li9999,
In order to give you better feedback regarding this matter I will be answering you in English
For the ADC initialization you can take a look at the datasheet, in there you will find the initialization sequence and some Pseudo-Code Example of how to do so.
See section 10.5.1 ADC Module Initialization Example of MC9S08DZ48, MC9S08DZ32, MC9S08DZ16 - Data Sheet
For the initialization of the GPIO you can refer to Chapter 6 Parallel Input/Output Control of MC9S08DZ48, MC9S08DZ32, MC9S08DZ16 - Data Sheet
Hope it helps you!