A method and apparatus for configuring a microcontroller. An XML
description of the microcontroller's hardware resources may be accessed.
A user may select from available hardware resources and pre-defined user
modules to select a configuration. Configuration information, which may
include register bit patterns and microprocessor instructions, may be
automatically generated. Additionally, application programming interface
calls and structure, as well as interrupt vector tables may be
automatically generated. Embodiments of the present invention provide
improved ease of use and the ability to manage greater complexity in the
configuration of configurable microcontrollers.