Quick and Easy Code Generation for NXP Microcontrollers

Code Architect

This service provided by Embedded Systems Academy.
The offline version CANopen Architect is an EDS editor that produces C source code to configure the Micro CANopen source code.
Try CANopen simulations using the CANopen Magic Monitor, Analyzer and Simulator.

Current Project: Not Saved Open Project | Save Project | New Project

Select the desired microcontroller and peripheral:

Start >  89LPC915 >  Comparators

 Help: How do I select what I want?

Step 2 Configure the Comparators and click on Generate:
CPU Clock Frequency (MHz):
Use Timer 0 to generate 13 microsecond delay  
Use Timer 1 to generate 13 microsecond delay  
Interrupt Register Bank:

Interrupt Priority:

Interrupt function name:

13 microsecond delay function name:

Initialization function name:

Disable function name:

Get comparator output function name:
Comparator select positive input function name:


Note that the datasheet mentions a 10 microsecond delay when enabling the comparators. Because the timers may be clocked from the Watchdog timer, which can be up to 30% from the stated frequency, 30% has been added to the absolute minimum delay of 10us to give 13us.