From: Erich W. <ew....@na...> - 2012-06-01 19:36:52
|
Hi Jan, On 06/01/2012 08:58 PM, Jan Kromhout wrote: > It is not working. Where exactly is "it"? Can you talk to the twi device? Did you try twi.scan? It should report every device on the twi bus. Did you enable the twi subsystem? \ enable twi \ TWBR = $03, TWPS[10] = $03 ==> 28 kHz (f_cpu: 11059200) : +twi ( -- ) $00 TWCR c! $03 TWBR c! $03 TWSR c! ; This code snippet works on atmega32. Check the datasheet whether it is the same for your controller. > It seems to hang. Can continue with a hard reset! Cheers, Erich |