IN THE KNOW
Go to bottomPage: 1
TOPIC:
#581
example SPI functions with ez80 2 Years, 4 Months ago Karma: 0
Hi,

I don't find examples with SPI for ez80 !

Did somebody have find it ?

In assembler will be better for me but all example is ok ....

Thank you,

Best regards,

Guy
Guy DAU (User)
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#602
Re:example SPI functions with ez80 2 Years, 3 Months ago Karma: 4
Guy
I have not been able an app note addressing this on the eZ80 as well. We do have a lot of examples of SPI with the Z8Encore! line. There is not that much difference, a few registers and pin differences but the processes are very similar.
Alex K has been promoting his HACK-RTOS on the forum. I noticed the SPI driver in assembly in his sources folder, perhaps that will help.
Tom Ormiston (Admin)
Admin
Posts: 168
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#946
Re:example SPI functions with ez80 1 Year, 3 Months ago Karma: 0
Hi, I'm looking for some sample SPI slave code and I notice that the Hack-RTOS is no longer available (website down). Does anyone have any sample code they'd be willing to share? Google turns up nothing and I just can't get it to work.
Alan Smewing (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#948
Re:example SPI functions with ez80 1 Year, 3 Months ago Karma: 1
Hi Alan,

Please see attached sample code for the eZ80F91 SPI Slave. This is a simple demonstration of SPI Slave function for the F91. This is tested with the SPI Master application note (AN0273) for the F1680 device. The setup I had here is that the F1680 acts as the SPI Master device (running AN0273) and the F91 acts as the SPI Slave device. (I changed the baudrate of AN0273 to 500 bits/s).

In summary, the implementation for the F91 SPI slave is very similar to how you would do for an F91 SPI master implementation. The only striking difference is that, in implementing SPI as a master, you need to control the SS pin similar to how you would do for a GPIO. While in implementing SPI as a slave, you need to enable the alternate function for SS pin.

Please let me know if you need more info.

Best Regards,
File Attachment:
File Name: SPI.zip
File Size: 46703
angelica mae (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
שמלות בת מצווה結婚 電報Очистка выгребных ям, биопорошок для выгребных ямБальные танцы Киев, сальса , костюмы для сальсыПеревод документов, бюро переводов в Киеве , услуги перевода