The low energy opposite parity states of O17 and F17 are calculated by using the shell model method. The residual interaction between nucleons is considered as the δ-type force. First, the equations are solved under the L-S coupling approximation, and the result reveals that the low energy states possess the "pairing" coherent structure. Next, the spin-orbit coupling force is introduced by a certain approximate method, and an energy spectrum comparable with experiment is obtained. The transition probabilities corresponding to the existing experimental data are also calculated.