came across this website todoing a motor speed controller, The source code is per attached. can anyone explain how the compare mode initialisation in this program works? and i would also like to find out how the designer about getting his 25000 for ccp2rl,h. If i am not wrong.he is using special event trigger mode. coz ccp2 pin is not connected in his schematic.