Uygulamaya ait kodları indirmek için tıklayınız...
#include "mcc_generated_files/mcc.h" #include "DISPLAY.h" int ADCdeger; /* Main application */ void main(void) { // Initialize the device SYSTEM_Initialize(); // If using interrupts in PIC18 High/Low Priority Mode you need to enable the Global High and Low Interrupts // If using interrupts in PIC Mid-Range Compatibility Mode you need to enable the Global and Peripheral Interrupts // Use the following macros to: // Enable the Global Interrupts //INTERRUPT_GlobalInterruptEnable(); // Disable the Global Interrupts //INTERRUPT_GlobalInterruptDisable(); // Enable the Peripheral Interrupts //INTERRUPT_PeripheralInterruptEnable(); // Disable the Peripheral Interrupts //INTERRUPT_PeripheralInterruptDisable(); while (1) { // Add your application code ADCdeger = (int)ADC_GetConversion(POT0); grupDISPLAY_ekrani(ADCdeger); } } /** End of File */