Am Sonntag, den 20.12.2015, 19:49 +0800 schrieb Richard Burden: > Thanks Matthias. I've learned a lot today from Peter and your > responses. I > now have the serial data flowing correctly into the satellite tuner > board > I'm trying to turn into a signal generator.
Craig Lindley did something similar (I believe) http://www.craigandheather.net/docs/ArduinoFMRadioArticle.pdf > > I tried to get the Portb and ddr constants to be included in the base > amforth. Without much success so I simply pasted the definitions into > the > terminal window. > > I appreciate having every register included in the base amforth > consumes a > lot of memory. I suggest the ports and ddr registers be included in > the > base though since a microcontroller can't do much before these ports > need > to be used. There are (at least) two options available: 1) use the amforth-shell utility, it autodetects the controller type and "knows" all register names with their respective addresses. To use it, you need the original file system structure in place. 2) add the line .include "device.inc" into your dictionary application (either dict_appl.inc or dict_appl_core.inc, depends how much free flash space you have, dict_appl.inc is a good start) file and define the register sets you need. May look like .set WANT_PORTA=1 .set WANT_PORTC=1 .include "device.inc" and recompile. If everything works as it should, you have a set of new words in the dictionary > words .... (value) execute exit PINB DDRB PORTB PINA DDRA PORTA ?negate cfolddepth 2r@ postpone (marker) ... If you look into the device.asm file in the controller directory, you get a list of all available register sets, they all start with WANT_ and are disabled (set to 0) by default. This works for the AVR8 platform, if I understand the MSP430 well enough, I'd like to do something similar as well. > Overall I'm very happy with version 6. Congratulations to the authors > for > putting so much effort in. Amazing that a $2 arduino clone can be > repurposed into something I consider much more useful. Thank you Matthias ------------------------------------------------------------------------------ _______________________________________________ Amforth-devel mailing list for http://amforth.sf.net/ Amforth-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amforth-devel