clkmode + rs232 issue
I have a prop attached to a max3232 in the same fashion as the prop stick. I've done this a number of times w/o issue. Today I assembled a board and while I can program the prop via the RS-232 interface, I am having issues tx/rx data from it.
I have narrowed down the issue to the clock frequency of the prop. If I run at 5 MHz * 16 (_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000) I only see the first few characters and some gibberish. If I slow the stamp down to 5*8 everything works fine.
This is on a tested pcb design. There aren't any visible problems. Components are (in theory) identical to the other 2 boards that have been built on the same design and are working w/o issue. I'm a bit stumped. Of course I chose to solder the prop onto the board instead of using a socket so I can't easily swap it.
I actually can run these at 5*8, I don't need to run at 80MHz. But I would like to understand the issue so I can avoid (or deal with) the issue in the future.
Any thoughts?
I have narrowed down the issue to the clock frequency of the prop. If I run at 5 MHz * 16 (_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000) I only see the first few characters and some gibberish. If I slow the stamp down to 5*8 everything works fine.
This is on a tested pcb design. There aren't any visible problems. Components are (in theory) identical to the other 2 boards that have been built on the same design and are working w/o issue. I'm a bit stumped. Of course I chose to solder the prop onto the board instead of using a socket so I can't easily swap it.

I actually can run these at 5*8, I don't need to run at 80MHz. But I would like to understand the issue so I can avoid (or deal with) the issue in the future.
Any thoughts?
Comments
I had a similar issue a few months ago. I issued the serial "stop" command before the data had a chance to be transmitted. You must either not use the stop command, or make sure the serial tx buffer is empty before using it.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Brian Meade
"They who dream by day are cognizant of many things which escape those who dream only by night" - Edgar Poe
When I run this, I get output like this in hyperterm:
(although the ~@% characters are random and may be any printable or non-printable chars)
If I change _clkmode to "xtal1 + pll8x" it runs fine.
I left out one detail last night, previously I had been running the boards off NiMH batts. I don't have those anymore and I just grabbed a 12v 600ma wall wart power supply from the closet and used that. For reasons unknown to me, I have this serial rx/tx problem with the AC/DC converter. I grabbed a 10v AA battery pack and powered the board with that and everything works fine. I'm using the LM1086-3.3 reg with a couple of 10uF caps (one in, one out).
Anyways, I dug out another 12v power supply and using it, everything works.
Sorry for the confusion.
-Rick
Understood. I'm also powering an 8.4v reg for another device. 12v was as close as I could get from the pile of power supplies I have in the closet. Both regulators are heat sinked and the 1086 is just warm to the touch. When deployed this will run off batteries, this is just for testing and programming on the bench.
-Rick