-
This has to be studied systematically. As the core of the control unit, the role of the single-chip microcomputer is quite important. That's why the 51 nucleus is still popular after decades.
You can systematically learn the microcontroller, you can start with 51, buy a development board, and then learn the C language!
If you want to further develop in hardware, then 51 must be learned.
I2C, is a serial bus protocol, through 2 I O ports can be hooked up a lot of devices, I2C protocol is a lot on the Internet, I won't give an example, you can find it by searching. But the premise is that your C must be learned well, and the single-chip microcomputer must be able to use, so you can do I2C. For the I2C-based EEPROM experiment in the MCU experiment, it is the most commonly used external ROM storage experiment.
Commonly used external ROMs are: AT24C02, AT24C04, etc. The suffix stands for capacity.
-
Many single-chip microcomputers have hardware that can automatically realize I2C, and those that do not can also simulate the timing of the IO port through software.
The I2C protocol can be found on this page.
-
What exactly is this "12 C's"?
-
DS12C887 just records the time, how do you know what the time is without reading it out with a single-chip microcomputer?
-
You don't need a microcontroller, you can go to the library to collect information.
-
I studied for a month 51 microcontroller and wrote a perpetual calendar by myself, plus temperature measurement, why are you so stupid.
-
Send at command through serial port It depends on the information of Bluetooth Bluetooth is in data mode by default To configure it to at command mode Set it up But the UUID is set before leaving the factory.
-
If it's a Bluetooth module, the UUID is set!
-
The frequency of this internal RC can be read from the internal RAM and is in FCH, FDH, FEH, FFH.
-
No way? How much heat does this system generate in yours? The sin is to add a hole for ventilation, and it's a big deal to install a cooling fan for a computer CPU.
-
Generally not, not very hot. If the environment allows, make a few more holes.
You can add heat dissipation holes, and the shell can be a metal shell.
-
If the single-chip microcomputer is hot, it is likely that the power consumption is too large, and it is recommended to change the hardware; If it doesn't get hot, then consider what people call power heating. No more than 80 is no problem.
-
Initialize.
p1asf|=adc_pin;Set the pin as analog input, such as ADC pin=b00000001, as the setting port.
adc_contr|=0x80;power on delay50xms(1);
Initiate. adc_contr=(adc_contr|0x08+adc_channel);At startup, the ADC channel is the ADC conversion channel, if 0 is channel 0, and 1 is channel 1Of course, if you don't need to change the channel, the ADC channel can also be set at initialization.
If you have any questions, you can ask them.
-
It's supposed to be a microcontroller, of course.
-
1. Choose Atmel's AT89C51 (Keil lets you choose the device is actually connected to some additional features of the Keil software, and does not affect the use of the compiler connector).
2 head question, don't check Hongzhou made a mistake.
3. Registers that are not in the header file declare themselves in the program (if you want to use these registers) 4. When you compile the program, the generated hex file should be obscured and usable.
5 But if you're going to use Keil's other features, it depends.