Serial Connector (9 way D)
Output via serial
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 directly to a 9-way D 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
|9-way D socket ( right angle PCB mounting, female )||CON025||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.