Valencia, Spain
Offline
Edison Member
Karma: 65
Posts: 2271
|
 |
« Reply #30 on: October 13, 2012, 09:01:26 am » |
$1.36 in the quantities he is talking about if this makes it to production. Atmel prices their product pretty darn reasonable if you ask me.
Yep. The ATmega is probably cheaper then the MAX7219. I bought a dozen ATtiny84s from Farnell las week for 94 cents each (Eurocents). They want 10 Euros for a single MAX7219.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 37
:D
|
 |
« Reply #31 on: October 13, 2012, 10:10:54 am » |
Yep you really cant compare the two in terms of price. If/when I do finish the project, ill be sure to post the code so everyone else can take advantage of the cheaper driver.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 114
Posts: 2205
|
 |
« Reply #32 on: October 13, 2012, 11:09:47 am » |
The whole concept of buying max72xx now makes zero sense to me.
Those guys go out of the market for a (very good) reason.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 37
:D
|
 |
« Reply #33 on: October 13, 2012, 11:23:06 am » |
The whole concept of buying max72xx now makes zero sense to me.
Those guys go out of the market for a (very good) reason.
Well there is an advantage to it, especially in very large quantities, and thats the fact that you don't have to program an extra MCU. But yes, cost (and possibly even feature wise) the atmega is the clear way to go.
|
|
|
|
|
Logged
|
|
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 37
:D
|
 |
« Reply #35 on: October 13, 2012, 12:19:43 pm » |
Hmm...good point, though I don't know how reliable they would be in orders of 100. Then again, they might be great. It's too bad they didn't make one of the MAX72xx's in a smaller package...
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16556
Available for Design & Build services
|
 |
« Reply #36 on: October 13, 2012, 12:24:03 pm » |
It is available on 24-pin wide SO surface mount package - its just a little thicker than you wanted.
Or as bare die if you wanted it really thin.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 37
:D
|
 |
« Reply #37 on: October 13, 2012, 12:26:05 pm » |
It is available on 24-pin wide SO surface mount package - its just a little thicker than you wanted.
Or as bare die if you wanted it really thin.
A bare die would be great, though how would I go about soldering that (or having it soldered for me) in a cost effective and simple way? Edit: I just did some googling, and it I think the bare die would be overkill for this little production run.
|
|
|
|
« Last Edit: October 13, 2012, 12:30:04 pm by Nadav Ami »
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 114
Posts: 2205
|
 |
« Reply #38 on: October 13, 2012, 12:36:36 pm » |
It's too bad they didn't make one of the MAX72xx's in a smaller package... I wonder why that's the case, ...
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16556
Available for Design & Build services
|
 |
« Reply #39 on: October 13, 2012, 12:39:52 pm » |
Another advantage might be interface speed. MAX7219/7221 can receive data at 10 MHz. I use mine at default SPI settings which I think is 4 MHz. If your main processor was really tied up and you wanted to send stuff out at 8 MHz to get it out of the way quick. The master can do that, I think testing has has shown a 168/328 cannot receive that fast tho due to the slave having to sample (the CS pin?) or something along those lines.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 37
:D
|
 |
« Reply #40 on: October 13, 2012, 12:43:07 pm » |
Another advantage might be interface speed. MAX7219/7221 can receive data at 10 MHz. I use mine at default SPI settings which I think is 4 MHz. If your main processor was really tied up and you wanted to send stuff out at 8 MHz to get it out of the way quick. The master can do that, I think testing has has shown a 168/328 cannot receive that fast tho due to the slave having to sample (the CS pin?) or something along those lines.
Yeah, ideally that would be the way to go. But size and cost are really the most limiting factor.
|
|
|
|
|
Logged
|
|
|
|
|
Offline
Edison Member
Karma: 114
Posts: 2205
|
 |
« Reply #41 on: October 13, 2012, 12:49:42 pm » |
a 168/328 cannot receive that fast tho due to the slave having to sample (the CS pin?) True, when implemented poorly.
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16556
Available for Design & Build services
|
 |
« Reply #42 on: October 13, 2012, 12:55:57 pm » |
True, when implemented poorly." False - max speed is a hardware function, not something users have any implementation control over: "In SPI Slave mode, the control logic will sample the incoming signal of the SCK pin. To ensure correct sampling of the clock signal, the minimum low and high periods should be: Low periods: Longer than 2 CPU clock cycles. High periods: Longer than 2 CPU clock cycles."
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Newbie
Karma: 0
Posts: 37
:D
|
 |
« Reply #43 on: October 13, 2012, 01:00:13 pm » |
Still though, shouldn't 115200 baud serial be fast enough for this application?
|
|
|
|
|
Logged
|
|
|
|
|
Global Moderator
Boston area, metrowest
Offline
Brattain Member
Karma: 249
Posts: 16556
Available for Design & Build services
|
 |
« Reply #44 on: October 13, 2012, 01:12:42 pm » |
Yes. The above was only discussing reasons why the ATmega is not always the clear way to go. In this case, your need for overall thinness, similar cost, and no need for ultimate in interface speed indicates the Atmega is the way to go, as long as your time to develop the max7219 function is not factored in.
|
|
|
|
|
Logged
|
|
|
|
|
|