;**************************************** ;File: Transmission.asm ;Function: AVR dual CPU communication program, asynchronous mode, similar to UART ;Device: AT90S2313 ;Hardware: PD.2 of master and slave CPUs are connected through pull-up resistors;Clock: 4.0MHz ;Design: Lindong ;Date: August 8, 2003;**************************************** .include\\\"2313def.inc\\\" .equ port =PORTD .equ pin =PIND .equ ddr =DDRD .equ bit =2 ;********************************************* ;Interrupt vector table;***************************************** .org 0x000 rjmp main rjmp INT0_isr reti reti reti reti reti reti reti ;********************************************* ;Program entry;******************************************** .org 0x000B main: ldi R16,0xDF ;Set stack pointer out spl,R16 cbi port,bit ;Set port direction cbi ddr,bit ldi R16,0x02 ;INT0 falling edge valid out MCUCR,R16 ldi R16,0x40 ;INT0 interrupt enable out GIMSK,R16
You Might Like
Recommended ContentMore
Open source project More
Popular Components
Searched by Users
Just Take a LookMore
Trending Downloads
Trending ArticlesMore