Tagged: interrupt

The Usart Bla bla bla: Using the Standard IO facilities #16 0

The Usart Bla bla bla: Using the Standard IO facilities #16

  Using the Standard IO facilities of the avr-libc  The avr-libc gives some facilities of the standard I/O. Only a limited subset of the standard IO is implemented (refer to the <stdio.h>: Standard IO...

The Usart Bla bla bla: The command line arguments #15 1

The Usart Bla bla bla: The command line arguments #15

The getopt function int getopt(int argc, char * const argv[], const char *optstring); extern char *optarg; extern int optind, opterr, optopt; The getopt function is used to parse command option. The parameters argc and...

The Usart Bla bla bla: The shell functions #14 0

The Usart Bla bla bla: The shell functions #14

The Shell functions The shell contains the following functions: vConsoleLoop vEchoff vEchon iGetChar iPutChar cGetLine The vConsoleLoop function Sinopsys void vConsoleLoop(void) This function takes data from the serial line and performs the parser of...

The Usart Bla bla bla: functions #13 0

The Usart Bla bla bla: functions #13

The Uart bla bla bla functions NAME uart_init  — Init the UART port.   SYNTAX #include “uart.h”   char uart_init (unsigned long ulBaudRate, unsigned char ucParity, unsigned char ucDataBit, unsigned char ucStopBit )  ...

The Usart Bla bla bla: My USART implementation #12 0

The Usart Bla bla bla: My USART implementation #12

  My U[S]ART implementation My USART software is based on the ATMEL application note AVR306 : Using the AVR® UART in C. The original source code of the application note was changed to support...

The Usart Bla bla bla: Interrupt 3 #11 1

The Usart Bla bla bla: Interrupt 3 #11

UART  Data Register Empty Interrupt As described the USART can generate interrupt if the data register is empty. The interrupt could be enabled setting the Data Register Empty Interrupt Enable(UDRIE0) .  The USART Data...

The Usart Bla bla bla: Interrupt 2 #10 1

The Usart Bla bla bla: Interrupt 2 #10

Interrupt from the USART Before to speak about the interrupts implementation of the USART, I want to say a little bit regarding the “Interrupts” and then it will follow by a description of the...

The Usart Bla bla bla: Interrupt 1 #9 0

The Usart Bla bla bla: Interrupt 1 #9

  Frame format The frame formats supported by the Atmega is the standard UART frame format, specifically it accepts all 30 combinations of the following as valid frame formats:  1 start bit  5, 6,...