[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Simulavr-devel] [sr #104593] simulavr fails to initialize timer on 2313
From: |
anonymous |
Subject: |
[Simulavr-devel] [sr #104593] simulavr fails to initialize timer on 2313 |
Date: |
Tue, 23 Aug 2005 11:03:45 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.10) Gecko/20050730 Firefox/1.0.6 (Debian package 1.0.6-2) |
URL:
<http://savannah.nongnu.org/support/?func=detailitem&item_id=104593>
Summary: simulavr fails to initialize timer on 2313
Project: Simulavr: an AVR simulator
Submitted by: None
Submitted on: Di 23.08.2005 um 11:03
Category: None
Priority: 5 - Normal
Severity: 4 - Important
Status: None
Privacy: Private
Assigned to: None
Originator Email: address@hidden
Open/Closed: Open
Platform Version: GNU/Linux
_______________________________________________________
Details:
example code:
-------------------------------------------------
.include "2313def.inc"
; [...]
main:
; (stack init et al)
RCALL timer_init
timer_init:
LDI mp, 0b00000011 ; prescaler auf 64
OUT TCCR0, mp
LDI mp, 0b00000010 ; timer IRQ maske setzen
OUT TIMSK, mp
SEI
RET
---------------------------------------
the above code yields:
memory.c:259: WARNING: **** Attempt to write invalid io reg: TCCR0 at 0x0053
memory.c:259: WARNING: **** Attempt to write invalid io reg: TIMSK at 0x0059
Any ideas what is going wrong?
_______________________________________________________
Carbon-Copy List:
CC Address | Comment
------------------------------------+-----------------------------
mail --AT-- fionn --PUNKT-- de | Originator Email
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/support/?func=detailitem&item_id=104593>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.nongnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Simulavr-devel] [sr #104593] simulavr fails to initialize timer on 2313,
anonymous <=