We investigate the existence of acoustic Tamm states at the interface between two one-dimensional (1D) comblike phononic crystals (PnCs) based on slender tubes and discuss their topological or trivial character. The PnCs consist of stubs grafted periodically along a waveguide and the two crystals differ by their geometrical parameters (period and length of the stubs). We use several approaches to discuss the existence of Tamm states and their topology when connecting two half-crystals. First, we derive a necessary and sufficient condition on the existence of interface states based on the analysis of the bulk band structure and the symmetry of the band edge states. This approach is equivalent to an analysis of the Zak phases of the bulk bands in the two crystals. Indeed, a topological interface state should necessarily exist in any common bandgap of the two PnCs for which the lower (upper) band edges have opposite symmetries. A novelty of our structure consists in the fact that the symmetry inversion results from a band closure (flat band) rather than from a gap closure, in contrast to previous works. Then, such interface states are revealed through different physical quantities, namely: (i) the local density of states (LDOS), which exhibits a high localization around the interface; (ii) sharp peaks in the transmission spectra in the common bandgap when two finite crystals are connected together; (iii) the phases of the reflection coefficients at the boundary of each PnC with a waveguide, which have a direct relationship with the Zak phases. In addition, we show that the interface states can transform to bound states in the continuum (BICs). These BICs are induced by the cavity separating both PnCs and they remain robust to any geometrical disorder induced by the stubs and segments around this cavity. Finally, we show the impossibility of interface states between two connected PnCs with different stub lengths and similar periods. The sensitivity of these states to interface perturbations can find many practical applications in PnC sensors.