View previous topic :: View next topic |
Author |
Message |
Dan Guest
|
PORTB causing problem on PORTC UART |
Posted: Thu Apr 05, 2007 5:20 pm |
|
|
I have a 18F2580 @ 20MHz and the RS232 baud is 115200. My sample program is this :
Code: |
#include <18F2580.h>
#fuses NOWDT,NOPROTECT,NOLVP,HS
#use delay(clock=20000000)
#use rs232(baud=115200, xmit=PIN_C6, rcv=PIN_C7)
void main()
{
char c;
while (true)
{
c = getc();
putc(c);
putc(c+1);
}
}
|
When pin B5 is low, everything works fine, but when B5 is high, it forces the TX pin to be low. What could cause this? |
|
![](templates/subSilver/images/spacer.gif) |
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
![](templates/subSilver/images/spacer.gif) |
Dan Guest
|
|
Posted: Fri Apr 06, 2007 12:32 pm |
|
|
You were right, my programmer had that fuse set. It works fine now.
Thanks |
|
![](templates/subSilver/images/spacer.gif) |
|
|
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
|
Powered by phpBB © 2001, 2005 phpBB Group
|