the first method:
while(UCSR1A.5==0){;}
UDR1=k;
while(UCSR1A.6==0){;}
UCSR1A.6=1;
while(UCSR0A.5==0){;}
UDR0=k;
while(UCSR0A.6==0){;}
UCSR0A.6=1;
Keywords:AVR
Reference address:AVR microcontroller---serial port sending
void send1_1byte(float k)
{
}
void send0_1byte(float k)
{
}
This method is commonly used.
The second method:
putters (k);
Previous article:Insufficient size error occurs when compiling AVR project
Next article:AVR-SPI bus control
- Popular Resources
- Popular amplifiers
Recommended Content
Latest Microcontroller Articles
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
He Limin Column
Microcontroller and Embedded Systems Bible
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
MoreSelected Circuit Diagrams
MorePopular Articles
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
MoreDaily News
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- Infineon's PASCO2V15 XENSIV PAS CO2 5V Sensor Now Available at Mouser for Accurate CO2 Level Measurement
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- A new chapter in Great Wall Motors R&D: solid-state battery technology leads the future
- Naxin Micro provides full-scenario GaN driver IC solutions
- Interpreting Huawei’s new solid-state battery patent, will it challenge CATL in 2030?
- Are pure electric/plug-in hybrid vehicles going crazy? A Chinese company has launched the world's first -40℃ dischargeable hybrid battery that is not afraid of cold
Guess you like
- Is it true that without a diode there is no way to oscillate?
- Wish you all a happy Mid-Autumn Festival
- E220-400TBL-01 lora module wireless test board + 01 unboxing + simple use
- C8051F340 system board program loss problem
- TMS320F28335 Experimenter Board Kit
- OPA2369 Issues
- [Summary] Let's get our hands dirty and do a "labor" transformation of old things
- [GD32L233C-START Review] 9. IAP program upgrade - based on YMODEM protocol
- What is it like to ask programmers to write code by hand with pen and paper after a power outage?
- [Sipeed LicheeRV 86 Panel Review] III. Building a cross-compilation environment: success and failure