Event driven embedded systems are one of the essential structures of heterogeneous embedded systems. The difference behavior of hardware and software motivates the usage of high-level system design approaches such as Hardware Software co-design Model. The objective of this paper is to obtain a new Co-design model for discrete-events embedded systems based on Markov chains, and then using the heterogeneous modeling by composing the discrete-times model within discrete-events model to apply it on anti‐lock braking system (ABS). To achieve the model, we use Ptolemy II which is a Java-based software framework developed as part of the Ptolemy Project by University of California, Berkeley. The importance of this paper is to be the kernel for heterogeneous co-design modeling for heterogeneous embedded systems in future works.