簡介pic microcontroller
pic microcontroller是microchip這個公司產的microcontroller,國內也管它叫pic單片機。microchip公司有很多自己的microchip,像下麵的5個pic32mx795f512l, pic24hj32gp, pc10f202t, pic12f629 (2個),最小的是pic10f202t:
pic單片機的書:
每個chip裏都有輸入輸出pin(管腳),你可以讓一些管腳當輸入,另一些管腳當輸出,做一些你想做的事情。例如你可以把一個管腳用做開關做為輸入,當開關按下時,讓另一個管腳上聯著的紅外發光二極管發出紅外線,讓你的相機接到紅外線信號後按下快門,拍出相片。下圖裏透明盒子裏的是Nikon DSLR D70相機的紅外遙控器,下圖裏黑的東西是可以插在汽車的點煙器插口上可以測出電池電壓和發電機電壓的小裝置:
https://blog.wenxuecity.com/myblog/40376/202206/14820.html?
https://blog.wenxuecity.com/myblog/40376/202201/30519.html
https://blog.wenxuecity.com/myblog/40376/202205/31113.html
每個chip裏都有flash memory, 從幾個byte到mega byte (gemini 說有 2MB的chip)。你可以自己編程,然後把高等語言用軟件轉化成chip能懂的機器語言。 下圖是microchip的軟件,你可以選C或assembly language編程,下圖是assembly language:
再用programmer把機器語言燒到chip的flash memory裏,這樣這個chip就可以按你的要求做事了。flash memory能夠反複消除反複使用1萬到10萬次。下麵是programmers,也叫chip flash memory burner:
下圖是把programmer聯到chip上的接線圖:
下麵是我以前用英語寫的,介紹microcontroller和microprocessor的·區別以及pic microcontroller. 基本沒改,貼在這裏。給感興趣的人看的。
In every one’s home, there are computers. The heart of the microcomputer is a CPU (central process unit) or a microprocessor.
Central Processing Unit
The Central Processing Unit (CPU) is the primary component of a computer that acts as its “control center.” The CPU, also referred to as the “central” or “main” processor, is a complex set of electronic circuits that runs the machine's operating system and apps.
But in your home, there is another kind of “computer”. You may or may not notice. They are called microcontroller. In fact, in your house, the amount of microcontroller could be much higher than that of CPU. In remote controls for TV, microwave oven, smart door bell, electric pressure cooker …, where there must be one or several microcontrollers, in your car, there might be at least one hundred of them.
What is the difference between a CPU and a microcontroller?
A microcontroller (MC, UC, or μC) or microcontroller unit (MCU) is a small computer on a single integrated circuit. From Wikipedia.
A microcontroller is like a miniaturized computer on a single chip. All the elements of a computer, such as CPU, memory, timers, and registers, are tightly integrated with each other. A microprocessor, on the other hand, is just the computing element (the CPU) in a computer.
In the US, who are the maker of microcontrollers?
What is PIC microcontroller?
PIC microcontroller is the name from its maker, microchip.
PIC stands for“Programmable Interface Controller”
It is generally thought that PIC stands for Peripheral Interface Controller, although General Instruments' original acronym for the initial PIC1640 and PIC1650 devices was "Programmable Interface Controller". The acronym was quickly replaced with "Programmable Intelligent Computer".