Home     Company     Products     Services     Community     Download     Store
    [Home arrow Community arrow Forum ]
Community
Community
Login Form





Lost Password?
No account yet? Register
FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
Flex and SPI (1 viewing) (1) Guests
Go to bottom Post Reply Favoured: 0
TOPIC: Flex and SPI
#157
desmomito (User)
Fresh Boarder
Posts: 19
graphgraph
User Offline Click here to see the profile of this user
Flex and SPI 3 Months, 2 Weeks ago Karma: 0  
Hi,
I've seen the possibility to connect the Flex, using the PIC18, to the USB in order to log data, send commands and so on. I've found that really ineresting and that could be really interesting for my application. For this reasons I have two questions about that :

1) In order to program the PIC18 I've to set the jumpers correctly has written in Flex docs ? Nothing more ?

2) I don't have a demo board how can I set up the SPI connections between the PIC18 and dsPIC ? Which pins I have to use ? Do I need any resitors or circuit adapter between the two MCU ?

Thanks a lot,
Pasquale.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#158
paolo.gai (Admin)
Admin
Posts: 77
graph
User Offline Click here to see the profile of this user
Re:Flex and SPI 3 Months, 2 Weeks ago Karma: 3  
Hi Pasquale!

Yes... use the jumper settings as described in the FLEX docs...

For the SPI connection, please use a Demo Daughter Board, or connect the pins directly using the instructions found at http://www.evidence.eu.com/content/view/250/266/

(And once you have done that, could you please update the Wiki with any missing information you found?)

bye

PJ
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#159
desmomito (User)
Fresh Boarder
Posts: 19
graphgraph
User Offline Click here to see the profile of this user
Re:Flex and SPI 3 Months, 1 Week ago Karma: 0  
Thank you,
I did not understand the pictures until I've got inside the SPI peripherical peripheral.

- From the pictures it seems that I just need to take care about the PIC18 (3.3V - JP9) power supply and wire the dsPIC and PIC18. I don't need any resistor or something, right?

- I've seen the application for Windows that write data using USB to the PIC18. Could please tell me how did you write that application ? Which driver did you use ?

- There is also something wrong in the picture where it's shown the connection for the SPI. As I've seen from the schemes of the Flex Full there are not PIC18's pins on the CON6 (64 pins). Is it right ?

As soon as I do my application I will be glad to write the missing things to the wiki.

Thank you,
Pasquale.
 
Report to moderator   Logged Logged  
 
Last Edit: 2008/07/01 11:54 By desmomito.
  The administrator has disabled public write access.
#160
paolo.gai (Admin)
Admin
Posts: 77
graph
User Offline Click here to see the profile of this user
Re:Flex and SPI 3 Months, 1 Week ago Karma: 3  
Hi Pasquale...

- no resistors in that case...
- we wil release the application soon, hopefully before the Microchip Masters
- the CON6 contains some pins which come from the PIC18... which are basically _link_ed to the programming part of the dsPIC and to the spi...

Ciao,

PJ
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#181
daniele.caprini (User)
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Mantova - Pavia Birthdate: 1984-09-14
Re:Flex and SPI 2 Weeks, 4 Days ago Karma: 0  
Hi Guys, I have a question for anybody who has worked with spi on flex.
I have connected the con6's pins of the flex with my spi device and I have read the protocol documentation of dspic33, the reference manual cap 18, and also my spi device protocol documentation.
Now, has someone some code about this implementation to look at?

You'd help me a lot.
Thank you in advance

Daniele
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#182
paolo.gai (Admin)
Admin
Posts: 77
graph
User Offline Click here to see the profile of this user
Re:Flex and SPI 2 Weeks, 4 Days ago Karma: 3  
Yes... there are a few functions about SPI on Flex in the ERIKA Enterprise source code. Just look into:

ee/pkg/board/ee_flex/inc/ee_board.h
and
ee/pkg/board/ee_flex/inc/ee_board.c

Ciao!

PJ
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
Evidence S.r.l. - PIVA: 01638690501
Viale Rinaldo Piaggio 32 - Pontedera - Pisa - Italy
Privacy Policy