Usually it's harder to fully understand the problem we face than solving it. Sometimes it's not well defined or we simply can't figure it out.
Breaking the problem into smaller pieces always helps. Next we assemble these solutions into a bigger one. This is even a well established programming technique.
We should think of a way to write a program to implement the solution. With that goal in mind, there'll be many languages and tools available we'll use.
We'll be able to connect our CIAA to the PC through any USB port. This way we'll also be able to flash our program onto it.
Having the CIAA connected to the PC, we begin transfering our program onto the CIAA. It will allow our program to be saved on the CIAA internal memory.
As soon as the program we made is burnt to the CIAA, execution begins and we'll be able to see our solution in action.