Hello,
I have an atmega88 programmed to communitace with a PC (interchanging data) through serial port.
The author of the circuit does not use a max232 chip as a buffer as shown here https://obrazki.elektroda.pl/79_1258865852.gif (is this correct diagram?) but he communicates the micro directly with the PC port.
I was wondering if the max232 will do any good (voltage levels?) or I just leave it out.
UART logic level to RS232 need level conversion and inversion. Level conversion would at least involve a voltage divider for processor RxD. RS232 can receive 5V CMOS level at worst case, although the specification requires +/-3V level.
Inversion does require additional logic however, it's not provided by ATmega processors. Or you have to use software UART.
It seems like regular UART communication hasn't enough thrill. So you want to try weird designs.
UART logic level to RS232 need level conversion and inversion. Level conversion would at least involve a voltage divider for processor RxD. RS232 can receive 5V CMOS level at worst case, although the specification requires +/-3V level.
Inversion does require additional logic however, it's not provided by ATmega processors. Or you have to use software UART.
It seems like regular UART communication hasn't enough thrill. So you want to try weird designs.
So would you suggest using the max232 just to make sure?
the author of the circuit has not used it at all so I do not know what he has done in software. What if he performs inversion in software? then the max232 may re-invert the signal?
The logic level must be inverted and have proper voltage level, if he did it in software (and hardware for voltage level), no you won't need the MAX232. If there is no "translation" in software, then yes, use a MAX232. Do you have the code? is there a "RS232 language translation" in the code?
The logic level must be inverted and have proper voltage level, if he did it in software (and hardware for voltage level), no you won't need the MAX232. If there is no "translation" in software, then yes, use a MAX232. Do you have the code? is there a "RS232 language translation" in the code?
I do not hink I can write assembly to implement a BASIC interpreter, no, not at all, so I have to use his code.
Even if he has done inversion in software the MCU cannot do level shifting, I do not know if it will work say on older PCs
Okay so you don't have many options.
You can try to find the interpreter in his code if there is one, or you can connect it to the serial port of the PC and see if it works, if it doesn't, try with the MAX232.
Okay so you don't have many options.
You can try to find the interpreter in his code if there is one, or you can connect it to the serial port of the PC and see if it works, if it doesn't, try with the MAX232.