I am working on a very simple hardware project and would like to develop serial port controls, but I'm having a little bit of trouble starting out. The project is the following:
I have built an LED lamp with 8 seperate light-up sections controlled by a PLD. Each time the PLD clocks, it assigns the value of the input (either high or low) to one of the output pins (0 through 7), which subsequently controls the lamp.
I would like my program to set these segments with the 9-pin serial port, which means I need to send a clock signal and a single bit of data, either high or low, to the PLD. However, all the information I can seem
to find online about the serial port and C is about large data and file
transfers. Any suggestions? I have never programmed with hardware before.