Hello everyone,
Before I start my question I would like to let you know that I am relatively new to embedded, therefore please be patient with me even if I ask obvious questions and it will be much appreciated if you guys could give detailed explanation. Thank you very much in advanced.
So here is the problem, I would like to create a blinky match using SCT in LPC55S69. So I started with the demo blinky match project that you could get from the Board Support Pack. However the demo does not uses SCT. After referring the SCT_Timer_Cookbook, I tried my best to create a new project by combining the SCT blinky match coding from the cookbook and the blinky match from the demo.
But since my knowledge in embedded programming and SCT is barely enough, I failed to make the LED on the LPC55S69 board to blink. However it did light up, just not blinking.

So based on the SCT figure above, my understanding is that when in State 1/Event 0, the led will turn ON, and in State 0/Event 1 the LED will turn OFF. So that will create the blinking effect. But I am not sure how the state/event commands the LED to turn ON or OFF.
Now I will show my code and explain,

Firstly, I copied this code from the SCT cookbook into my blinky match demo, I guess that maybe the highlighted part will turn the LED ON or OFF, since PORT1_4 uses SCT_OUT0 in the datasheet.

Then, in the main function, I included the SCT_Init() function. I modify the previous blinky match demo by deleting the systick timer which adds 100ms delay and PortToggle function which turns off the LED.
So here are my questions,
1. Does the "SCT0->OUT[0].CLR/SET" actually turns the led on or off ? I also have some doubt that "OUT[0]" is the same as PORT1_4.
2. Is there anything more that I need to add ? I feel like there is something missing. I know that the SCT basically have Event 0 and 1. but how do I let it know that if Event 1 happens then this happens ? Feels like I set an event but does not set what happens to it.
I really hope my explanation helps to understand my situation. I tried to look online for tutorial but most tutorial are meant for people who are already familiar with embedded programming. If you guys have any tutorial or books to recommend, please inform me. I really need to get better in embedded programming but do not know where to start.
Thank you, I also included some files so that you can take a look at the code.