Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * GccApplication2.c
- *
- * Created: 27/11/2014 14:36:13
- * Author: Callum
- */
- #include <avr/io.h>
- #include <avr/interrupt.h>
- char contents = 0xAA;
- int main(void)
- {
- DDRA = 0xFF;
- DDRD = 0x00;
- EICRA = 0x01;
- EIMSK = 0x01;
- PORTA = contents;
- sei();
- while(1)
- {
- //TODO:: Please write your application code
- }
- }
- ISR(INT0_vect) {
- contents = ~contents;
- PORTA = contents;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement