09-13-2014 09:55 AM
Hi,
a crucial part of my application is to transmit data with an protocol similiar to my led-driver/shiftregister-combi (TLC5940).
I implemented the way you can see in the attached picture. When I try to compile it I get an error-message telling me that I can't put the same
I/O inside and outside of a single-cycle-timed loop. Which would make sense to me if I hadn't put them in different cases.
Anyway is there a handy programming trick to avoid this kind of problem?
Unfortunately I wasn't able to find a solution on the Internet. Probably I am just using the wrong word combinations.
Greeting,
Lukas
09-17-2014 09:34 AM
You are quite right you are not allowed to use it in both places.
I think it might be because you use the same function in different ways, and therefore you would have to compile it twice. That is not possible because the resource is reserved already.