TECH 4234
Microprocessor Interface Technology
Fall 2021

Instructor Info

Daniel Kohn
Email: dekohn@memphis.edu
Office ET218
Phone: 678-4515
Office Hours

Course Info

Course Policies
Covid Statement
GradeWatch Access

Assignment Submission

Submit Assignments

Required Text

The AVR Microcontroller and Embedded Systems Using Assembly and C: Using Arduino Uno and Atmel Studio by Sarmad Naimi and Muhammad Ali Mazidi 2nd Ed

Author's Website http://nicerland.com/

Required Software

Microhip Studio (Formerly Atmel Studio 7) - note: "Download Microchip Stuido button does not seem to work, scroll down to "Downloads and Documents"
Arduino IDE (for avrdude utility)
Putty

Course Outline:

DateTopicReadingHandoutsAssignments
Aug 23Welcome
Install Microchip Studio and Arduino
   
Aug 25Sync SerialSync Serial FundamentalsLecture
Review Chp 10
Lab #1 - Write a program to read a magnetic card (credit card). The data sheet for the card reader is available HERE. Info on the data format is available HERE. Most credit cards use ANSI/ISO BCD Data Format. CLICK HERE for a sample waveform.
Aug 30Work on Lab #1   
Sep 1 |   
Sep 6No Class (Labor Day)   
Sep 8Finish Lab #1   
Sep 13UART/USARTBasics of UART Communication

UART

Asynchronous Serial (Hackaday)
Uart Lecture
Chp 11
Lab #2
Sep 15No Class or Lab  Work on Lab #2
     

Reference Links:

ATmega328P Website
ATmega328P / Arduino pinout
C Quick Reference

Tutorialspoint C Programming

VT100 Escape Codes

C Style Guides

Rigol Digital Oscilloscope - 2000 Series
• (note: to use USB Stick, it MUST be formatted as FAT32)

Arduino Ethernet Shield 2
WIZ5500 IC
Real Time Clock (BOB 12708)
16x2 SerLCD
ADXL345 Tripple Axis Accelerometer
Transceiver (nRF24L01+)
Wifi Module (ESP8266)
Bi-Directional Logic Level Converter


Info needed for Labs

Determine Com Port

With Arduino plugged in to computer's USB port
Win 10 - Search for "Powershell" and open
Type - "Get-WMIObject Win32_SerialPort" (no quotes)
check results for Arduino Uno (Com __ )

Atmel Studio

Setup Strings:

C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avrdude.exe

-C "C:\Program Files (x86)\Arduino\hardware\tools\avr\etc\avrdude.conf" -p atmega328p -c arduino -P COM7 -b 115200 -U flash:w:"$(ProjectDir)Debug\$(TargetName).hex":i"

Atmel Studio add ins:

Microchip Gallery

Go to above link then search for "Microchip Gallery". Click on "Download" on left side of screen and run the downloaded file (if Atmel Studio was opened when you did this, close and reopen Atmel Studio). This should now allow Atmel Studio access to plugins (TOOLS | Extensions and Updates). It is suggested in go ahead and install "Terminal for Atmel Studio"

To get printf to work with floating point values:

Project | nameofproject Properties | Toolchain : AVR/GNU Linker | General | Check "Use vprintf library(-Wl,-u,vfprintf)"
Project | nameofproject Properties | Toolchain : AVR/GNU Linker | Miscellaneous | Other Linker Flags put into textbox | "-lprintf_flt" (leave off quotes).