I have no problem sending data between two PIC16 processors
I made a program sending the number five and looked at the signal with a oscilloscope and the different processors send different signals. Why is it like this and how do I make the two processors talk the same langue?
[img][img]http://img300.imageshack.us/img300/4561/image2rc5.th.png[/img][/img]
the blue signal come from PIC18F4550 and the red from PIC16F690
PIC16F690 code
Code: Select all
void main() {
osccon = 117;
TRISc = 0;
portc = 0;
ANSEL = 0; // Configure AN pins as digital I/O
ANSELH = 0;
portb = 0;
TRISb = 0;
Usart_Init(9600);
while(1){
USART_Write(5);
}
}
Code: Select all
void main() {
CMCON = 7;
TRISD = 0b00000000;
PORTD = 0b00000000;
TRISb = 0b00000000;
PORTb = 0b11111111;
Delay_ms(2000);
PORTb = 0b00000000;
Usart_Init(9600);
while(1) {
USART_Write(5);
}
}