Hi all.
after seeing dozens of Control Suite examples i still dont understand what is the right way to configure the GPIO's?
for example, i need to write a code that uses SPI and SCI modules.
the SCI doesnt have any extra GPIO configurations but the SPI pins needs more configurations, to be Inputs or outputs and enables internal pull ups Etc...
so what is the right way to config those GPIO's?
another example is that i write a code that uses timer0 interrupt that toggles one of the GPIO every 50 msec.
i config the GPIO to be Push-Pull and Output and hoped to see a sqaure wave in a scope, but it didnt work.
so i figured that my code is wrong, so i changed the GPIO to 34 (the one that connected to the LED in the Control Card) and it worked.
so my next step was to check the GPIO Toggle example (i ran it and it worked) but when i tried to change my code to be similar to the example it still didnt work.
so bottom line, ill be glad if someone can write to me what are the correct stages to configure the GPIO's.
best regards
Shimon Otsri