Rev 410 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download
#include "D:\KAKLIK\programy\PIC_C\mereni\otmer\otackomer.h"
#define DATA PIN_A1
#define CP PIN_A0
void main()
{
int i;
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
while(true)
{
output_high(DATA);
output_high(CP);
Delay_ms(100);
output_low(CP);
output_low(DATA);
for(i=7;i>0;i--)
{
Delay_ms(100);
output_high(CP);
Delay_ms(100);
output_low(CP);
}
}
}