- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Everyone
I am using Intel DE10 lite M50DAF484C7G from this i am trying to communicate with microcontroller just a basic communication sending some random data but its not sending any data so in that i am using Arduino pins for spi pins can i have just a basic code for simple spi master and arduino pins i am using are correct or should i use other pins
Thanks
@de10 @fpga
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
We don't provide code support for 3rd party tool but I believe you may grab the code in Arduino website.
Regards,
Pavee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
some issues with the code
- bit_cnt == 8 (else condition) does never happen, need reg [3:0] bit_cnt;
- data_reg is only loaded once on POR, spi_master sends mosi == 0 constantly after first frame
- using always @(posedge sclk) is legal but might cause timing issues in a complexer design. Better use single system clock and modify
clock-enable scheme respectively
What's the indended SPI mode?
Regards
Frank
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
We didn't hear from you since last update. If you have a new question, feel free to open a new thread to get the support from Altera experts.
Otherwise, the community users will continue to help you on this thread.
Thank you.

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page