Access Millions of academic & study documents

A) Complete the UART init function to configure USART1 to satisfy th

Content type
User Generated
Showing Page:
1/2
a) Complete the UART_init function to configure USART1
to satisfy the following. (4pts)
i) 38,400 Baud rate
ii) 2 stop bit
iii) odd parity
iv) 8 data bits in a frame
iv) enable interrupt that indicates when a byte has been
received by USART1
v) do NOT enable transmission
v) Double data rate mode
vi) Asynchronous Mode
UART_init
{
}
b) Complete the code below to convert any lower case
ASCII charters received on USART1 to upper case. All
other data should remain unchanged (i.e. only convert a -
z). Additionally, every time 50 data bytes are received,
these 50 bytes (in uppercase form if appropriate) should
be printed to the LCD screen using lprintf(). (6 pts)
Note: Assume all required .h file have been included.
Note: Add any variables that you wish
// Global variables
// Convert lower case characters to uppercase
ISR( FILL IN VECTOR NAME)
{
}
// Each time 50 data bytes are received on USART1, print
the
// 50 bytes to the LCD screen using lprintf
main
{
}

Sign up to view the full document!

lock_open Sign Up
Showing Page:
2/2

Sign up to view the full document!

lock_open Sign Up
Unformatted Attachment Preview
a) Complete the UART_init function to configure USART1 to satisfy the following. (4pts) i) 38,400 Baud rate ii) 2 stop bit iii) odd parity iv) 8 data bits in a frame iv) enable interrupt that indicates when a byte has been received by USART1 v) do NOT enable transmission v) Double data rate mode vi) Asynchronous Mode UART_init { } b) Complete the code below to convert any lower case ASCII charters received on USART1 to upper case. All other data should remain unchanged (i.e. only convert ‘a’ ‘z’). Additionally, every time 50 data bytes are received, these 50 bytes (in uppercase form if ...
Purchase document to see full attachment
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Studypool
4.7
Indeed
4.5
Sitejabber
4.4