« first day (943 days earlier)      last day (4291 days later) » 
00:00 - 19:0019:00 - 00:00

MLM
MLM
19:44
when using SPI. The master takes data from the MISO line right? Slave out..
@MLM Yes.
master in
time for bed
/me is out
clickkk
MLM
MLM
just making sure because I have been having trouble interfacing it with a FPGA
20:08
@MLM I was just about to decide to give the xilinx software a try nd if it works I would order the papilion and megawing. But now you make me doubt
MLM
MLM
@jippie doubt your capability to go through it?
@MLM no I doubt SPI :p
MLM
MLM
@jippie could be doubting whether xilinx works on linux, it supports those boards, etc
the book says it does
anyway I was on my way out
thnx @MLM
MLM
MLM
@jippie bye
20:25
@jippie I would much rather use SPI than I2C. I use SPI everywhere and it doesn't cause me half the issues the I2C does.
MLM
MLM
Here is my vhdl spi module. I just grab the data on MISO when I put chip select low on every clock edge (pastebin.com/pi6Wipyk) - I suspect that my code is just grabbing a bunch of non data when the chip isn't outputting.
I added a transferCount so it only grabs the next 8 bits after chip select goes low but there was no change
@MLM SPI chips can put their data out on either the rising or falling edge --- check your data sheet. Typically you clock the data in on the other edge, which should be in the middle of the time when the data line is stable.
MLM
MLM
@ThePhoton The timing diagram appears to have new bit on every rising edge
@MLM Yeah, what @ThePhoton said.
@MLM Well what are the actual timing numbers for the stuff shown in that diagram?
MLM
MLM
it says 10 ns so do I need to wait that much after every edge (data setup time)
20:34
@MLM I need the other parameter numbers (8 and above).
MLM
MLM
@DavidKessner my bad here are the rest
@MLM Those datasheets are terrible, but... You need to clock on the falling edge, not the rising edge.
MLM
MLM
@DavidKessner alright, just saw "Output Valid from Clock Low" after you mentioned the missing parameters
Well, maybe not... Crap those figures are terrible.
I'm trying to find the right MOSFETs/Transistors for my application. I need to control the speed of a 100W/12V DC motor using PWM signals from an Arduino or ATTiny2313 ic.
I'm trying to figure out what to look for.
20:39
If you assume that you clock on the falling edge then #13 says you get ZERO hold time, and nothing about setup time. If you assume that you clock on the rising edge then there are no valid timing parameters to tell you what your actual setup/hold time is.
I assume some don't have the switching speed for PWM.
@William'MindWorX'Mariager Most of the switching speed is dependent on how you drive the MOSFET. Drive it correctly and most MOSFETs will switch fast enough for you.
@William'MindWorX'Mariager Just about any MOSFET with a rating of 30+ volts and 20+ continuous amps will work fine. Of course I am ignoring things like package, cost, N/P Channel...
@William'MindWorX'Mariager make sure you use protection diodes or nothing will work for long.
Right because the DC motors will throw back current when turned off?
At 10V it'll handle 18A continuously. Which would be 15A at 12V if I calculated correctly.
Which is still well above the ~8.5A the motor will draw.
@William'MindWorX'Mariager Yes. Also, if the motor is turned while off (even if the whole unit is powered off) it will generate voltage.
Yeah, makes sense.
The motor is inductive is the correct term right?
20:54
@William'MindWorX'Mariager Yes. Also, a generator.
From what I can gather, it seems like at 12V I don't need to worry too much about what I go with. MOSFETs looks preferred. I guess I'll look at a few H-Bridge designs. I'm used to the L293D H-Bridge IC, so that should be an easy transition for me.
@William'MindWorX'Mariager You want about a 2x margin. So if your motor is 10A, then you want to be able to do 20A over your normal temp range. Also, P-Channel MOSFETs have a higher Rds(on) than N-Channel and so will dissipate more heat. And your current ability goes down as heat goes up.
Thanks. I'll keep that in mind.
@William'MindWorX'Mariager That MOSFET would work. But I wouldn't design a product with it in this application.
Any particular reason?
21:01
@William'MindWorX'Mariager Not enough design margin (not enough "extra" in the MOSFET). I also don't think it would be difficult to get a better one.
It would probably work. But it might not work for 10+ years in the field without any failures.
MLM
MLM
21:36
hmm, i think this chip is a bit more complicated
need to figure out to clock in these commands for read
22:14
@MLM Weird. The terms "SPI Read" and "SPI Write" are not native SPI terminology.
@DavidKessner Looks like they kludged an SPI electrical interface onto a part designed for I2C. There's also 3 A<n> pins in addtion to the ~CS line.
@ThePhoton It's possible. I saw the I2C resemblance in that data-sheet excerpt too. Sometimes that's just a lazy technical writer that was over-zealous when cutting and pasting from the I2C section of the datasheet.
 
1 hour later…
23:46
Hi, is anyone good with opamps?
00:00 - 19:0019:00 - 00:00

« first day (943 days earlier)      last day (4291 days later) »