doc

Dual (multi) machine communication program

  • 2013-09-18
  • 25KB
  • Points it Requires : 2

;**************************************** ;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

unfold

You Might Like

Uploader
PKelect
 

Recommended ContentMore

Popular Components

Just Take a LookMore

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
×