Re: [Amforth] Serial interface at 115200 BAUD on Arduino Mega 2560

2019-03-14 Thread Tristan Williams
Fred,

Many thanks. I have a DSO112A so I was interested in what you are
looking to do.

> One of the connectors is a alternative UART. It is a LVTTL connection.
> I want to connect the Arduino uart1 (TXD1/RXD1) to this connector (J11).

I think LVTTL is ~3.3V levels rather than the 5V levels of the
Mega2560. Some level shifting will be needed/prudent.

> The bit stream format for the serial interface is: 115200 baudrate,
> 8 data bits, 1 stop bit, and no parity. This is fixed and can not be
> changed 

Are you programming the Mega2560 with AmForth?

115200 is uncharted territory for me and usart1. I have written some
AmForth words which work for me at 9600

https://www.mostlymostly.uk/post/2019.02.01/

I have just quickly reconfigured them locally for 115200. Simple
typing at a terminal seemed OK. Beyond that, how much data is sent by
the DSO112A, how often, and what you want to do with it will matter,
so it is difficult to know whether it would work well enough or not.

Tristan



___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel


Re: [Amforth] Serial interface at 115200 BAUD on Arduino Mega 2560

2019-03-14 Thread f.zelders--- via Amforth-devel
Tristan,

The DSO112A can be used in two ways:
a) as a stand alone mini scope and
b) as a module that can be integrated to user’s systems. Therefore on the 
DSO112A system board several connectors are provided.
One of the connectors is a alternative UART. It is a LVTTL connection.




I want to connect the Arduino uart1 (TXD1/RXD1) to this connector (J11).

From the manual: 
The bit stream format for the serial interface is: 115200 baudrate, 8 
data bits, 1 stop bit, and no parity. This is fixed and can not be changed


Fred


> Op 14 mrt. 2019, om 19:33 heeft Tristan Williams  > het volgende geschreven:
> 
> Hi Fred,
> 
> How are you proposing to connect the DSO112A to the Arduino Mega2560 ?
> 
> Best wishes,
> Tristan
> 
> 
> On 14Mar19 12:43, f.zelders--- via Amforth-devel wrote:
>> 
>> Hello! 
>> 
>> I want to connect a DSO112A mini oscilloscope to UART1 of my  Arduino Mega 
>> 2560 .
>> The DSO112A uart only supports 115200 BAUD. So not at other baud rates.
>> How to I initialize uart1 (UBBR1, UCSR1B and UCSR1C) in order to communicate 
>> via uart1 at 115200 BAUD?
>> 
>> Hope someone can help.
>> 
>> Much appreciated!
>> 
>> 
>> Fred Zelders
>> the Netherlands
>> ___
>> Amforth-devel mailing list for http://amforth.sf.net/ 
>> 
>> Amforth-devel@lists.sourceforge.net 
>> 
>> https://lists.sourceforge.net/lists/listinfo/amforth-devel
>> 
> 
> 
> ___
> Amforth-devel mailing list for http://amforth.sf.net/ 
> Amforth-devel@lists.sourceforge.net 
> 
> https://lists.sourceforge.net/lists/listinfo/amforth-devel


___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel


Re: [Amforth] Serial interface at 115200 BAUD on Arduino Mega 2560

2019-03-14 Thread Tristan Williams
Hi Fred,

How are you proposing to connect the DSO112A to the Arduino Mega2560 ?

Best wishes,
Tristan


On 14Mar19 12:43, f.zelders--- via Amforth-devel wrote:
> 
> Hello! 
> 
> I want to connect a DSO112A mini oscilloscope to UART1 of my  Arduino Mega 
> 2560 .
> The DSO112A uart only supports 115200 BAUD. So not at other baud rates.
> How to I initialize uart1 (UBBR1, UCSR1B and UCSR1C) in order to communicate 
> via uart1 at 115200 BAUD?
> 
> Hope someone can help.
> 
> Much appreciated!
> 
> 
> Fred Zelders
> the Netherlands
> ___
> Amforth-devel mailing list for http://amforth.sf.net/
> Amforth-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/amforth-devel
> 


___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel


[Amforth] Serial interface at 115200 BAUD on Arduino Mega 2560

2019-03-14 Thread f.zelders--- via Amforth-devel


Hello! 

I want to connect a DSO112A mini oscilloscope to UART1 of my  Arduino Mega 2560 
.
The DSO112A uart only supports 115200 BAUD. So not at other baud rates.
How to I initialize uart1 (UBBR1, UCSR1B and UCSR1C) in order to communicate 
via uart1 at 115200 BAUD?

Hope someone can help.

Much appreciated!


Fred Zelders
the Netherlands
___
Amforth-devel mailing list for http://amforth.sf.net/
Amforth-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amforth-devel