Topological crystalline insulators (TCI) have been experimentally manufactured and studied. We propose a minimal tight-binding model for thin films made of TCI on the basis of the mirror and discrete rotational symmetries. The basic term consists of the spin-orbit interaction describing a Weyl semimetal, where gapless Dirac cones emerge at all the high-symmetry points in the momentum space. We then introduce the mass term providing gaps to Dirac cones. They simulate the thin films made of the [001], [111] and [110] TCI surfaces. TCI thin films are two-dimensional topological insulators protected by mirror symmetry. The mirror symmetry is broken by introducing an electric field E z perpendicular to the film. We first note that the band structure can be controlled using the electric field. We then analyze the mirror-Chern number and the edge modes taking into consideration the bulk-edge correspondence, even for ≠ E 0 z . We also calculate the conductance as a function of E z . We propose a multi-digit topological fieldeffect transistor by applying an electric field independently to the right and left edges of a nanoribbon. Our results will open up a new route to topological electronics.Content from this work may be used under the terms of the Creative Commons Attribution 3.0 licence. Any further distribution of this work must maintain attribution to the author(s) and the title of the work, journal citation and DOI. New J. Phys. 16 (2014) 065015 M Ezawa N z z New J. Phys. 16 (2014) 065015 M Ezawa for the triangular (N = 3) and square (N = 4) lattices: see figures 1(a) and (c). We shall soon see that this model has multiple Dirac cones at the high-symmetry points known, such as the X, Y, Γ and M points in the square lattice and the Γ, K, ′ K , M 1 , M 2 , M 3 points in the triangular lattice [55]. The Hamiltonian (3) describes a Weyl semimetal. New J. Phys. 16 (2014) 065015 M Ezawa New J. Phys. 16 (2014) 065015 M Ezawa 5