A pen-based entry electronic device has a body having a holder portion for holding a pen that is carried along with the body and a keyboard having an engagement portion that engages with the holder portion. The buried layer of the second conductivity type selectively is provided in the first conductivity-type base layer. The integrated circuit is operable in a first and second operating state.