-
p is bigger, your { } is not paired, more or less one.
-
Isn't 51 written directly, stm32 only uses library functions.
-
fatal error l250: code size limit in restricted version exceeded
module: d:\keil\c51\lib\ (limit: 0800h bytes
There is no crack, there is an 800h byte limit.
-
You don't have a registration, license management
-
You've defined the delay function repeatedly in the and file! Just make it a little bit of a change.
-
delay multiple definitions! Solve this problem first, and continue to hi me if there is a problem! Glad to help you!
-
*The internal timing counter T1 is used to generate a timing clock, and there is a P1 port output signal to control 8 LED indicators (active at low level).
The trial programming makes the 8 indicators turn on at a time, and each indicator lights are lit for 100ms
#include
#include
#define uchar unsigned charuchar num=0;
void main()}
void time0() interrupt 1 interrupt does not need to be declared.
-
It's sent to your mailbox, and if you don't understand, ask me again.
-
Sent Written in C Don't know if you're full? My q is 71848205 one.
-
This is a file that is automatically added for you when you build a project. Because the microcontroller boot does not start from main, but you write c** generally from main, and you need to perform a small assembly before main**. This document is that paragraph**.
-
Startup file, automatically generated by keil.
If you really want to learn, you don't need to buy a development board. Find a minimal system board, then learn something, buy components and build small circuits by yourself. Run the electronic market by yourself, build the circuit by yourself, in order to know the problem, in order to learn something, buy a development board, according to the circuit on the manual, and then put the program into it, and then the program basically understands, this is not called learning... >>>More
It should be that the bias resistor selection is not suitable.
Scheduled interrupts, external interrupts?
The method of using two timers is to use the timer t0 to control the frequency and the timer t1 to control the duty cycle. The general programming idea is as follows: the t0 timer interrupt makes an i0 port output high, and starts the timer t1 in the interrupt of the timer t0, and this t1 makes the io port output low, so that changing the initial value of timer t0 can change the frequency, and changing the initial value of timer t1 can change the duty cycle. >>>More
This is normal, because the light on and off is driven by the low level of the single-chip microcomputer (as you can see from your program), and the high-low level load capacity given by the single-chip microcomputer is not very strong, that is to say, although it reaches the voltage, but the current is relatively small, and we write the same situation when we write programs. No problem, don't worry.