Doh! CON Section...
John R.
Posts: 1,376
In the category of I know better, but...
If you leave these two lines of code out of the CON section, objects that perform serial communication don't work so well...
Usually I'm starting with existing code, and going from there. In this case I was starting from scratch...
If you at least got a grin out of this at my expense, I've had a good day!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John R.
Click here to see my Nomad Build Log
If you leave these two lines of code out of the CON section, objects that perform serial communication don't work so well...
CON _clkmode = xtal1 + pll16x _xinfreq = 5_000_000
Usually I'm starting with existing code, and going from there. In this case I was starting from scratch...
If you at least got a grin out of this at my expense, I've had a good day!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
John R.
Click here to see my Nomad Build Log
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Timothy D. Swieter, E.I.
www.brilldea.com - Prop Blade, LED Painter, RGB LEDs, 3.0" LCD Composite video display, eProto for SunSPOT
www.tdswieter.com
In fact, I grabbed a piece of code for an experiment today that didn't have serial communications in it, but I needed it and added it. The serial didn't work. The code started like this...
It was Hydra code, I don't have a Hydra.
When I saw the garbled output on my serial terminal, I changed it to
then it worked just fine.
-Steve
Ross.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Catalina - a FREE C compiler for the Propeller - see Catalina
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Style and grace : Nil point
Propeller Manual 1.1 Page 68
Jim
RTFM, again.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Style and grace : Nil point
I read in James Phelan's review of the Stingray in Robot Magazine that he was trying to copy and paste code from pdf and sometimes (depending on the zoom) that the "underscore" in _clkmode didn't acurately transfer. It has to be there, of course, and it gave him fits until he figured it out!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Whit+
"We keep moving forward, opening new doors, and doing new things, because we're curious and curiosity keeps leading us down new paths." - Walt Disney
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon McPhalen
Hollywood, CA
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Style and grace : Nil point
That implies to me that your monitor does not have 1440x900 pixels, which certainly defeats the point.
Not intending to be rude, what is the point of overdriving the maximum resolution?
I've asked Jeff Martin to look at this thread and to begin including a Spin template with our Prop IDE installation.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ken Gracey
Parallax Inc.
Follow me at http://twitter.com/ParallaxKen for some insider news.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon McPhalen
Hollywood, CA
for both platforms and still get an 80 MHz clock. The clkset object figures out which crystal you're using and makes the appropriate adjustments to the PLL mode and to clkfreq. It has a very small footprint.
-Phil
Post Edited (Phil Pilgrim (PhiPi)) : 3/8/2010 12:40:18 AM GMT
I couldn't find the clkset.spin in the OBEX, but I did find it here:
http://forums.parallax.com/showthread.php?p=809968
Jim
Not intending to be rude, what is the point of overdriving the maximum resolution?
They are advertized as 1440x900 native and are recognized as 1440x900, by the Vid card, one is on DVI and the other on analog, so I assume that they are so. I am not a fan of wide screens on computers ( I prefered my old 1280x1024 ) but this pair were rebuilt "write offs" and so came with the " cheap, in-expencive and not costing much" catagory. My favorite !!!
I'll have to drag out the old Sanyo 1024x768 to see if the same thing was hapening on that one as well.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Style and grace : Nil point
I need to take a closer look at the code to see if it could be tweaked to smaller frequency differences..
Jim