Differences

This shows you the differences between two versions of the page.

Link to this comparison view

pm:lab:lab1-2022 [2023/03/13 11:00]
alexandru.predescu [3.3 Utilizarea interfetei seriale de pe Arduino UNO]
pm:lab:lab1-2022 [2023/03/16 15:37] (current)
alexandru.predescu [4. Exerciții]
Line 174: Line 174:
     /* pune datele în buffer; transmisia va porni automat în urma scrierii */     /* pune datele în buffer; transmisia va porni automat în urma scrierii */
     UDR0 = data;     UDR0 = data;
 +}
 +
 +char USART0_receive()
 +{
 +  /* asteapta cat timp bufferul e gol */
 +  while (!(UCSR0A & (1 << RXC0)));
 +
 +  /* returneaza datele din buffer */
 +  return UDR0;
 } }
 </​file>​ </​file>​
Line 308: Line 317:
 </​solution>​ </​solution>​
 </​hidden>​ </​hidden>​
 +
 **Task 3** (4p) **Task 3** (4p)
  
Line 327: Line 337:
  
 </​note>​ </​note>​
 +
  
 **Bonus** (2p) **Bonus** (2p)
pm/lab/lab1-2022.1678698042.txt.gz · Last modified: 2023/03/13 11:00 by alexandru.predescu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0