One-dimensional models with topological band structures represent a simple and versatile platform to demonstrate novel topological concepts. Here we experimentally study topologically protected states in silicon at the interface between two dimer chains with different Zak phases. Furthermore, we propose and demonstrate that, in a system where topological and trivial defect modes coexist, we can probe them independently. Tuning the configuration of the interface, we observe the transition between a single topological defect and a compound trivial defect state. These results provide a new paradigm for topologically protected waveguiding in a complementary metal-oxide-semiconductor compatible platform and highlight the novel concept of isolating topological and trivial defect modes in the same system that can have important implications in topological physics.