From: Matthias T. <mt...@we...> - 2012-10-25 19:36:30
|
Hi David, > I don't need a Forth prompt on the other uart - I'm just chatting to > other devices, initially an Omnikey RFID R/W module, and I'll probably > also want to hook up to XBee radios later. So I just want to write a > string of bytes to the second uart and have the response read into a > buffer under interrupt control. So, just implementing interrupt driven > serial receive on uart1. Some kind of a mixture of http://amforth.sourceforge.net/recipes/interrupts.html and http://amforth.sourceforge.net/recipes/redirect-io.html should do what you want to do (and perhaps the multitasker) I'm too lazy to convert the assembly usart word to forth code. There *was* a technical reason to use assembly for interrupts in the first amforth versions, but that is no longer the case. Never change a running system ;) Matthias |