I have tryed that but if i use that line it does not work ( doesnt send data nor the led in gpio.2 blinks )
.
I have tryed that but if i use that line it does not work ( doesnt send data nor the led in gpio.2 blinks )
.
what happen if you change MCLR_ON to MCLR_OFF?
Are you sure it's a 4MHZ crystal?
Can you measure it with a scope?
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
I'm not using any Max232
About the MCLR, when on i hooked it to vdd, also tryed off and result is the same.
The caps for the xtal are both 22pF
I'm using the Serin program to get the data from serial
.
i can try using the internal osc...but will have to use MCLR on or i will lock my pic :S
IC-Prog has 2 choices...
INTOSC GP4
and
INTOSC CLKOUT
which one may i use ?
AH CRAP, i really need new glasses... so just change your SEROUT2 baud constant to use inverted mode... and it will workI'm not using any Max232
with 1-10K resistor in serie, this have to work.Code:baud Serout2 ---- ------- 9600 16488 4800 16572 2400 16780
I would suggest you to use DEBUG, it use less code space and may work on higher baudrate with slower crystal speed.
Last edited by mister_e; - 2nd December 2007 at 23:51.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
The SEROUT2 baud constant table did not worked as well...
but...
using DEBUG worked 5*****
I guess it's because the low speed xtal
Thanks once again Mister-e
.
Bookmarks