Energy consumption and throughput optimization in cognitive radio networks (CRNs) are two critical issues that have attracted more attention in recent years. In this paper, we consider maximization of the energy efficiency and improvement of the throughput as optimization metrics for jointly optimizing sensing times and energy detection thresholds in each sub-channel and selecting the spectrum sensing (SS) and data transmitting multi-antenna secondary users (SUs) in multi-channel multi-antenna CRN under constraints on the probabilities of false alarm and detection. The considered problem is solved based on the convex optimization method and the algorithm having less computational complexity compared to baseline approaches is proposed to achieve the optimal parameters and goals of the problem. The performance of the proposed scheme is evaluated by simulations and compared with the other methods. The results indicate that the proposed approach can achieve less energy consumption while the minimum required throughput is guaranteed.