#avr Logs

Mar 28 2022

#avr Calendar

04:20 AM cehteh: haha
04:59 AM specing_ is now known as specing
11:22 PM WormFood: https://www.menie.org/georges/embedded/ <-- In this 1st function (_inbyte), can anyone explain what is going on with that 1st line of code? I can find no reference to readw or URX1, in relationship to the AVR family of MCUs. I have several common avr serial libraries, and can not find this anywhere in them.
11:23 PM WormFood: That line should be testing to see if a character is waiting in the USART for reading, but I'm clueless as to what exactly they're doing? (the solution does not matter, I'm just trying to expand my knowledge by trying understanding something new)
11:26 PM WormFood: I think I got it mostly figured out. That URX1 is a reference to a different CPU (not an AVR), so that makes sense I couldn't find it in relationship to the AVR.
11:28 PM WormFood: and, after reading the datasheet for that cpu, I got it all figured out. Rather odd. The data register for the UART is 16 bits wide....the extra 8 bits are their status bits. so 0x0200 checks to see if the data is valid. (I didn't notice it wasn't an AVR when I asked my question)
11:34 PM qu1j0t3: WormFood++