Hi i am doing my first project to understand about ARM stm32f407 microprocessor using TTL/CMOS logic gates externally,and check the function of a SOP design by generating inputs to the logic and reading the outputs. So LEDs will be used as indicators for both input test bits and output result bits. The main problem is in below, i don not know how to start to write program any one teach me about this one... Allocate 4 pins for driving external logic (TTL) and 2 pins for reading the logic inputs from two SOPs. The SOPs are as follows
X1 = not B notC + B C + A not B D X2 = notC D + C notD + A B C
So go get a manual for the chip and board you're using. Study them.
Download the firmware library from ST
Review the code examples, with some focus on configuring GPIO pins.
Build some of the examples. Study the results.
Check the board documentation to understand which pins are free to use, and which pins are tolerant of 5V inputs, if that's what your circuits generate.
You have 4 outputs, cycle through the 16 binary output combinations, and after setting the outputs, examine the two inputs. You could compare these values to known correct values, or store them in a table for display or comparison later.
If you don't understand how to do aspects of the project, break them down to simpler tasks. There is plenty of documentation if you're interested in learning how to do things.
SOP, sum of products?