For your first issue "If connect the interrupt component to the "interrupt" pin, it not work at all, but if connect to the "tc" pin it work"
--> Please ensure you have checked "interrupt on TC" in Timer component GUI. Please find the attached project and test it in your board.
Ideally the change of period is independent of the enabling of interrupt. When you change the value of the Period, please note that you have to manually write the counter value to '0' using the Write counter API. Please go through the following KBA for more details.
Please try this and check once.
UDBTimer.cyprj.Archive02.zip 1.8 MB
the timer interrupt work nice, but the period still work strange, it really changed, but if i put the same period value in creator window and in program it work different..
I put the 4 in timer window,work nice, but if i put the 4 again in function-the speed fall to half..
if i put 8 in the psoc creator window ..and check if it real 8 in program,
the program enter to infinity loop and no continue..
PS Look the timer period value for the
function want be 1 less of the real period, for example it I want set the timer period to 4 i write
INOLED (1).zip 6.2 MB