PDA

View Full Version : Need someone to test my EmicTTS module driver please!



Robofreak
05-19-2010, 05:55 AM
Hello all,

I've just finished building an Emic driver object for the Propeller, and I'd like some volunteers to possibly try it out on your own Emic, and give some feedback. You know, like ease of use, program size, etc. I've tested it on my setup, but I want to make sure it'll work cross-platform, too.

I have the basic version on the obex here: http://obex.parallax.com/objects/605/
I still have some testing to do before I upload the Extended version of the driver, but this one covers everything necessary :)

Thanks for your help!
- Robofreak

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Austin Bowen,


"One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb" - A quote from someone that I saw on Addall.com

"Not only do I see the glass as half empty, I wonder if anyone poisoned the glass with arsenic" - My dad, inside joke haha

Brian Riley
05-19-2010, 06:14 AM
Please download your item from OBEX and examine it carefully, there appears to be a line or some lines missing near the beginning. Though, strangely, it compiles cleanly. Where is the test /demo program mentioned in the OBEX entry?


cheers ... BBR

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
cheers ... brian riley, n1bq, underhill center, vermont
The Shoppe at Wulfden
www.wulfden.org/TheShoppe/ (http://www.wulfden.org/TheShoppe/)
www.wulfden.org/TheShoppe/prop/ (http://www.wulfden.org/TheShoppe/prop/) - Propeller Products
www.wulfden.org/TheShoppe/k107/ (http://www.wulfden.org/TheShoppe/k107/) - Serial LCD Display Gear

Post Edited (Brian Riley) : 5/18/2010 10:23:32 PM GMT

Robofreak
05-19-2010, 06:23 AM
Hm, I didn't notice that in the file before uploading it. Although I did make it with the propeller tool for linux, and the original program had some windows characters that linux didn't really like haha I wonder if that might be it. I'll take a look, thanks :)

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Austin Bowen,


"One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb" - A quote from someone that I saw on Addall.com

"Not only do I see the glass as half empty, I wonder if anyone poisoned the glass with arsenic" - My dad, inside joke haha

Robofreak
05-19-2010, 07:26 AM
No more unicode, all plain text now.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Austin Bowen,


"One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb" - A quote from someone that I saw on Addall.com

"Not only do I see the glass as half empty, I wonder if anyone poisoned the glass with arsenic" - My dad, inside joke haha

Brian Riley
05-19-2010, 07:58 AM
OK, NOW, MUCH BETTER ... but, you say ... "20 Mhz" but you coded 80 MHz (5 x 16)




{{

File: EmicTTSDriverDemo.spin

This program assumes that both switches on the module are
in the OFF position, for hexadecimal communication (faster)
and no received echo on the Emic's TX pin. The system clock
must be => 20MHz (If my calculations are correct.)

{ stuff deleted }

}}

OBJ:
EMIC : "EmicDriver"

CON
_CLKMODE = XTAL1 + PLL16X
_XINFREQ = 5_000_000





HUH?????

cheers ... BBR

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
cheers ... brian riley, n1bq, underhill center, vermont
The Shoppe at Wulfden
www.wulfden.org/TheShoppe/ (http://www.wulfden.org/TheShoppe/)
www.wulfden.org/TheShoppe/prop/ (http://www.wulfden.org/TheShoppe/prop/) - Propeller Products
www.wulfden.org/TheShoppe/k107/ (http://www.wulfden.org/TheShoppe/k107/) - Serial LCD Display Gear

Robofreak
05-19-2010, 08:11 AM
I know. I'm assuming it can work down to 20MHz because I know 80MHz can do 9600 baud confidently (which is roughly 1 8333rd the clock speed), so I just multiplied 2400 by 8333 to get 19.99MHz, so I put =>20MHz. but most people have the 5MHz crystal, and that's what I tested it at was 80MHz. It never crosses my mind to try something at a slower speed I guess haha

All the timing is calibrated off of the clock's speed, so it *should* work at a slower speed than the usual 80MHz. I'ma try it now that you brought it up haha

- Robofreak

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Austin Bowen,


"One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb" - A quote from someone that I saw on Addall.com

"Not only do I see the glass as half empty, I wonder if anyone poisoned the glass with arsenic" - My dad, inside joke haha

Robofreak
05-19-2010, 08:12 AM
Yup it works at 20MHz.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Austin Bowen,


"One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb" - A quote from someone that I saw on Addall.com

"Not only do I see the glass as half empty, I wonder if anyone poisoned the glass with arsenic" - My dad, inside joke haha

Robofreak
05-19-2010, 08:15 AM
Interesting.. it works down to 10MHz (5MHz external PLLx'd by 2), but not at the internal clock's 12MHz. I guess it's just the variability of the internal clock. I'm gonna just leave the text at 20MHz, to be safe...

Thanks!
- Austin

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Austin Bowen,


"One must watch out for mechanics. They start out with a sewing machine, and end up with the atomic bomb" - A quote from someone that I saw on Addall.com

"Not only do I see the glass as half empty, I wonder if anyone poisoned the glass with arsenic" - My dad, inside joke haha