Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Please tell me about SPI

Altera_Forum
Contributeur émérite II
1 339 Visites

Hi I'm Suyo. 

 

I want to use SPI of 16bit. 

It writes 8Bit in 11-11 of SPI Core with Avalon interface(NiosII document). 

Don't 16 bits correspond? 

I think that only 8Bit supports because the type of the variable, too, is the char type of alt_u8. 

SOPC Builder can set with 16 bits. 

Because it is, it thinks that 16 bits can support. 

How when wanting to write software at 16 bits, should it be? 

I rewrote the driver of SPI. 

It rewrote alt_u8 to alt_u16. 

The error occurs when doing a rewritten header file include in the program. 

There is a change point of the program contents hardly. 

Why will the error occur? 

 

Also, it confirmed whether or not to make a sample program actually and whether or not data was written. 

Data isn't together written by 8 bits, 16 bits. 

If using IOWR_ALTERA_AVALON_SPI_TXDATA(base, data), in case of 8 bits, the data should be written. 

I confirmed Signal TapII but data isn't written. 

Also,I attempted to access using the index but data wasn't written. 

 

Is there a person who rewrote the driver of SPI to 16 bits? 

Tell to me. 

 

Please help me. 

 

Best Regards, 

Suyo
0 Compliments
0 Réponses
Répondre