A terminal apparatus adapted to communicate with a base station apparatus, comprising: a reception unit configured to receive radio resource control information which indicates whether an orthogonal cover code is used for a demodulation reference signal used to demodulate a physical uplink shared channel or not and downlink control information used for scheduling of the physical uplink shared channel transmitted on a single antenna port, a radio resource control unit configured to set whether the orthogonal cover code is used for the demodulation reference signal on the basis of the received radio resource control information or not, a generation unit configured to generate the demodulation reference signal on the basis of a demodulation reference signal sequence given by multiplying a reference signal sequence by a certain sequence, a transmission unit configured to transmit the demodulation reference signal together with the physical uplink shared channel scheduled by the downlink control information, characterized in that the certain sequence is [1 1] in case where the radio resource control unit sets that the orthogonal cover code is not used for the demodulation reference signal on the basis of the received radio resource control information, the certain sequence is [1 1] in case where a temporary Cell-Radio Network Temporary Identity, C-RNTI, was used to transmit the downlink control information, the certain sequence is one of [1 1] and [1 -1] and is specified on the basis of cyclic shift information included in the downlink control information in case where the radio resource control unit sets that the orthogonal cover code is used for the demodulation reference signal on the basis of the received radio resource control information and the temporary C-RNTI was not used to transmit the downlink control information. a reception unit configured to receive radio resource control information which indicates whether an orthogonal cover code is used for a demodulation reference signal used to demodulate a physical uplink shared channel or not and downlink control information used for scheduling of the physical uplink shared channel transmitted on a single antenna port, a radio resource control unit configured to set whether the orthogonal cover code is used for the demodulation reference signal on the basis of the received radio resource control information or not, a generation unit configured to generate the demodulation reference signal on the basis of a demodulation reference signal sequence given by multiplying a reference signal sequence by a certain sequence, a transmission unit configured to transmit the demodulation reference signal together with the physical uplink shared channel scheduled by the downlink control information, characterized in that the certain sequence is [1 1] in case where the radio resource control unit sets that the orthogonal cover code is not used for the demodulation reference signal on the basis of the received radio resource control information, the certain sequence is [1 1] in case where a temporary Cell-Radio Network Temporary Identity, C-RNTI, was used to transmit the downlink control information, the certain sequence is one of [1 1] and [1 -1] and is specified on the basis of cyclic shift information included in the downlink control information in case where the radio resource control unit sets that the orthogonal cover code is used for the demodulation reference signal on the basis of the received radio resource control information and the temporary C-RNTI was not used to transmit the downlink control information.