Re: [Amforth] I2C

2019-06-04 Thread Matthias Trute
Am Dienstag, den 04.06.2019, 18:39 + schrieb Jan Kromhout:
> Hello,
> 
> Ho do I set the parameters for the speed if the I2C to 400
> kHz?  Thanks for any help.
> 
> : init_i2c ( --- )
> \ init at 100 kHz
>   i2c.prescaler/1 #72 i2c.init
> ;
> 

Did you check http://amforth.sourceforge.net/TG/recipes/TWI.html#twi ?
(Javascript required)

Matthias

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


[Amforth] I2C

2019-06-04 Thread Jan Kromhout
Hello,

Ho do I set the parameters for the speed if the I2C to 400 kHz?  Thanks for any 
help.

: init_i2c ( --- )
\ init at 100 kHz
  i2c.prescaler/1 #72 i2c.init
;

Thanks for any help.
Cheers,

Jan

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


Re: [Amforth] SPI interface on the arduino

2019-06-04 Thread Peter C. Hauser
amforth/avr8/lib/hardware/spi.frt

Peter


> On 4 Jun 2019, at 17:29, Jan Kromhout via Amforth-devel 
>  wrote:
> 
> Hello,
> 
> I need to read and write to the SPI interface (bus) on the arduino. (pin 
> 10,11,12,13)
> Wich words are the best to use?
> 
> Thanks for any help.
> Cheers,
> 
> Jan
> 
> ___
> 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] SPI interface on the arduino

2019-06-04 Thread Matthias Trute
Hi,

> I need to read and write to the SPI interface (bus) on the arduino.
> (pin 10,11,12,13)
> Wich words are the best to use?

The ones desccribed in the SPI recipe are the best current
practice.

http://amforth.sourceforge.net/TG/recipes/SPI.html

The arduino hello world recipe shall give some
hints and further links for working with this platform

http://amforth.sourceforge.net/TG/recipes/Arduino-HelloWorld.html


HTH+BR
Matthias

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


[Amforth] SPI interface on the arduino

2019-06-04 Thread Jan Kromhout via Amforth-devel
Hello,

I need to read and write to the SPI interface (bus) on the arduino. (pin 
10,11,12,13)
Wich words are the best to use?

Thanks for any help.
Cheers,

Jan

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