Serial Connector (3.5mm)
Output serial via a 3.5mm jack socket to an AXE027 USB cable
The following program will output serial data at 2400 baud which reports the incrementing value of the byte variable 'b0' every second. As the serial signal goes to a 3.5mm jack socket which an AXE027 USB to serial cable will be connected the polarity of the serial is 'normal' so an 'n2400' baud rate is used. Because an 8-bit byte variable is used, after the number reaches 255, the next increment will take its value to zero.
Bill of Materials
|3.5mm stereo jack socket||CON039||1||Buy Now|
|10k resistor (pack 100)||RES10K||1||Buy Now|
|22k resistor (pack 100)||RES22K||1||Buy Now|
Submit Your Own Code!
You must be logged in to submit code examples. Login now.