The aim of this paper is to investigate the influence of the coupling of two scales on the dynamics of a piecewise smooth dynamical system. A relatively simple model with two switching boundaries is taken as an example by introducing a nonlinear piecewise resistor and a harmonically changed electric source into a typical Chua's circuit. Taking suitable values of the parameters, four different types of bursting oscillations are observed corresponding to different values of the exciting amplitude. Regarding the periodic excitation as a slow-varying parameter, equilibrium branches of the fast subsystem as well as the related bifurcations, such as fold bifurcation, Hopf bifurcation, period doubling bifurcation, nonsmooth Hopf bifurcation and nonsmooth fold limit cycle bifurcation, are explored with theoretical and numerical methods. With the help of the overlap of the transformed phase portrait and the equilibrium branches, the mechanism of the bursting oscillations can be analyzed in detail. It is found that for relatively small exciting amplitude, since the trajectory is governed by a smooth subsystem, only conventional bifurcations take place, leading to the transitions between the spiking states and quiescent states. However, with an increase of the exciting amplitude so that the trajectory passes across the switching boundaries, nonsmooth bifurcations occurring at the boundaries may involve the structures of attractors, leading to complicated bursting oscillations. Further increasing the exciting amplitude, the number of the spiking states decreases although more bifurcations take place, which can be explained by the delay effect of bifurcation.