Just route the outputs to a status register. You can use this register then to read the values in your code.
Thankyou for your reply.
So this means if i want to store out_put_1 into "unit8 output " variable. Then i have to do this by calling it from status register?
Can you share an example code for it?
Looking forward for your reply!
I would route both DFF-output to the (2-bit) status register. The just use StatusReg_Read() to get the value.
I suggest also to read the component data sheet for the Status Register.
Code-wise this looks fine.