1. A microcontroller comprising: a central processor unit (CPU); a Flash program memory in communication with the CPU via an instruction bus; and on-chip debug (OCD) logic coupled to the CPU, the OCD logic containing logic detecting a predetermined opcode on an instruction bus and to provide a program breakpoint.