Interrupt Serial Communications for Atmel SAM4S in C
This project was awarded to Tauseef240 for $100 USD.Get free quotes for a project like this
Project Budget$30 - $250 USD
Write a program to send and receive serial data using interrupts on the 2 uarts and 2 usarts of the Atmel SAM4S processor.
An easy job if you know these processors!
I have a SAM4S-EK kit to test the code on.
The code must be interrupt driven for receive and transmit.
The code must run in asynchronous mode (to allow RS232 communications).
The interface should be simple, like this
uart_init(uart_id, rx_buffer_size, tx_buffer_size, baud_rate);
send_byte(uart_id, b); // send byte into buffer for interrupt to transmit
available(uart_id); // check for received data
read_byte(uart_id); // get byte from receive buffer
A test should be written like this
uart_init(UART0, 100, 100, 9600);
uart_init(UART1, 100, 100, 9600);
uart_init(USART0, 100, 100, 9600);
uart_init(USART1, 100, 100, 9600);
int b = read_byte(UART0);
int b = read_byte(UART1);
int b = read_byte(USART0);
int b = read_byte(USART1);
Looking to make some money?
- Set your budget and the timeframe
- Outline your proposal
- Get paid for your work
Hire Freelancers who also bid on this project
Looking for work?
Work on projects like this and make money from home!Sign Up Now
- The New York Times
- Wall Street Journal
- Times Online