; This is a template for an amforth project. ; ; The order of the entries (esp the include order) must not be ; changed since it is very important that the settings are in the ; right order ; ; note: .set is like a variable, .equ is like a constant ; ; first is to include the macros from the amforth ; directory .include "macros.asm" ; include the amforth device definition file. These ; files include the *def.inc from atmel internally. .include "device.asm" ; amforth needs two essential parameters ; cpu clock in hertz, 1MHz is factory default .equ F_CPU = 11059200 ; terminal settings ; check http://amforth.sourceforge.net/recipes/usart-settings.html ; for further information .set WANT_ISR_RX = 1 ; interrupt driven receive .set WANT_ISR_TX = 0 ; send slowly but with less code space ; Baud settings .equ BAUD = 115200 ; additional .equs for "old fashioned" mcu with usart, not usart0 .equ TXEN0 = TXEN .equ RXEN0 = RXEN .equ RXCIE0 = RXCIE .equ UCSZ00 = UCSZ0 .set USART_B_VALUE = (1<