hello everyone!
i'm sending data using matlab via the serial port this data is about a charachter '1'
then i interfaced the tx of the serial port with the max232 then to a not befor the final step the rx of pic16f877a.
i made the simulation using proteus and matlab everything works. but if i don't use the not for example the '1' sent from the serial port is changed to 'g' after the max232. and putting the not it turn '1'.
i made the circuit but doesn't work.
so please can anyone help!!. is right to put the not or i have to see whioch carachter gives me the max232 and programming the pic depending on it!!!??
Thanks 4 reading.
P.S:this is the circuit
You normally wouldn't bother with a hardware inverter. You should have the ability in your UART setup in the microcontroller to set whether IDLE is a 1 or 0. If your microcontroller doesn't have that then you might need the inverter.
it seems that the programm proteus gave me wrong information, i connect the rout of the max232 to rx of pic directly and if i send any type of charachter i receive the same without using theInverter... Thanks