Check inside please

來源: xia23 2022-02-05 05:05:42 [] [博客] [舊帖] [給我悄悄話] 本文已被閱讀: 次 (2994 bytes)
本文內容已被 [ xia23 ] 在 2022-02-05 15:03:55 編輯過。如有問題,請報告版主或論壇管理刪除.

I had used Snap once or twice for programming a pic microcontroller when Snap was just out. I remember I used XIDE, instead of MPLAB IDE (at least for version 8.92, you could not choose a Snap from the programmer list). In XIDE, for the programmer, you could choose a progrmmer such as PicKit 4, 3 (I remember not PicKit 2) and Snap (which has 8 pinout instead of 6 like PicKit), it was successful.

Snap, as well as PicKit 2, 3, 4 is just a hardware for progrmming a pic microcontroller chip. With MPLAB IDE or XIDE, you could also debug your program, trace each individual step (for an assembly program only, step by step, not for a C program, I tried and was not successful). I thought MikroC software could do debug for a C program but I never tried.

For progrmming or 編程, you don't need a programmer. You don't need an IDE, even a plain text editor could do. Like WordPad in Windows utilities. 

I checked the video, it is one of the ways to program a PIC microcontroller. The only thing is to download some utilities program from gitHub and use Arduino nano or mini to program a PIC16f1847. 

IDE, XIDE and Arduino software are putting text editor (enhanced programming environment), program the chip and debug the program (I don't know if Arduino could do debug but https://docs.arduino.cc/software/ide-v2/tutorials/ide-v2-debugger

version 2 could do) together. So you don't need to leave the IDE and you could finish everything in the IDE.

To program a microcontroler, you might not need a programmer (https://electronics.stackexchange.com/questions/185375/microchip-programming-without-a-kit

). What a programmer does is to pull MCLR to some status and send your HEX file to set to RAM via PGD and PGC (every pic microcontrolle has MCLR, PGD (for Data) and PGC (for Clock) pins) to program the microcontroller.

For learning a microcontroller, Arduino is much easier than PIC. To program, you don't need a penny. Just download Arduino from https://www.arduino.cc/

. There are lot of samples, so you don't even need a book. On the web, as well as in youtube, you could find many free programs. Pic IDE, XIDE are also not too difficult, you need only to download the IDE or XIDE. 

Hope this will be helpful.

所有跟帖: 

many thanks! I wonder debug because I only have the bad board an -chinomango- 給 chinomango 發送悄悄話 chinomango 的博客首頁 (359 bytes) () 02/05/2022 postreply 13:43:18

請您先登陸,再發跟帖!

發現Adblock插件

如要繼續瀏覽
請支持本站 請務必在本站關閉/移除任何Adblock

關閉Adblock後 請點擊

請參考如何關閉Adblock/Adblock plus

安裝Adblock plus用戶請點擊瀏覽器圖標
選擇“Disable on www.wenxuecity.com”

安裝Adblock用戶請點擊圖標
選擇“don't run on pages on this domain”