; 2010-12-30 main.asm EW ; ; this file is derived from ; amforth/releases/4.2/appl/template/template.asm ; ; 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" ; config settings .set WANT_ISR_RX = 1 ; interrupt driven receive .set WANT_ISR_TX = 1 ; interrupt driven send .set WANT_RS485 = 1 ; rs485 half duplex connection .set WANT_MPC = 1 ; multi-processor-communication mode (7N2, 8N1 modes) ; 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 ; initial baud rate of terminal .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 .equ TXCIE0 = TXCIE .set USART_B_VALUE = (1<