Drivers updated!
To everyone who has complained about my serial port driver it is now finaly updated to version 1.7! Included in version 1.7 is good behaviour by the driver and much more spin level interface functionality. The demo for the driver also speed tests the code to determine the rate of data transfer between the calling SPIN cog and the TX or RX FIFO buffers. Anyway, I've made alot of effort to make the driver not suck anymore since I will be using it on the CMUcam4 product I'm working on. That said, enjoy! http://obex.parallax.com/objects/397/ http://obex.parallax.com/objects/538/
I've also posted the KISS WAV player and KISS WAV recorder objects (http://obex.parallax.com/objects/567/) and (http://obex.parallax.com/objects/566/) which should fix any issues anyone will ever have anymore with playing or recording WAV files. Both of the objects are EXTREMELY easy to use. Thanks,
I've also posted the KISS WAV player and KISS WAV recorder objects (http://obex.parallax.com/objects/567/) and (http://obex.parallax.com/objects/566/) which should fix any issues anyone will ever have anymore with playing or recording WAV files. Both of the objects are EXTREMELY easy to use. Thanks,
Comments
Good stuff.
When I see your name at the top of a driver, I know that it is of high quality. Having peeked at how you do things (in pasm) I know that you are a fan of simple, yet powerful solutions.
(I must say that the majority of drivers in the OBEX are of medium or low quality)
/Johannes
@groggory
My serial driver offers 256 bytes RX and TX FIFO buffers over 16 byte FIFO buffers in full duplex serial. This means that it is easier to handle serial data at a much higher rate without having to poll the serial driver for bytes so often to keep it from overflowing. The serial driver additionally, does not have jitter in the TX output unlike the full duplex serial which has a very jittery serial output at higher baud rates. The serial driver can also handle a baud rate of 250,000 BPS at 96 MHz. The serial driver supports bulk input and output routines that make sending and receiving lots of bytes much faster. And... finally, my serial driver can be cleanly stopped and started without corrupting transmitted serial data. If you stop the full duplex serial driver while it is transmitting bytes it won't finish transmitting and then stop. It will just stop and corrupt whatever it was sending.
Thanks,
I'm going to be using these!
Thanks,
No reason it couldn't be...
(Ken, are you paying attention?)
That'd be great.
Maybe we'd get as many objects as the Apple App store and it will make propeller authors/coders/artists millionaires!
I'm building some code I'm calling "KyeFTP" which is a file transfer protocol to talk to the SD card via the serial port and enable file transfers and dir listings etc from the PC. Run a simple program on the PC side and drag and drop files onto the propeller. Maybe even integrate that into an IDE? Of course, I am *only* using Kye objects - the SD card driver and the serial driver.
So - looking at the serial driver, I see
and that calls a routine
It is working at 11200 baud, but that line of code above seems to have a value hardwired for a 6Mhz clock. I'm using a 5Mhz clock - would it matter? Or would it be better to declare a constant at the top of the program of 80_000_000 and then reference all timing off that constant and so you would only need to change one constant if you change the xtal frequency?