A terminal apparatus (200, 400, 600) that assigns either a response signal based on an error detection result of downlink data or an uplink control signal representing generation of uplink data to different code resources, and transmits the response signal or the uplink control signal assigned to the different code resources through a plurality of antennas, the terminal apparatus comprising: a receiving section that receives the downlink data assigned to a downlink data channel; a generating section that generates the response signal based on the error detection result of the downlink data; a transmitting section that transmits the response signal or the uplink control signal using the different code resources; and a control section (208, 408, 608) that controls transmission of the response signal or the uplink control signal, based on a generation status of the response signal and the uplink control signal, characterized in that the control section (208, 408, 608) transmits, through a first antenna among the plurality of antennas, the uplink control signal or the response signal using a first code resource to which the response signal is assigned when the uplink control signal and the response signal have been simultaneously generated within a transmission unit time, using the first code resource to which the uplink control signal is assigned when only the uplink control signal has been generated within the transmission unit time or using a second code resource to which the response signal is assigned when only the response signal has been generated within the transmission unit time, and transmits, through a second antenna among the plurality of antennas, the uplink control signal or the response signal using a third code resource to which the response signal is assigned when the uplink control signal and the response signal have been simultaneously generated within the transmission unit time, using the third code resource to which the response signal is assigned when only the response signal has been generated within the transmission unit time, or using the third code resource to which the uplink control signal is assigned when only the uplink control signal has been generated within the transmission unit time, the first code resource, the second code resource, and the third code resource being different code resources. a receiving section that receives the downlink data assigned to a downlink data channel; a generating section that generates the response signal based on the error detection result of the downlink data; a transmitting section that transmits the response signal or the uplink control signal using the different code resources; and a control section (208, 408, 608) that controls transmission of the response signal or the uplink control signal, based on a generation status of the response signal and the uplink control signal, characterized in that the control section (208, 408, 608) transmits, through a first antenna among the plurality of antennas, the uplink control signal or the response signal using a first code resource to which the response signal is assigned when the uplink control signal and the response signal have been simultaneously generated within a transmission unit time, using the first code resource to which the uplink control signal is assigned when only the uplink control signal has been generated within the transmission unit time or using a second code resource to which the response signal is assigned when only the response signal has been generated within the transmission unit time, and transmits, through a second antenna among the plurality of antennas, the uplink control signal or the response signal using a third code resource to which the response signal is assigned when the uplink control signal and the response signal have been simultaneously generated within the transmission unit time, using the third code resource to which the response signal is assigned when only the response signal has been generated within the transmission unit time, or using the third code resource to which the uplink control signal is assigned when only the uplink control signal has been generated within the transmission unit time, the first code resource, the second code resource, and the third code resource being different code resources.