下面代码不知哪里有问题?仿真总通不过。求教高人指点,万分感谢!
#include <pic18.h>
#define uchar unsigned char
#define uint unsigned int
void Delay(uint xms)
{
int i,j;
for(i=0;i<xms;i++)
{ for(j=0;j<71;j++) ; }
}
void main()
{
TRISA=0x00;
TRISB=0x00;
while(1)
{
RA4=1;
RB3=1;
Delay(1000);
RA4=0;
RB3=0;
Delay(1000);
}
}