代码搜索结果
找到约 10,000 项符合
AVR 的代码
avr程序.c
这个芯片怎么说呢!比较贵!!但性能比较不错!
但就是不知道怎么标定(我想看看到底准不准,实践出真理)!!
下面是用mega8改写的程序,在测量程序里我改了一下读取温、湿度的顺序,因为按照原程序的顺序读出来结果不正确,改了后就这正确了(这是没修改的)。有什么问题大家一起讨论。QQ:48801015
/******************************************** ...
led.avr
.INCLUDE "8515DEF.INC" ;CPU配置文件
.ORG $0000
RJMP RESET ;上电复位跳转到主程序
.ORG $0013 ;代码段定位,跳过中断区
RESET:
LDI R16,LOW(RAMEND) ;设置堆栈指针
OUT SPL,R16
LDI R16,HIGH(RAMEND)
OUT SPH,R16
avr.inc
; Macro file to translate SCCAVR assembler output
; into AVR instructions.
; Ron Kreymborg
ldix macro val
ldi r27,high(val)
ldi r26,low(val)
endm
ldiy macro val
ldi r29,high(val)
ldi
clock.avr
.include "2313def.inc"
.equ IND_DATA =5 ;IND_DATA conn to pin #5
.equ IND_CLOCK =6 ;IND_CLOCK conn to pin #6
.def CNT1 =R25 ;(GL)Counter for DIGIT_7SEG1/DIGIT_7SEG2 Select
.def KEY =R2
avr.inc
;------------------------------------------------;
; Constants
.equ RAMTOP = 0x60 ; SRAM top address
.equ RAMTOP100 = 0x100 ; For memory mapped I/O devices
.equ bit0 = 0b00000001
.equ bit1
avr串口.txt
/* Code adapted from Atmel AVRApplication Note AVR306
* Interrupt mode driver for UART.
*/
#include
#include
#include "uart.h"
/* IMPORTANT: these vector numbers are for
avr.c
/*
* avrdude - A Downloader/Uploader for AVR device programmers
* Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean
*
* This program is free software; you can redistribute it a
avr.h
/*
* avrdude - A Downloader/Uploader for AVR device programmers
* Copyright (C) 2000, 2001, 2002, 2003 Brian S. Dean
*
* This program is free software; you can redistribute it a