trzy avry w bascomie jeden master dwa slavy
dwa attiny 2313 i jeden atmega 8515
Zrobiłem w atmedze 8515
$regfile = "m8515.dat"
$crystal = 16000000
Config Lcdpin = Pin , Db4 = Porta.1 , Db5 = Porta.5 , Db6 = Porta.4 , Db7 = Porta.3 , E = Porta.2 , Rs = Porta.0
'konfiguracja sprzŕtowa I2C
Config Spi = Hard , Master = Yes
Dim Sx As Byte
dim a as byte
config spi =hard ,master=yes
a=5
do
spiinit
spiout a ,5
wait 5
Loop
W attiny 2313
$regfile = "attiny2313.dat"
$crystal = 16000000
Config Lcdpin = Pin , Db4 = Portb.1 , Db5 = Portb.0 , Db6 = Portd.6 , Db7 = Portb.4 , E = Portb.3 , Rs = Portb.2
config spi =hard , master=no
Config Lcd = 16 * 2
Dim A As Byte
do
cls
lcd "ssss "
wait 1
spiinit
spiin a ,5
lowerline
lcd "aaaaa :";a
wait 2
Loop
niestety nie działa
Połączyłem układy clock mosi i miso
niec nie robiłem z ss
Post był raportowany.
Pisanie postu pod postem.
Należy używać przycisku ZMIEŃ.
Scaliłem dwa posty. [hefid]