Thank you for your response!
I implemented my counter using PIO and it seems to work!
But now, I want to add an option to clear my counter and here I have a question: may I simply connect PIO output port to PIO input port of my counter? I did it but something is wrong, it doesn't want to change value to zero... I am not sure which address should be changed: base, end or the whole page?
Thanks in advance for your help,
Best regards,
Koza
PS. Part of my design file showing (I hope) the problem can be found here:
www.twojekorki.republika.pl/clear.jpg PS2. If someone plays with uclinux, my code was something like that:
# define READ_C (*(unsigned int *)0x10)
# define ZERO_ADD (*(unsigned int *)0x20)
//clear
ZERO_ADD = x0ffffffff;
ZERO_ADD = 0;
//read
int r = (unsigned int)READ_C;