Microchip: AVR Assembly Web Documentation
2017-2018 TEI4M: AVR Optimization (Blogs: EM)
Session 6: PID (Jasper)
Session 5: AVR Assembly: DC Fan Project
CLASS REFERENCE CONCEPTS PROJECTS SUPPLEMENTARY
65/76
May 3
Accessing 16-bit Regs

Presentations of Flex Circuits
(ANOTHER INTENSE CLASS)
Assembly Task #40
: The DC Fan
PART E: TACH Wire (Demodulation of PWM)
Gammon on Counting Pulses
5e
Inp. Cap. &TIMSK1
64/76
May 1

Long ISP Work Period
5e
Timer1 Regs

63/76
Apr 27

(ANOTHER INTENSE CLASS)
Assembly Task #40
: The DC Fan
PART D (Continued): Fan Speed (ADC)
5d

62/76
Apr 25
Mariano's Reflow Oven

Flex PCBs have arrived: Now the fun starts ...

!! Capture video of your soldering for your ER !!
5d

61/76
Apr 23

Please Read: Soldering Flexible Circuits
Whizoo: Controleo3 Reflow Oven Controller
Controleo3 Controller
Long ISP Work Period

( Interrupted by a sushi banquet :)


60/76
Apr 19

(INTENSE CLASS)
Assembly Task #40
: The DC Fan
PART D: Fan Speed (ADC)

A Terrific ADC Example: Theremin

2016/2017 Challenge 4: Analog-to-Digital Conversion
DIDR0


59/76
Apr 17

Long ISP Work Period
Familiarize yourself with the SMD version
of your microcontroller by sussessfully flashing
the Blink Sketch


58/76
Apr 13
Mariano's Reflow Oven

Assembly Tasks #40: The DC Fan
PART C: PWM Design
Click on the DC Fan PWM/Tach Scope Trace to the right
captured by T. Morland

Microchip AVR Assembler: #define preProcessor (macros)

Timer2 CRs

4-Wire Fan Trace

57/76
Apr 11

Sunon 12V DC Fan Datasheet
Assembly Task #40
: The DC Fan
PART B: Hardware Design and PART C: PWM Design with ADC
Timers.xlsx, TIMER CALC
Timer2 Prescalers


Timer 2 Modes

56/76
Apr 9



Long ISP Proposal Due
Submit FlexPage.zip file
RSGC ACES: Common Flex Page Parts
Flex/Long ISP Work Period #2
SMDs: (1307, 595, 7-seg,...)
In class: Group order of Flex page Circuits

Soldering Powerfilm
30a, 5c, 6b

>>>>>>>>>>>>>>>>>MONDAY APRIL 9<<<<<<<<<<<<<<<<<<<<
LONG ISP: (8 week) Apr-May; Proposal Due
ALSO
FlexPage.zip sent to handin by the start of class (Group Order)

55/76
Apr 5

Assembly Tasks #40: The DC Fan
Getting Acquainted and Hardware Design

Timer 2 Modes

30a, 5b, 5c
57/76
Apr 3

Flex Page Proposal Due
Flex Page 1. Discussion and Initial Work Period
RSGC ACES: Common Flex Page Parts
RSGC ACES:
Common
Flex Page
Parts

30a, 5a
56/76
Mar 28

MEDIUM ISP Presentations: TM, SC
Assembly Tasks #40: The DC Fan
Sunon 12V DC Fan Datasheet
Partial Parts (12V, fan, pot, index card, paperclip, tape)
  5a
55/76
Mar 26
The MPT3.6-150 Solar Module, (Specs)
Pro SMT
Hand Soldering
:
Part 1
, Part 2
Flex Page 1. Discussion and Initial Work Period
A. Elder's (ACES '17) Flex Page Circuit: Infrared Receiver
Practice: SMT Soldering of DC Breakout Board

PB's SMT Soldering of his DC Power Breakout Board


MARCH BREAK
Session 4: AVR ALP: Interrupts: Peripherals and Timer Overflow Modes (Normal, CTC)
CLASS REFERENCE CONCEPTS PROJECTS SUPPLEMENTARY
54
Mar 8
Isometric
Graph Paper
MEDIUM ISP Presentations: EM, ASP, OL,DD 20c, 20d  
53
Mar 6

 

MEDIUM ISP Presentations: EP, JS (Premium) 20c, 20d  
52
Mar 2
Good Piezo Overview

tone() Emulation (Day 2): Light it up!
MSGEQ7 Frequency Bands:
63Hz, 160Hz, 400Hz, 1kHz, 2.5kHz, 6.25kHz, 16kHz
(pitches.h)

Timer 2 CTC Mode
51
Feb 28


Lab: Tone() Output Using the Arduino
Resistor Interpreter: Excel's VLOOKUP() Function
Common Waveforms


Arduino's tone() function
tone() Emulation (Day 1): Light it up!
Timer2 Regs
Timer 2 Modes
50
Feb 26

ISP Work Period

MSSCSA: Single Chip Spectrum Analyzer
49
Feb 22
Ken Shirriff's Blog:
Secrets of Arduino PWM

AVR Timers
Application Note
Timers.xlsx, Excel VLookUp() Function Timer2 Prescalers


48
Feb 20
  ISP Work Period
   
Feb 15
Grade 9 Soldering Sessions (Day 3):
Period 1: T. Morland, S. Knezevic
Period 3: A. Hodgson, J. Corley, ?
Feb 14
Grade 9 Soldering Sessions (Day 2):
Period 2: ASP
Period 4: EP, ASP, DD, EM
46
Feb 12
  ISP Work Period 20b
45
Feb 8
ISP Previews

From Mr Elia...
"The Tesla going to the asteroid belt between
Mars and Jupiter has this PCB lettering...
"
*Made on Earth By humans*
20b
44
Feb 6
  ISP Work Period 20b
43
Feb 2

Audio Frequency
Ken Shirriff's Blog:
Secrets of Arduino PWM

Timer and Interrupt Etiquette
(explains the role of the volatile keyword)

Base frequency of Arduino's analogWrite(pin,dutyCycle)

Exercise: Timers as Audio Frequency Generators


Jackson's Triad Video:


Persistence of...
...Hearing
?


(Captions welcome:)

42
Jan 31
Application Note:
AVR Timers
Timer 1. Normal Mode
HobbyElectronics: AVR Timer Interrupts
MaxEmbedded: Introduction to AVR Timers
SlidePlayer
: Timers and Interrupts
AVR-gcc: Expressions and Operator Precedence
Handout: Timer1NormalModeINO.docx
Acquire: prescalers.h
Timer1 Modes
Timer1 Regs
41
Jan 29
  Medium ISP Work Period 2
Guest: Mark Mitchell (ACES '09, Queens' Eng. '13)
20b
 
40
Jan 25
Interrupts
4-Wire
PWM-Controlled Fans
Timer Interrupts: High-Level Application (your ISPs?)
Timer-Based Resources:
delay(), millis(), microseconds(), Servo, Tone
Arduino Library: TimerOne
TimerOne Source: TimerOne.h, TimerOne.cpp
TimerOne Examples: Interrupts, FanSpeed
328P Int. Vecs.

39
Jan 23
Gray Code Challenge Videos
OL, EM, TM, EP, JS, ASP
Challenge 2: Gray Code Review
External Interrupt Show&Tell
Medium ISP Work Period 1

38
Jan 19
iom328p.h
out vs sts
Register Summary
External Interrupt Work Period
Activity: Bargraph Position [17/18]
(Capabilities required for next Challenge)
sleep, AVR Low Power Sleep Modes
Brief AVR Sleep Mode Summary
AVR Datasheet: Sections 10.1 & 10.3

External Interrupts
Another
AVR sleep Blog
3b
Inspiring video:
Low Power Arduino
Deep Sleep Tut.

37
Jan 17

List of Medium ISPs
Review of Assembly Challenge 2
Nick Gammon's (Comprehensive) Notes on Interrupts
(lots of examples)

Interrupts: External Interrupts
Activity: Bargraph Position [17/18]
328P Int. Vecs.


Session 3: AVR Assembly Language in ATMEL Studio 7
CLASS REFERENCE CONCEPTS PROJECTS SUPPLEMENTARY
36
Jan 15
Medium ISP
Proposal Due

Assembly Challenge 2 Deep Enrichment:
Fixed Point Math
Reciprocal Multiplication
20a, 3a
35
Jan 11

Review of Tuesday's Practice Challenge

(Here's where I got the graphic!)

Preparation for Monday's Live Challenge

Binary Manipulations
3, 20a
34
Jan 9
USC-Long Beach
AVR Problems


Further Viewing on Binary Codes
PoV: Dual 7-Segment Display
Practice Challenge


MEDIUM ISP (6 week): Jan-Mar; Proposal Due: Monday January 15
CHRISTMAS BREAK
33
Dec 19

BINARY NIBBLETS
[H.S. (Grade 5) suggested 2 bits be referred to as a nibblet:]
1. Quick Mental Binary to Decimal Conversion Algorithm
Weighted (Binary, BCD) vs Non-Weighted (Gray,XS-3) Codes
2. Gray Code
3. Binary to Gray Code Conversion
4. Gray Code to Binary Conversion
5. Shifting Bits beyond byte Boundaries


Binary Manipulations
3, 20a
32
Dec 15

Review of ShiftBar2.asm
Hex Digit Animation


31
Dec 13
AVR Tutorials:
Writing Subroutines
Assembler Directives
Review of Shift-Bar Exercise, Scope Trace of Shifting
Shift-Bar Exercise Alternative: Table of Values
(.def, .equ, .cseg. .dseg, .eseg, .org)
What did
JS, EP, & DD
have in common
last evening?

30
Dec 11
Register Summary, Ports, Stack (SP)
(Include file: iom328p.h)
Status Register (SREG), Flags
Shift Registers: Last Year
T. Morland's:
Shift Register - Bargraph Device


29
Dec 7
Root Finding
(Square) Root Finding: Recursive Bisection
?Bargraph Flasher 8, Bargraph Flasher 10


28
Dec 5
Vote on Grade 11 Cases, Review of Challenge 1
(Square) Root Finding: Iterative Bisection
Root Finding:
Bisection Method

27
Dec 1

Assembly Challenge 1
SC, DD, EM, TM, EP, JS, ASP

2
Nov 29 CLASS WIPED OUT BY SLEEP IN DAY
26
Nov 27
ATtiny 25/45/85
Register Summary
(Chapter 23)

Design Competition Voting
Counting bits, Power of 2, Binary Palindrome


25
Nov 23

Nibble equality

24
Nov 21
Using the Arduino IDE
with the ATmega16

Don't try this@home:Decapping ICs Multiples, Divisibility
Modulus
16/17 Challenges
23
Nov 15

Atmel Studio 6 Views: Code, I/O, Processor, Registers
Blog: Arduino Assembly/C Programming with ICE
Greater than 127

22
Nov 9

  Testing a Global Variable

Session 2: Introduction to AVR Hardware, Assembly Tools and Arduino Inline Assembly Language Programming
CLASS REFERENCE CONCEPTS PROJECTS SUPPLEMENTARY
21
Nov 7

Arduino's main.cpp
Maximizing the Arduino IDE and Assembly
Arduino Inline Assembly Tutorial
(Include file: iom328p.h)
Testing a Global Variable

20
Nov 3

Short ISP Presentations
SC, DD, OL, EM, TM, EP, JS, ASP (coming soon)

10d
19
Nov 1

Short ISP Presentations
10d
18
Oct 30

Soldering with the 6s

17
Oct 26

Please have your Traffic Light Inline Assembly Project
Working for the START of class!
RSGC ACES: Astable Multivibrator

Partial Soldering of Grade 6 Astable Multivibrators...


16
Oct 24
Lesson 11:

AVR Instruction Set (Summary)
(Online) Instruction Reference
Previous Instructions: ldi, out vs sts, eor

AVR Instruction Set (Full)
avr-as:
Integer Expressions (Arguments and Operators)


Traffic Light

15
Oct 20
Lesson 10:

ATMEL's AVR Assembly Home Page
vs
GNU Assembler
(avr-as Documentation)

Admission:



CPU Registers

14
Oct 18

Lesson 9:

AVR vs PIC (vs ARM-Cortex)
The History of AVR
(Online) AVR Product Selector, (Excel file)
ATmega328P Summary
PROGRAM:32K, SRAM(Ports&Data):2K, EEPROM:1K
Register Summary, Ports, Stack (SP)
(Include file: iom328p.h)
Status Register (SREG), Flags
Jack Gettings (ACES'11):

Super Project:
LED Scrolling Message
SHORT ISP (4 weeks) : Sep-Oct ( Component ) ( Options )
Session 1: TTL Processor
CLASS REFERENCE CONCEPTS PROJECTS SUPPLEMENTARY
13
Oct 16
  Short ISP Previews
10b  
12
Oct 12
  Short ISP Work Period
1c  
11
Oct 10
  TTL Processor Project 1 Presentation
1b  
10
Oct 5
  TTL Processor Project 1
Distribute Program and Control ROMs
1b  
9
Oct 3
  TTL Processor Project
Part 2 Build (Jackson Russett to Visit)
1b  
8
Sep 29
TTL Processor Project
Part 1 Build
1b  
7
Sep 27
Ken Shirriff's Blog:
74LS181 ALU
TTL Processor Project
Complete Table of Control Codes
Distribution of Boards & Chips
1b  
6
Sep 25
Ken Shirriff's Blog:
74LS181 ALU
TTL Processor Project
Tim's Presentations: (Addr & Accum) Registers, RS Latch
Review Feinberg's Suggested Three-Stage Project Development
Develop Table of Control Codes
1b
5
Sep 20
  Missed Class for 4: Work Period for others
   
4
Sep 18
Ben Eater's 8-bit Processor (2017)
Short ISP Logs
TTL Processor Project, IC Presentations

1a ViaCAD Reminder:
Cut vs Etch Layers
3
Sep 14
A. Turing's
Classic Paper

(The Imitation Game)
TTL Processor Project
What is meant by an Open Collector?
What is a Turing Machine?
10a
Short ISP
Proposals
due in class
2
Sep 12
TTL Processor:
Programming EEPROM
Productivity Incentive
SEP-OCT: Grade 6 TAs Required (Day 1:Period 4, first half only)
Short ISP: Yankee Swap, Short ISP Proposal
TTL Processor Project
10a
1
Sep 8
Student Outline
Mr. D's Timetable
How it all started...
(Jackson Russett's)
TTL Processor Project
ACES Hall of Fame: Mariano Elia ('15)
TTL Processor
For our second Field Trip of the year we have been invited to visit a factory that is developing solar panels. Since this device is an integral part of our Greenhouse Project this year, early familiarity with this technology will be advantageous.
What better way is there to start the year than with a walking field trip to acquire the electronic components that we will make good use of? You'll also be aware of its location for your own personal projects.
I have no formal training in electronics or electrical engineering - I'm just really interested in this field. The knowledge and skill I have has been largely acquired over the last few years from learning alongside many talented Georgians and I look forward to expanding my capabilities by working with you this year.
I ask six things of my ACES (for most other things I'm usually flexible):
1. Do not cheat.
2. Show respect for adult visitors that enter the DES by immediately stopping what you are doing, standing and facing the individual(s).
3. Show respect for the lab by not eating in the DES. You may go into the hallway for a quick bite if you need to.
4. Show respect for the lab's resources by not wasting or misusing them.
5. Show respect for others that use the lab by putting your projects away and leaving your bench area tidy when you leave.
6. Show respect for yourself by looking (and speaking) your best. It's the little things keep the doors of opportunity open.
Growing Success, p. 29
Responsibility, Organization, Independent Work, Collaboration, Initiative, Self-Reliant Growing Success. p.11.

It is worth noting, right from the start, that assessment is a human process, conducted by and with human beings, and subject inevitably to the frailties of human judgement.
However crisp and objective we might try to make it, and however neatly quantifiable may be our "results", assessment is closer to art than science.
It is, after all, an exercise in human communication.
Knowledge: Subject-specific content acquired in each course (knowledge), and the comprehension of its meaning and significance (understanding).
Thinking: The use of critical and creative thinking skills and/or processes, as follows:
Communication: The conveying of meaning through various forms, as follows:
Application: The use of knowledge and skills to make connections within and between various contexts.