This paper presents a time-domain model of a MV/LV bidirectional solid state transformer (SST). A multilevel converter configuration of the SST MV side is obtained by cascading a single-phase cell made of the series connection of an H bridge and a dual active bridge (dc-dc converter); the aim is to configure a realistic SST design suitable for MV levels. A three-phase four-wire converter has been used for the LV side, allowing the connection of both load/generation. The SST model, including the corresponding controllers, has been built and encapsulated as a custom-made model in the ATP version of the EMTP for application in distribution system studies. Several case studies have been carried out in order to evaluate the behavior of the proposed SST design under different operating conditions and check its impact on power quality.