IAR Aug 2000
some support functions for priority manipulation and interrupt handlers for the INT1 and
As the example above illustrates, also very detailed target-dependent features can be
configured very easily using dialog boxes. The graphic user interface prevents any
attempt to make illegal settings or create resource conflicts, and gives a good overview
of the features available in the selected chip and bus mode.
Peripheral module configuration
All peripheral modules (such as UARTs, DMA or CAN controllers, A/D or D/A converters,
etc) can be configured in the same manner. Figure 4 shows how a serial
communications channel may be configured in asynchronous mode.
Figure 4: Configuration of a UART channel
Both transmit and receive interrupts have been enabled, so the code generator will
create interrupt handlers and implement interrupt-driven UART drivers using transmit
and receive buffers. The baud rate and communications protocol have been configured
to 8 data bits, 1 stop bit, no parity, and 19200 baud.
Other peripheral modules can be configured in the same manner.
Once the peripheral modules have been configured satisfactorily, all SFR initialization
values are calculated and device driver source code is generated automatically.
Dependent on the project settings, the set of device driver functions or their internal
implementation may be different.