With (template.asm based on Matthias):

; initial baud rate of terminal
.equ BAUD = 115200
.set USART_B_VALUE = (1<<TXEN0) | (1<<RXEN0)
.equ WANT_ISR_RX = 1;
.if WANT_ISR_RX == 1
.set USART_B_VALUE = (1<<TXEN0) | (1<<RXEN0)| (1<<RXCIE0)
.else
.set USART_B_VALUE = (1<<TXEN0) | (1<<RXEN0)
.endif
; 8N1 is commonly used
.equ USART_C_VALUE = (3<<UCSZ00)
.include "drivers/usart_0.asm"

the result of compilation is:

ATmega1284P memory use summary [bytes]:
Segment   Begin    End      Code   Data   Used    Size   Use%
---------------------------------------------------------------
[.cseg] 0x000000 0x01e7e2   1882   6134   8016  131072   6.1%
[.dseg] 0x000100 0x000100      0      0      0   16384   0.0%
[.eseg] 0x000000 0x00003e      0     62     62    4096   1.5%

Assembly complete, 0 errors. 0 warnings

I hope WANT_ISR_RX = 1 is what I want.. 
Pito

----- PŮVODNÍ ZPRÁVA -----
Od: "Matthias Trute" <mtr...@web.de>
Komu: "Everything around amforth"
<amforth-devel@lists.sourceforge.net>
Předmět: Re: [Amforth-devel] 1284p compilation
Datum: 27.8.2010 - 19:43:36

> Am Freitag, den 27.08.2010, 17:24 +0200 schrieb
> pito: 
> > FYI - result of the compilation for 1284p (avr
> > studio 4.18), device
> > > from trunk:
> > 
> > AVRASM: AVR macro assembler 2.1.42 (build 1796
> > Sep 15 2009 10:48:36)
> > > Copyright (C) 1995-2009 ATMEL Corporation
> 
> Thats the version I use too. so far ok
> 
> > 
> > ...
> > C:\MyCode\AVR\WINAVR\projects\AMFORTH\core\drivers/usart.asm(2):
> > 
> Here lies probably the root cause: try including
> the usart_0.asm
> file instead.
> 
> The following template.asm snippet did work out of
> the (trunk-) box
> (note the additional 0 digits almost everywhere)
> -----------
> ...
> ; initial baud rate of terminal
> .equ BAUD = 9600
> .set USART_B_VALUE = (1<<TXEN0) | (1<<RXEN0)
> 
> .if WANT_ISR_RX == 1
> .set USART_B_VALUE = (1<<TXEN0) | (1<<RXEN0)|
> (1<<RXCIE0)
> .else
> .set USART_B_VALUE = (1<<TXEN0) | (1<<RXEN0)
> .endif
> ; 8N1 is commonly used
> .equ USART_C_VALUE = (3<<UCSZ00)
> .include "drivers/usart_0.asm"
> ..........
> -----------------
> 
> template.hex:
> [echo] Producing Hexfiles for atmega1284p
> 
> BUILD SUCCESSFUL
> Total time: 4 seconds
> 
> -------------
> 
> Without that _0 the wrong usart drivers gets
> included (dont blame
> me for that).
> 
> HTH
> 
> Matthias
> 
> 
> 
> ------------------------------------------------------------------------------
> > Sell apps to millions through the Intel(R)
> Atom(Tm) Developer Program
> Be part of this innovative community and reach
> millions of netbook users 
> worldwide. Take advantage of special opportunities
> to increase revenue and 
> speed time-to-market. Join now, and jumpstart your
> future.
> http://p.sf.net/sfu/intel-atom-d2d
> _______________________________________________
> Amforth-devel mailing list
> Amforth-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amforth-devel



------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Amforth-devel mailing list
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel

Reply via email to