Чт мар 29, 2018 14:41:03
Чт мар 29, 2018 15:21:59
Пт мар 30, 2018 07:38:24
Чт апр 05, 2018 18:10:50
Вс апр 15, 2018 20:55:51
Чт май 31, 2018 22:57:02
Пт июн 01, 2018 02:04:33
Пт июн 01, 2018 02:22:42
Пт июн 01, 2018 15:04:31
Вот-вот.А потом в "Протонах"...
Не боитесь взять грех на душу?в ЛС посмотрите
Чт авг 02, 2018 17:46:00
Пт авг 03, 2018 03:42:00
Пт авг 03, 2018 06:26:26
Вт авг 07, 2018 09:53:21
Вт авг 07, 2018 10:20:57
#include "Includes.h"
__CONFIG(FOSC_INTRCIO & WDTE_OFF & PWRTE_ON & MCLRE_OFF & BOREN_ON & CP_OFF & CPD_OFF);
// Define CPU Frequency
// This must be defined, if __delay_ms() or
// __delay_us() functions are used in the code
#define _XTAL_FREQ 4000000
void InitTimer0(void)
{
// Timer0 is 8bit timer, select T0CS and PSA to be one
OPTION_REG &= 0xC0; // Make Prescalar 1:2
T0IE = 1; // Enable Timer0 interrupt
GIE = 1; // Enable global interrupts
}
void interrupt ISR(void)
{
if(T0IF) //If Timer0 Interrupt
{
GP0 = ~GP0; // Toggle GP0 pin
T0IF = 0; // Clear the interrupt
}
}
// Main function
void main()
{
ANSEL = 0x00; // Set ports as digital I/O, not analog input
ADCON0 = 0x00; // Shut off the A/D Converter
CMCON = 0x07; // Shut off the Comparator
VRCON = 0x00; // Shut off the Voltage Reference
TRISIO = 0x08; // GP3 input, rest all output
GPIO = 0x00; // Make all pins 0
InitTimer0();
while(1)
{
}
}
Ср авг 08, 2018 06:29:52
Пт авг 24, 2018 21:14:54
Вс авг 26, 2018 08:01:21
Вс авг 26, 2018 10:22:15
Вс авг 26, 2018 19:43:10
Вт окт 30, 2018 22:08:28