So I want to send a parallel signal out of a rs232 serial signal.
So I need to put every bit of the rs232 8bit signal on to an other output of port B...
I only got flowcode v2 and I know a little bit of c-code;
So I tryed this:
http://img340.imageshack.us/img340/6727 ... lelok7.jpg
this is the code I putted in the code object...
Code: Select all
char SIGNALOUT[8];
char SOUTB[8]
SOUTBbits.RB0 = SIGNALOUTbits.RB0
SOUTBbits.RB1 = SIGNALOUTbits.RB1
SOUTBbits.RB2 = SIGNALOUTbits.RB2
SOUTBbits.RB3 = SIGNALOUTbits.RB3
SOUTBbits.RB4 = SIGNALOUTbits.RB4
SOUTBbits.RB5 = SIGNALOUTbits.RB5
SOUTBbits.RB6 = SIGNALOUTbits.RB6
SOUTBbits.RB7 = SIGNALOUTbits.RB7
char PORTB[8];
PORTBbits.RB0 = SOUTBbits.RB0
PORTBbits.RB1 = SOUTBbits.RB1
PORTBbits.RB2 = SOUTBbits.RB2
PORTBbits.RB3 = SOUTBbits.RB3
PORTBbits.RB4 = SOUTBbits.RB4
PORTBbits.RB5 = SOUTBbits.RB5
PORTBbits.RB6 = SOUTBbits.RB6
PORTBbits.RB7 = SOUTBbits.RB7
So can some 1 pls help me, I don't know what else to do....
thx, FrΓ©
edit:
I use a pic16f877 and no wotchdog timer or parety bits, just the easy way...