-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproject.c
37 lines (33 loc) · 880 Bytes
/
project.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*****************************************************
This program was produced by the
CodeWizardAVR V2.04.4a Advanced
Automatic Program Generator
© Copyright 1998-2009 Pavel Haiduc, HP InfoTech s.r.l.
http://www.hpinfotech.com
Project : Sample
Version : 0.1
Date : 5/30/2019
Company : None
Comments: None
Chip type : ATmega32
Program type : Application
AVR Core Clock frequency: 40.000000 MHz
Memory model : Small
External RAM size : 0
Data Stack size : 512
*****************************************************/
#include <mega32.h>
#include <delay.h>
unsigned char i;
unsigned char des[16] = {0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x61,0x62,0x63,0x64,0x65,0x66};
char t = PINA;
void main(void) {
DDRA=0xff;
PORTA=0x00;
while (1) {
for(i=0 ; i<t ; i++) {
PORTB=des[15];
delay_ms(10);
}
}
}