Рет қаралды 134
Summary of the learning outcomes of Lab 6 in our course - much too long and it ended up being the 2nd take this evening...
00:30 the 16x2 character LCD module and the connections to the ATmega328
04:35 the LCD library by Peter Fleury
Project 2: UART
07:00 the code for UART communication
08:30 including local libraries in Microchip Studio
10:50 init()
12:50 the hidden interrupts inside UART library by Peter Fleury
14:20 main()
17:50 sprintf()
23:30 switch bouncing and software de-bouncing
28:45 USB logicanalyzer and Sigrok/Pulseview
30:10 UART communication, bit-by-bit
3240 using the external interrupt INT0
33:40 EICRA and EIMSK
42:40 choosing low-state interrupt and getting a stalled system
Project 3: I2C and real-time clock
44:50 the DS1307 on the RTC module
50:30 the code template
51:15 the global declarations, BCD (de)coding
54:20 fall-back time values
56:20 I2C read and write functions
1:00:50 I2C in the datasheet of the DS1307
1:02:00 init()
1:04:05 main()
1:04:50 sprintf() again
1:08:00 compile, warnings and upload
1:10:00 setting the clock
1:16:00 I2C communication, bit-by-bit