Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Thread

About ATtiny13 EEPROM Problem.

About ATtiny13 EEPROM Problem.

2005-02-02 by ºa¥úªº¸¨¤é

hi, i am a Avr newbie. i have a project about AD convert, in this 
project i store the compare value to eeprom, and fetch the value if 
program initial. 

this is my code section about read eeprom data.

---------------------------------------
.ESEG
TABLE: .db 0x01,0x57,0x01,0x1D,0x01,0x3E

EEREAD:
	SBIC EECR,EEWE
	RJMP EEREAD
	OUT EEAR,EEARD
	SBI EECR,EERE
	IN EEDRD,EEDR
	RET

RESET:
	CLI	
	
	LDI EEARD,TABLE
	RCALL EEREAD
	MOV C12H,EEDRD
	LDI EEARD,TABLE+1
	RCALL EEREAD
	MOV C12L,EEDRD
	LDI EEARD,TABLE+2
	RCALL EEREAD
	MOV C9H,EEDRD
	LDI EEARD,TABLE+3
	RCALL EEREAD
	MOV C9L,EEDRD
	LDI EEARD,TABLE+4
	RCALL EEREAD
	MOV C6H,EEDRD
	LDI EEARD,TABLE+5
	RCALL EEREAD
	MOV C6L,EEDRD

	SEI
-----------------------------------------
my problem was i feel my code no good in initial , please tell me 
good method, thanks .

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.