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