This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

simulation of counter with my code

Hello, this is my code , but I cannot simulation ,
that means my simulation dont work with: TIOA,TIOB,TCLK. what analog signal is necessary?
can everyone help me?
thanks.

#include <AT91SAM9260.H> /* AT91SAM9260 definitions */
#include <lib_AT91SAM9260.h> /* Library function definitions */
#define CLOCK_FREQ 96109714

int main () { AT91C_BASE_TCB0-> TCB_BCR=0x00000000; AT91C_BASE_TCB0-> TCB_BMR=0x00000015; AT91C_BASE_TC0-> TC_CCR=0x00000005; AT91C_BASE_TC0-> TC_CMR=0x00050500; AT91C_BASE_TC0-> TC_IER=0x00000000; AT91C_BASE_TC0-> TC_IDR=0x00000000; AT91C_BASE_TC0-> TC_IMR=0x00000000; AT91C_BASE_SYS-> PMC_PCER=0x00000011; AT91C_BASE_PIOB->PIO_OER=0xFFFFFFFF; AT91C_BASE_PIOB->PIO_CODR = AT91C_BASE_TC0->TC_CV;

AT91C_BASE_PIOB->PIO_SODR =! AT91C_BASE_TC0->TC_CV;

while(1); }

0