View previous topic :: View next topic |
Author |
Message |
harrydejonge
Joined: 06 Jan 2006 Posts: 19
|
Posted: Wed Feb 10, 2016 5:55 pm Post subject: |
|
|
Did you disconnect the ISP programmer. ??
It use com1 also. |
|
Back to top |
|
|
AdrianJ
Joined: 16 Jan 2006 Posts: 2483 Location: Queensland
|
Posted: Thu Feb 11, 2016 11:49 pm Post subject: |
|
|
I think at this stage I would be sending just one repeated character, while looking at the signal line with a CRO to see what pattern is actually being sent. But I must admit that its odd that it seems to work ok in upper case but not lower. The difference is only that bit 5 is set to send lower case.
Maybe a look also with some terminal program like Realterm, which allows to display the Hex code of what is received would show up what is wrong. The characters you quote seem to indicate that bit 7 is being set, but that may just be a terminal trying to interpret garbage. _________________ Adrian Jansen
Computer language is a framework for creativity |
|
Back to top |
|
|
protoncek
Joined: 16 May 2011 Posts: 52 Location: Slovenia
|
Posted: Tue Feb 16, 2016 7:24 am Post subject: |
|
|
Hi!
nothing has been said about what program is used as terminal on PC side? I've had problems with bray terminal, who CAN corrupt characters for no reason, so i rarely use it. Funny thing is that when i used it on xmega128 @46MHz it corrupted data at 9600 baud, but worked perfect at 256000
So, maybe changing terminal program is a start... |
|
Back to top |
|
|
AdrianJ
Joined: 16 Jan 2006 Posts: 2483 Location: Queensland
|
Posted: Tue Feb 16, 2016 8:01 am Post subject: |
|
|
Since I happened to be playing with serial comms on another project, I ran this:
Code: |
$regfile = "m644pdef.dat"
$crystal = 3686400 'clock speed
$hwstack = 130
$swstack = 50
$framesize = 80
Enable Interrupts
Config Clockdiv = 1
$baud1 = 9600
Config Com2 = 9600 , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0
Config Serialin1 = Buffered , Size = 250
Config Serialout1 = Buffered , Size = 250
open "com2:" for binary as #1
do
Print #1, "mworld.be"
waitms 100
loop
|
Yes its a different processor, clock speed, serial port, etc
Result on Teraterm was "mworld.be" for as long as I let it run, about 10 mins. No errors.
Seems to me its a hardware problem.
By the way, and totally unrelated, its very rarely necessary to buffer serial output, and it takes out yet one more point at which something can fail. Especially when testing and trying to track down some obscure fault. _________________ Adrian Jansen
Computer language is a framework for creativity |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|