but i need to make it toogle in a function with no preview edge knowledge..
how can make it happen?
Thank for help!!
Ttelmah Guest
Posted: Mon Aug 14, 2006 2:50 am
There must be some sort of 'knowledge'. Normally you could (for example), use:
Code:
if (input(PIB_B0)) {
//signal is high, so I want to interrupt on high to low
ext_int_edge(H_TO_L);
}
else ext_int_edge(L_TO_H);
//Otherwise interrupt on rising edge.
The decision can be based on whatever you want, but normally the state of the pin would be the most 'logical' decider.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum