This paper discusses the finite-time optimal control problem via sampled-data control of a class of piecewise affine (PWA) systems, where the switching action of the discrete state is determined at each sampling time according to a condition on the continuous state.