SPI on PIC24

General questions about Firewing...

SPI on PIC24

Postby Coccoliso » Wed Nov 26, 2014 4:42 pm

Hello,
today I received the HW with PIC24HJ128GP502 :D .
I tried to import the module SPI but only do it for the PIC18 and in forum I found some references to the PPS.
There is some good samaritan that can explain me in very few good words how to use the HW SPI with 24HJ128GP502 on Firewing board perhaps with something to remember SF routines ;) .
User avatar
Coccoliso
 
Posts: 177
Joined: Sat Sep 27, 2014 10:02 am

Re: SPI on PIC24

Postby David John Barker » Wed Nov 26, 2014 4:59 pm

Glad you got your board ok! When I started with the PIC24, I found this site to be very helpful:

http://www.engscope.com/pic24-tutorial/

More specifically for Firewing, you will find in the main library folder :

Code: Select all
Library\SDCard\SDSPI_16.bas

which should give you enough information to get started...
Last edited by David John Barker on Wed Nov 26, 2014 5:05 pm, edited 1 time in total.
User avatar
David John Barker
 
Posts: 491
Joined: Thu Nov 08, 2012 12:21 pm

Re: SPI on PIC24

Postby Coccoliso » Wed Nov 26, 2014 5:02 pm

Always fast as usual .. David.
Tanks.
User avatar
Coccoliso
 
Posts: 177
Joined: Sat Sep 27, 2014 10:02 am

Re: SPI on PIC24

Postby pinksblob » Sun Jun 26, 2016 1:20 pm

can anyone help, have looked for: Library\SDCard\SDSPI_16.bas in library to no avail,can anyone point me in the right direction, the project I am working on is spi compatible dac
pinksblob
 
Posts: 1
Joined: Sun Jun 26, 2016 12:15 pm

Re: SPI on PIC24

Postby David John Barker » Sun Jun 26, 2016 1:41 pm

C:\ProgramData\Mecanique\Firewing\Library\SDCard
User avatar
David John Barker
 
Posts: 491
Joined: Thu Nov 08, 2012 12:21 pm

Re: SPI on PIC24

Postby Coccoliso » Sun Jun 26, 2016 3:06 pm

Hi Pinksblob and David,
starting from what happens in Swordfish where are implemented the sub SetSample and SetClock I changed the module in order to have these even in Firewing. Pinksblob, since you have to implement a library for a new device I think this can be of help for you.. to me it has served to set clock and sampling in this manner.
To use it just copy the SDSPI_16.bas into MCU16 subfolder in the UserLibrary folder.
Attachments
SDSPI_16.zip
SDSPI_16.zip
(1.58 KiB) Downloaded 551 times
User avatar
Coccoliso
 
Posts: 177
Joined: Sat Sep 27, 2014 10:02 am


Return to Questions

Who is online

Users browsing this forum: No registered users and 2 guests

cron

x