3/11/2024 0 Comments Attiny25 serial portOn the DB-9, 2 is an output, 8 is an input. Here's an example: Direct ♜ to serial port interface circuit. For serial outputs, just put a 2.2K resistor in-line and let the ♜'s protection diodes do the clamping from ☑2 to Vcc/GND. Most serial ports trip at around +2 volts, so you can drive a serial input line directly from a GPIO as long as your invert your signal's MARK/SPACE in software. If you want to reduce your part count, I often build my serial projects without a RS232 line converter. ![]() I also often push OSCCAL up to 255 in steps to reach 13-14 Mhz with the internal oscillator. I do it often without problems.Īs long as the other serial device you're connecting the tiny to has a proper UART, ±5% is tolerable.Īlso, you can adjust your oscillator calibration or OSCCAL at run time if you measure a large difference from 8Mhz. ![]() The 8Mhz internal oscillator is generally stable enough to permit serial communication at 9600 baud as long as the ♜'s temperature doesn't fluctuate wildly. There's no internal crystal it's an oscillator.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |