Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[hlp] UART using AVR CodeVision

Status
Not open for further replies.

gameelgamal

Member level 5
Joined
Dec 14, 2006
Messages
85
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
Egypt
Activity points
1,888
avr uart interrupt driven codevision

Hi.........
I have a small question in UART using Code Vision......

when I set the RX interrupt check box, A reciever buffer box appears.
could any one tell me what is the reciver buffer number means??


and what is the difference between these commands
puts()
putsf()
printf()
 

uart of avr

You can see in book: "C Programming for Microcontroller"
 

avr codevision rx interrupt

Hi,
"receiver buffer" means lenght of Rx buffer (in Bytes).
 

printf format specifiers for code vision

The UART receiver can function in two modes:
1) Polled
2) Interrupt driven circular buffer. In this mode you can specify the size of the circular buffer using the Receiver Buffer spinedit box.

void puts(char *str)
outputs, using putchar, the null terminated character string str, located in SRAM, followed by a new line character.

void putsf(char flash *str)
outputs, using putchar, the null terminated character string str, located in FLASH, followed by a new line character.

void printf(char flash *fmtstr [ , arg1, arg2, ...])
outputs formatted text, using putchar, according to the format specifiers in the fmtstr string.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top