#include #define uchar unsigned char #define uint unsigned int __CONFIG(0xF731); void init(); uint num=0; void main() { init(); while(1) { if(num==10) { num=0; RD7=!RD7; } } } ........................