uALFat Baud Rate
Kit Morton
Posts: 39
Hi all,
In my latest project I needed FAT32 support so I got a uALFat chip, and I am trying to interface it to the propeller.
I am using the serial interface with the FullDuplexSerial object. And I can talk to the the chip but I want to use a baud rate over 9600. But when I try to change the baud rate of the chip, then change the serial objects baud rate, I can't communicate with the chip any more .
Has anyone tried to change of this chip, and if so what did you have to do to make it work?
Or should I just bag the Serial and go for SPI?
Thanks
-Kit
In my latest project I needed FAT32 support so I got a uALFat chip, and I am trying to interface it to the propeller.
I am using the serial interface with the FullDuplexSerial object. And I can talk to the the chip but I want to use a baud rate over 9600. But when I try to change the baud rate of the chip, then change the serial objects baud rate, I can't communicate with the chip any more .
Has anyone tried to change of this chip, and if so what did you have to do to make it work?
Or should I just bag the Serial and go for SPI?
Thanks
-Kit
Comments
For the I2C you can get up to the 400KHz spec without trouble, and since you already have to dedicate pins for SDA and SCL, the only penalty is the handshaking line.· I only use one handshaking line to see if the uALFAT still has data.· The only precaution I can give is that you'll need a START, COMMAND, DATA, STOP for each character, so it's twice as chatty as it needs to be.· Even still,·you can move 4K images in 400mS.
Oh yea, the uALFAT also has a 512 byte buffer, so you'll get 512 bytes then the uALFAT will go silent for·5 mS while it fetches more data.· I was streaming audio and needed a buffer to get over the dead period.
·
I tried to do this, but I couldn't figure out how to make the I2C object work in the rite way.
Could you post some code snippets for how you implemented it.
Thank you
-Kit
There is no error checking if the uALFAT doesn't respond because in my application it wouldn't matter, the machine would be broken, so you may want to add some sort of abort to the handshaking loop.· The main issue with the Hydra driver is the way waitcnt is used for bit timing.· It·gets a little flakey when you·reach full speed·and that's why I·wanted to rewrite it.· You'll want to make sure that each transfer starts with reloading your timer, or else waitcnt will roll over and you'll be stuck waiting·50 seconds for the next bit to shift out.
·