atmega128 + CF

pyxys1 pyxys1 at westel900.net
Mon Sep 22 13:52:45 CEST 2003


Szia HWSW Famulus,

Monday, September 15, 2003, 12:58:05 PM, you wrote:

>> HF> I need ATmega128 hw!!! SPI ...
>>
>> HF> hw PINs on ATmega128:
>>
>> HF> SCK=Portb.1 (in help SCK=Portb.7)
>> HF> MOSI=Portb.2 (in help MOSI=Portb.5)
>> HF> MISO=Portb.3 (in help MISO=Portb.6)
>>
>> HF> How to setup it?
>>
>> HF> KJ
>>
>>
>> Szia Famulus!
>>
>> use "config spi"
>>
>> Syntax for software SPI
>>
>> CONFIG SPI = SOFT, DIN = PIN, DOUT = PIN , SS = PIN|NONE, CLOCK = PIN

HF> This is OK!

>> Syntax for hardware SPI
>>
>> CONFIG SPI = HARD, DATA ORDER = LSB|MSB , MASTER = YES|NO , POLARITY =
HF> HIGH|LOW , PHASE = 0|1, >CLOCKRATE = 4|16|64|128 , NOSS=1|0

HF> But, this is NOT OK on ATmega128 :-(

az elsõ config vonatkozik a soft. spi-re, a második meg szerintem csak
akkor kell, ha hardware spi-t használsz. vagyis, ha az "eredeti" spi
lábakat használod.



-- 

Best regards,
 pyxys1                            mailto:pyxys1 at westel900.net



More information about the Elektro mailing list