MPLAB/MPLAB Errors

PICkit3 연결법

ElectricShock 2014. 12. 30. 13:13


Naver

[pic16f877a device id]





http://www.youtube.com/watch?v=v_pki3qHSfM

PICkit3 혹은 PICkit2를 저렴한가격으로 구하고싶은분

PICkit3에 대한 질문있는 분은 아래에 댓글 남겨주세요~!!

추가로 PICkit3의 이러한 기능이 Blog에 기재됬으면 하는 바램이 있다면 역시 댓글로 남겨주세요

(If you have some ideas which you want me to describe here, feel free to leave comments below)


▼AVR과 다른 PIC만의 차별화된 기능

1.Programmer : 기본기능

2.Portable : 컴퓨터 없이 Hex를 얹을 수 있다.

3.Mini Oscilloscope : 3개 채널의 Digital Logic을 체크할 수 있다.


▼MPLAB에서 Pickit3를 사용하는 법을 정리했습니다.


MPLAB IDE 열고

Configure >> Select Device >> PIC16F877A 선택

OK

Programmer >> Select Programmer >> PICkit3

1.Target Board에 전원이 공급된경우

자동으로 연결됨

2.Target Board에 전원이 없는경우 PK3Err0045 가 발생할수 있다.

Programmer >> Settings >> Power 

>> check "Power target circuit from PICkit3"



Apply(=적용) >> 확인

Voltage Caution 메세지가 뜨면 OK



File >> Import >> File HEX you want to load on it.

Program it.

☆ 만약 Crystal Oscillator를 사용한다면, XT를 체크할것



LED Blink Test용 Assembly Code


blink_led.asm



===============그래도 Error가 발생할경우=========================

1. Firmware 바꿔주기

2.툴바의 Programmer >> Settings

3.상단의 두번째 텝 "Configuration"

4.Auto Download Latest Firmware 체크

5.Manual Download 클릭 "PK3FW_012890.jam" 선택

6.적용, 확인

7.툴바의 Programmer >> Reconnect.

================Target Device does not match==================

Configure >> Select Device 에서 칩을 맞춰준다.

=========================================================




Portable

참고 ▶ http://instructables.tistory.com/88

• In the “Image Name” field, type in the name you want to use for your programming image. 

• The “Programmer Setting Report” panel displays the setting you’ve selected for programming the device. If you want to change any of these settings, use the appropriate tab in the PICkit 3 Settings dialog. 

• Click Send Image In Memory to execute an image transfer to the PICkit 3 unit. Once the image is stored in the PICkit 3, you no longer need MPLAB IDE or a PC to program a device. You can take the PICkit 3 to other locations that may not have a computer and program a device with the push of a button.


Oscilloscope

g