Author Topic: PDIP u with 2 SPI board.  (Read 2727 times)

0 Members and 1 Guest are viewing this topic.

Offline vaualbusTopic starter

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: it
PDIP u with 2 SPI board.
« on: January 10, 2015, 05:35:06 pm »
So I'm design somethingh modular so I have a couple of boards and I think about have a spi bus to command each board.
I want a pic on each board. Send command via the SPI and than on each board a micro to perform the board control.
So at the end I need to found a u that have two SPI port in PDIP format with as less pin as possible.
For me is the same PIC or at mega.
Any one have some suggestion?
 

Offline bobcat

  • Regular Contributor
  • *
  • Posts: 94
  • Country: us
Re: PDIP u with 2 SPI board.
« Reply #1 on: January 10, 2015, 05:45:24 pm »
Why not use 4 wire SPI and use slave selects for each board. Just use 1 spi on master.
 

Offline vaualbusTopic starter

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: it
Re: PDIP u with 2 SPI board.
« Reply #2 on: January 10, 2015, 05:52:06 pm »
I can also do that but I need for, example in one board, to use some dacs and monitor some other voltages so I prefer have MCU to control each board.
I basicly redesign somethingh that I have arleady made using your aproach.
« Last Edit: January 10, 2015, 05:55:36 pm by vaualbus »
 

Offline Brutte

  • Frequent Contributor
  • **
  • Posts: 614
Re: PDIP u with 2 SPI board.
« Reply #3 on: January 10, 2015, 05:54:01 pm »
(..)So at the end I need to found a u that have two SPI port in PDIP format with as less pin as possible.(..)Any one have some suggestion?
In such case ATMega1284 with 32 pins removed is a perfect choice.
That leaves 8 pins: two for power and 6 for two SPI units..
If you can cope with unidirectional SPI and sharing clocks with one IO, I think you could go a little bit lower..

 

Offline vaualbusTopic starter

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: it
Re: PDIP u with 2 SPI board.
« Reply #4 on: January 10, 2015, 06:01:56 pm »
Thanks I was already looking at atmega but cannot find that part. Thanks.
 

Offline vaualbusTopic starter

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: it
Re: PDIP u with 2 SPI board.
« Reply #5 on: January 10, 2015, 07:18:04 pm »
Anybody know some PIC part?
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: PDIP u with 2 SPI board.
« Reply #6 on: January 10, 2015, 07:47:08 pm »
Quote
I need to found a u that have two SPI port

What's a "u" and why do you need two spi ports?
================================
https://dannyelectronics.wordpress.com/
 

Offline vaualbusTopic starter

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: it
Re: PDIP u with 2 SPI board.
« Reply #7 on: January 10, 2015, 08:07:18 pm »
microcontroller.
I will have the micro wired to the spi port than it will controll a dac and do other thinghs
« Last Edit: January 10, 2015, 08:08:51 pm by vaualbus »
 

Offline Christopher

  • Frequent Contributor
  • **
  • Posts: 429
  • Country: gb
Re: PDIP u with 2 SPI board.
« Reply #8 on: January 10, 2015, 08:35:58 pm »
Using http://www.microchip.com/maps/microcontroller.aspx

I came up with the following:




But i'm sure the same thing could be done with software spi?
 

Offline vaualbusTopic starter

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: it
Re: PDIP u with 2 SPI board.
« Reply #9 on: January 10, 2015, 08:43:34 pm »
thanks
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 13677
  • Country: gb
    • Mike's Electric Stuff
Re: PDIP u with 2 SPI board.
« Reply #10 on: January 10, 2015, 09:06:43 pm »
PIC24FJ64GA002, PIC32MX150F128B - both 28 PDIP
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline vaualbusTopic starter

  • Frequent Contributor
  • **
  • Posts: 349
  • Country: it
Re: PDIP u with 2 SPI board.
« Reply #11 on: January 10, 2015, 09:47:44 pm »
Thanks  :)
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf