Sunplus microcontroller with DS18B20

Updated on technology 2024-05-24
15 answers
  1. Anonymous users2024-02-11

    temp=1, the function set iob15 in() is called; and set iob15 in() is not executed when temp=0;

  2. Anonymous users2024-02-10

    Different. When writing 0 bits, 0&1=0

    When writing 1 bit, 1&1=1

    It is convenient to use 1 instruction to identify whether to write 0 or 1

  3. Anonymous users2024-02-09

    Sunplus microcontroller, is it SPCE061A?

    Its crystal oscillator is 32768Hz, which can be multiplied and divided by software to form a CPU clock.

    The microsecond delay that is needed at any time, and it is not appropriate to use its timer.

    Or should you use software time-lapse.

    Write a loop program, in the debugging window, you can see the execution time of the program, and select the required delay time.

  4. Anonymous users2024-02-08

    The delay is mainly related to the crystal oscillator, take a look at how big your crystal oscillator is, and then search for the delay program at this frequency, there are many on the Internet.

  5. Anonymous users2024-02-07

    There are pros and cons to the two MCUs.

    51 single-chip microcomputer is mainly used for control, and the data processing ability is very weak. But it is cheap, easy to apply, and widely used.

    The voice of Sunplus single-chip microcomputer is relatively strong, with DSP function, and internal resources are relatively rich. **Slightly more expensive.

    If you want to learn 51, it's better to have an experimental board, because this thing is not learned, but practiced.

  6. Anonymous users2024-02-06

    As long as you learn it well, it is useful, 51 is more widely used, but in some places, you don't use 51 and use others.

  7. Anonymous users2024-02-05

    Whatever you want to learn, you can use the experiment board to practice. No matter which one you study, practice is important.

  8. Anonymous users2024-02-04

    You have to add a flag bit in this place, your judgment is to tell the time when the minutes and seconds are 0, but the MCU program runs very fast, at 0 minutes and 0 seconds, this place may have been executed many times, so you have to add a flag bit, such as.

    temps = clock_getsec();

    tempm = clock_getmin();

    zplaytime();On the hour, the time is reported to this skill, and the socks are fast.

    flag = 1;

    elseflag =0;

  9. Anonymous users2024-02-03

    Passive buzzer no plus or minus active has plus or minus! Horns are there!

    The welding upper part is good!

    Fujing rock position is very simple, just like a single online everywhere basically the same ! Bright Royal.

  10. Anonymous users2024-02-02

    The voice car program of Lingyang has been changed, and the part of the drive motor has been changed to control the power switch (it seems to be IOB8 and IOB9), as for voice control, if you only want to realize the control function, you don't even need to modify the prompt voice. During speech recognition training for specific people, change the "forward", "reverse", "left turn" and "right turn" in the car to the language you need.

  11. Anonymous users2024-02-01

    Lingyang has a voice recognition car, you just change its program, it's very simple, good luck. In addition, there is a lot of information on Lingyang's **, you can take a look.

  12. Anonymous users2024-01-31

    Sunplus single-chip microcomputer seems to be compatible with MC6502, which is quite different from MCS51.

  13. Anonymous users2024-01-30

    System clock settings.

    20MHz, 24MHz, 32MHz, 40MHz, 49MHz, and their crossovers can be set through bit control.

    c_fosc | c_pll_49

    c_fosc |C PLL 49 selects a system clock of 49MHz, divide 1.

    c_fosc_div_2 |C PLL 49 selects system clock 49MHz, 2-way frequency.

    c_fosc_div_4 |C PLL 49 selects system clock 49MHz, 4-way frequency.

    c_fosc_div_8 |C PLL 49 selects a system clock of 49MHz, 8-way frequency.

    c_fosc_div_16 |C PLL 49 selects a system clock of 49MHz and divides by 16.

    c_fosc_div_32 |C PLL 49 selects system clock 49MHz, 32 divide.

    c_fosc_div_64 |C PLL 49 selects system clock 49MHz, divide-64.

    c_fosc |c pll 20 selects the system clock, divide 1.

    c_fosc |c pll 24 selects the system clock, divides by 1.

    c_fosc |c pll 32 selects the system clock, dividby 1.

    c_fosc |c pll 40 selects the system clock, divides by 1.

    c_fosc |c pll 49 selects the system clock, divides by 1.

  14. Anonymous users2024-01-29

    You can use kiel c51, I have a cracked version here, and it is also good to use Weifu 6000 + keil c51, which is more suitable for Chinese use (full Chinese interface).

  15. Anonymous users2024-01-28

    You can use Kiel C51, and Thunderbolt has it.

Related questions
8 answers2024-05-24

Tell me your email address and I'll send you the information.

6 answers2024-05-24

Here is the C51 procedure for DS18B20:

Initialize 18b20 >>>More

5 answers2024-05-24

The serial port of 51 machine is below the low level, the high level is below 5V, the serial port of the PC is low level -12V, the high level is +12V, and the serial port communication between the 51 machine and the PC machine should add the level conversion IC >>>More

13 answers2024-05-24

Because you have an error generated ::Hardware?

Procedure? >>>More

5 answers2024-05-24

8086 belongs to the micro process unit (MPU) and is a microprocessor. >>>More