oscilloscope says "tucos oscillator setup is ok" (xt no pll stuff by now), i tested uart output and is ok in the right pin at the right bitrate,
Crystal:12MHz external
CONFIG4 :$ABF8 : 0xFFDF
CONFIG3 :$ABFA : 0xFCFF
CONFIG2 :$ABFC : 0xA29E
CONFIG1 :$ABFE : 0x3F7F
and testcode....
void main() {
LATB=0;
PORTB=0;
// Disable all ADC
AD1PCFG = 0xFFFF;
TRISA = 0x0000;
// Make RB0, RB1, RB2 inputs for the ADC
TRISB = 0b000000100000000;
// Asign pin locations for tx/rx from the uart
Unlock_IOLOCK();
PPS_Mapping(7, _OUTPUT, _U1TX );
PPS_Mapping(8, _INPUT, _U1RX);
Lock_IOLOCK();
UART1_Init(9600);//115200); // Initialize UART module at 115200 bps
Delay_ms(100); // Wait for UART module to stabilize
//1bit= 100us aprox ...
//
while(1)
{
//debug
//UART1_Write_Text("Start");
UART1_Write("Tuco");
UART1_Write(13);
UART1_Write(10);
Delay_ms(100);
}
}
so the problem is coming from my F2MGLA02 bluetooth module, because it show rubbish and /or nothing at all...
I'll check after xmas with another module (unfortunately i forgot the soldering tools at the office
)