如题,求助各位大佬,我新入行学习PIC10单片机,选用PIC10F202T型号,使用MPLAB X IDE V6.20开发,代码如下,但烧录成功后无法测到输出的电压。
代码如下:
#pragma config WDTE = OFF // Watchdog Timer (WDT disabled)
#pragma config CP = OFF // Code Protect (Code protection off)
#pragma config MCLRE = OFF // Master Clear Enable (GP3/MCLR pin fuction is digital I/O, MCLR internally tied to VDD)
// #pragma config statements should precede project file includes.
// Use project enums instead of #define for ON and OFF.
#include <xc.h>
#include <stdio.h>
#include <stdlib.h>
/*
*
*/
int main(int argc, char** argv) {
TRISGPIO = 0x00;
GPIO = 0x00;
while(1)
{
}
return (EXIT_SUCCESS);
} |