I am doing a project, AT80C59 microcontroller. I want to make a program for counting frequency of the pulses on port 1.2. it should do this in loop. Plz help me to write this code. also i want to write this code in bascom software only.