PIC16F72 미니 PIC 개발 보드
(PIC16F72 Mini Board)
개요
- 본 제품은 PIC16F72 마이크로컨트롤러를 탑재한 컴팩트한 크기의 미니 보드입니다.
- MCU의 GPIO를 접근 가능하게 핀 패드를 양쪽으로 빼놓았으며, 전원공급을 위해 microUSB 커넥터를 장착하고 있습니다.
- 각 핀패드는 GPIO가 마킹되어 있습니다.
- 리셋버튼, 8Mhz 크리스탈, 파워 LED를 장착하고 있습니다.
- PICKIT3 프로그래머를 이용하여 프로그래밍 패드(USB 옆 핀패드-핀헤더 납땜 필요)에 연결하여 쉽게 프로그래밍이 가능합니다.
특징
-
Toolchain
- PICkit3 hardware
- K150 (old)
- MPLAB IDE + HI-TECH universal toolsuite (compiler)
- Pickit standalone programmer
Build Guide MPlab IDE
- Updated with animation tutorial
- Install MPLAB, HI-TECH PICC9.83
- select MCU -> pic16f72
- programmer -> pickit3
- project wizard -> use compiler hi-tech universal toolsuite -> ANSIS
- click to compile the default project, blink RA0 LED
build first demo and flash
Upload code- Must select proper configuration bit, check crystal, LP - low power, RC internal, XT external, HS high speed crystal, for 8M crystal should use this one, read more on datasheet
- Demo use pickit standalone programmer, configuration bit set to 3FF2
- Crystal - HS crystal
- WDT - disable -> 0
- Power-on timer - enable -> 0
- BOR - enable -> 1
- LP - code protection off -> 1
문서
- demo code
//compiled with MPLAB 8.x version #include<htc.h> // Config word ?? no need //__CONFIG(FOSC_HS & WDTE_OFF & PWRTE_ON & CP_OFF); // Define LED pin #define LED RA0 // Define CPU Frequency // This must be defined, if __delay_ms() or // __delay_us() functions are used in the code #define _XTAL_FREQ 8000000 // Main function void main() { TRISA0 = 0; // Make RA0 pin output LED = 0; // Make RA0 low while(1) { __delay_ms(500); // Half sec delay LED = 0; // LED off __delay_ms(500); // Half sec delay LED = 1; // LED on } }