2
main.c
2
main.c
@@ -1,5 +1,6 @@
|
|||||||
#include <xc.h>
|
#include <xc.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#pragma config FOSC = HS // Oscillator Selection bits
|
#pragma config FOSC = HS // Oscillator Selection bits
|
||||||
#pragma config WDTE = OFF // Watchdog Timer Enable bit
|
#pragma config WDTE = OFF // Watchdog Timer Enable bit
|
||||||
#pragma config PWRTE = OFF // Power-up Timer Enable bit
|
#pragma config PWRTE = OFF // Power-up Timer Enable bit
|
||||||
@@ -7,6 +8,7 @@
|
|||||||
#pragma config BOREN = OFF // Brown-out Reset Enable bit
|
#pragma config BOREN = OFF // Brown-out Reset Enable bit
|
||||||
|
|
||||||
#define LENGTH 8
|
#define LENGTH 8
|
||||||
|
|
||||||
unsigned int sum = 0; // Suma liczb 8-bitowych, zapisana w zmiennej 16-bitowej
|
unsigned int sum = 0; // Suma liczb 8-bitowych, zapisana w zmiennej 16-bitowej
|
||||||
unsigned char rest = 0;
|
unsigned char rest = 0;
|
||||||
unsigned int result = 0;
|
unsigned int result = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user