Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Extended SPI

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
Darkcoder

Bascom Member



Joined: 06 Dec 2005
Posts: 3

greece.gif
PostPosted: Wed Oct 31, 2018 10:28 am    Post subject: Extended SPI Reply with quote

Hello everyone!

Does anyone manage to make the SPI extended mode work under 2.0.8.1 version?
I'm trying to config the SPI but it doesn't recognize it.

I'm using hard SPI and avr328 controller

Thank you

(BASCOM-AVR version : 2.0.8.1 , Latest : 2.0.8.1 )
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 4650
Location: Holland

blank.gif
PostPosted: Wed Oct 31, 2018 10:38 am    Post subject: Reply with quote

i can not find any info in the data sheet about extended mode. so it is not really clear what you refer to.
exactly where is this mode documented?

_________________
Mark
Back to top
View user's profile Visit poster's website
Darkcoder

Bascom Member



Joined: 06 Dec 2005
Posts: 3

greece.gif
PostPosted: Wed Oct 31, 2018 10:42 am    Post subject: Reply with quote

Thank you for your quick awnser

here you mention it
https://www.mcselec.com/index.php//index2.php?option=com_forum&Itemid=59&page=viewtopic&t=14024&highlight=&sid=b17f9e1a6d2db5e7f925b7d81b265c7d


- CONFIG SPI has a new option : EXTENDED=1 to have extended data size reading/writing.

and here

https://avrhelp.mcselec.com/index.html?config_spi.htm

EXTENDED


An optional parameter to extend the maximum data read/write size.

A value of 0 is default and will cause the SPIIN, SPIIOUT, SPIMOVE routines to handle a maximum data size of 255 bytes.


A value of 1 will extended the data size from bytes to words which means you can move data of 65535 bytes.
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 4650
Location: Holland

blank.gif
PostPosted: Wed Oct 31, 2018 10:51 am    Post subject: Reply with quote

ok, so this is not a real SPI option but a bascom option. it should work while compiling. but the dat files seems to be missing this option. i will have it checked.
_________________
Mark
Back to top
View user's profile Visit poster's website
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 4650
Location: Holland

blank.gif
PostPosted: Wed Oct 31, 2018 10:59 am    Post subject: Reply with quote

i had another look. the dat file is ok. but this option seems to be implemented for soft spi only. it could be the help file is wrong, or that the config option is missing for hardware. i will sort it out and let you know.
_________________
Mark
Back to top
View user's profile Visit poster's website
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 4650
Location: Holland

blank.gif
PostPosted: Wed Oct 31, 2018 11:07 am    Post subject: Reply with quote

this is a bug : both software and HW SPI (first channel) should support this mode. but the code for supporting this was put at the wrong place with the effect that only SOFT SPI (and xmega) support it. I have changed it for 2082.
_________________
Mark
Back to top
View user's profile Visit poster's website
Darkcoder

Bascom Member



Joined: 06 Dec 2005
Posts: 3

greece.gif
PostPosted: Wed Oct 31, 2018 11:30 am    Post subject: Reply with quote

Thank you very much! So if i want to use extended mode at the moment it works only at softspi?

Do you have any plan about the release of next update?
Back to top
View user's profile
albertsm

Administrator



Joined: 09 Apr 2004
Posts: 4650
Location: Holland

blank.gif
PostPosted: Wed Oct 31, 2018 11:37 am    Post subject: Reply with quote

you need to use either software spi or xmega in the current release.
we do not give release dates.

_________________
Mark
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum