Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * EVM_display.c
- *
- * Created: 10/11/2011 9:43:53 AM
- * Author: Bishal Paudel
- */
- #define F_CPU 8000000
- #include <avr/io.h>
- #include <util/delay.h>
- //int initialize(void);
- //int senddata(int);
- //int wrcmd(void);
- //int wrdata(void);
- //int keyboard(void);
- int main(void)
- {
- int value=0;
- char display;
- DDRA=0xFF;
- DDRC=0x07;
- //ASSR&=0x07;
- //DDRC=0xff;
- //PORTC=0xff;
- //MCUCSR=0x80;
- while(1)
- {
- value=keyboard();
- //keyboard();
- if (value!=0)
- {
- //dataport=0xc0;
- //wrcmd();
- initialize();
- senddata('@'+value);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment