Chip Config & Drivers – Required Drivers:

Slides:



Advertisements
Similar presentations
Michael Madavane Russell McLoughlin. Plan Build a autonomous car, a GuideBot, that follows a set of directions to navigate an obstacle course Distance.
Advertisements

ELECTRONIC SYSTEMS NESI NanoRacks Embedded System Integration Board HARDWARE Functional Design.
By: Russ Butler ECE4220 Spring 2012 Dr. DeSouza May 2, 2012.
Serial I/O - Programmable Communication Interface
SPI Serial Peripheral Interface. SPI Serial Peripheral Interface is communication between two devices, one bit at a time sequential one bit at time over.
Autonomous Helicopter: James Lyden Harris Okazaki EE 496 A project to create a system that would allow a remote- controlled helicopter to fly without user.
Motor Control Lab Using Altera Nano FPGA
Hierarchy of I/O Control Devices
Gary MKIII University of Central Florida Chris Valle, Braden Urban, John Rowe, and Tyler Yoemans.
1 Homework Reading –Review previous material on “interrupts” Machine Projects –MP4 Due today –Starting on MP5 (Due at start of Class 28) Labs –Continue.
Initial Position Orientation Tracking System (IPOTS) Group Members: Keiichi McGuireHenry Pham Marc TakamoriScott Spiro.
Read Chapter 3 (David E. Simon, An Embedded Software Primer)
USART and Asynchrono us Communica tion The USART is used for synchronous and asynchronous serial communication. USART = Universal Synchronous/Asynchronous.
7-1 Digital Serial Input/Output Two basic approaches  Synchronous shared common clock signal all devices synchronised with the shared clock signal data.
MSP432™ MCUs Training Part 5: Digital Peripherals
Serial Communication ETEC 6416.
Critical Design Review 27 February 2007 Black Box Car System (BBCS) ctrl + z: Benjamin Baker, Lisa Furnish, Chris Klepac, Benjamin Mauser, Zachary Miers.
©Alex Doboli Chapter 3: Hardware and Software Subsystems of Mixed-Signal Architectures (Part II) Alex Doboli, Ph.D. Department of Electrical and Computer.
Universal Asynchronous Receiver/Transmitter (UART)
Embedded System Design Laboratory October 4, 2002Stanford University - EE281 Lecture #3#1 Lecture #3 Outline Announcements AVR Processor Resources –UART.
Purdue  Airbus Software Design Jigar Gandhi - John-Taylor Smith - Chandler Wall - Eric Zarowny.
Autonomous Helicopter James LydenEE 496Harris Okazaki.
Atmel Atmega128 Overview ALU Particulars RISC Architecture 133, Mostly single cycle instructions 2 Address instructions (opcode, Rs, Rd, offset) 32x8 Register.
Universal Asynchronous Receiver/Transmitter (UART)
Representing Numerical Data Analog Any signal that varies continuously over time Mechanical Pneumatic Hydraulic Electrical Digital Quantities are represented.
CSE466 Autumn ‘00- 1 What’s Coming  Hardware  Basic Filters and Noise Management  Serial Communications  Design Meeting  Move the quiz up to Monday.
ATtiny23131 A SEMINAR ON AVR MICROCONTROLLER ATtiny2313.
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Module #7 Assessment Quiz.
7 - 1 Texas Instruments Incorporated Module 7 : Serial Peripheral Interface C28x 32-Bit-Digital Signal Controller TMS320F2812.
By James Cockrell and Justin Loveless
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose:  This course provides an overview of the serial communication.
Hardware Needs 18F452 Main Controller CM8870 DTMF Decoder UART in PIC, MAX232 Serial Port Line Level Converter Amplifier for IR Detector Voltage feed into.
Microcontrollers JULES CALELLA. Microcontrollers vs Microprocessors  Microprocessors – do not contain RAM, ROM, I/O  Microcontrollers – The whole package.
Networked Embedded Systems Pengyu Zhang EE107 Spring 2016 Lecture 8 Serial Buses.
Tiva C TM4C123GH6PM UART Embedded Systems ECE 4437 Fall 2015 Team 2:
Case Study #1 Microcontroller System. What is a microcontroller? A microcontroller can be considered a self-contained system with a processor, memory.
Digital Logic Design Alex Bronstein
Application Case Study Christmas Lights Controller
Introduction to Microcontroller Technology
Homework Reading Machine Projects
Michael Rahaim, PhD Candidate Multimedia Communications Lab
Embedded Microcontroller Systems
Application Case Study Security Camera Controller
Serial mode of data transfer
“COMMAND PARSE” - A STATUS REPORT - Matt Smith Pallavi Khandelwal
Microcontrollers, Basics Fundamentals of Designing with Microcontrollers 16 January 2012 Jonathan A. Titus.
Environment Temperature Monitor
EE 107 Fall 2017 Lecture 5 Serial Buses – UART & SPI
SCADA for Remote Industrial Plant
Chip Configuration and Drivers – Status Report
SERIAL PORT PROGRAMMING
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
ECE477 MIDTERM DESIGN REVIEW: TEAM #08
Homework Reading Machine Projects Labs
Atmega32 Serial Programming Basics
Subject Name: Microcontroller Subject Code: 10ES42
This chapter provides a series of applications.
Computer Organization and Design
Introduction to Microprocessors and Microcontrollers
Serial Communication Interface
UART Protocol Chapter 11 Sepehr Naimi
Преглед Начин функционисања Имплементације
Lecture 8: Modems (Converts analog signals to digital and vice-versa) 1nd semester By: Adal ALashban.
CHAPTER SERIAL PORT PROGRAMMING. Basics of Serial Communication Computers transfer data in two ways: ◦ Parallel  Often 8 or more lines (wire.
PIC Serial Port Interfacing
8051SERIAL PORT PROGRAMMING
PIC Serial Port Interfacing
Embedded Sound Processing : Implementing the Echo Effect
Introduction Communication Modes Transmission Modes
Presentation transcript:

Chip Config & Drivers – Required Drivers: Software UART to send/receive packets to/from UHF/VHF radio. USART0 SPI Driver for SD Card – Driver that the FAT32 file system will use the read and write data to the SD Flash Card. (need to turn off when so it doesn’t listen to I2C) Flight Computer Comm. – Driver that will do communication between Flight Computer and Electrical Power System. (I2C) I2C Comm. between RTC and WDT on System Support Module – Driver that will send and Receive I2C packets to RTC and WDT. (need to enable) I2C Comm. between Flight Computer and UHF/VHF Radio – Driver will send/receive packets to/from UHF/VHF Radio via I2C. USART1 S-Band Radio Comm. – Driver that will send/receive packets to/from the S-Band Radio. (UART) Heat On – Driver will turn the Heater on for various reasons. Will use a GPIO (Does this driver need to worry about battery voltage?) Function (Input from System Support Module) – Use 3 GPIO. (Future communication scheme) Off Vcc (Input from System Support Module) – Use a GPIO. Antenna Deployment Signal – Driver that will deploy antenna, use 2 GPIO. Camera On – Driver that will power on the camera, use a GPIO. Analog Audio to UHF/VHF Radio – Driver will output analog signal to radio. (Up call in ISR at 8kHz)

Current Status Working Driver(s) Driver(s) in the pipeline SW UART I2C Buffered receive and transmit FIFO buffers Driver(s) in the pipeline I2C Uart0 Uart1

SwUartTxDriver - Design Tx Ring Buffer Tx FSM Diagram Key old new State output If no char in buffer Idle A Stop high Start Low St0 bit0 St7 bit7 If char found in buffer St6 bit6 St1 bit1 ASCII characters are removed from Tx ring buffer bit by bit. St5 bit5 St2 bit2 St4 bit4 St3 bit3

SwUartTxDriver - Functions ubyte SwUartTxCheckBuff(void) Function used to get the status of the Tx FIFO ring buffer used void SwUartTxPutC(ubyte inchar) Function Used to insert characters into the Tx FIFO ring buffer If buffer is full function will spin until the ISR has taken a character out of the Tx FIFO ring buffer void SwUartTxPutS(ubyte *instr) Function used to put a character string into the Tx FIFO ring buffer Function makes multiple calls of SwUartTxPutC void IsrSwUartTxBitShift(void) Function to implement the Tx FSM within the Timer_A ISR to shift out the bit of each character Function will be called every 4800 baud half bit time within ISR

SwUartRxDriver - Design Rx Ring Buffer Key Rx FSM Diagram old State output new While no input Idle A Stop high Start Low St0 bit0 St7 bit7 When ISR is made St6 bit6 St1 bit1 ASCII characters are inserted into the Rx ring buffer bit by bit. St5 bit5 St2 bit2 St4 bit4 St3 bit3

SwUartRxDriver - Functions ubyte SwUartRxGetC(void) Function used to get a character out of the Rx FIFO ring buffer Function will return character if one is present and return NULL_UBYTE if the buffer is empty ubyte SwUartRxCheckBuff(void) Function used to get the status of the Rx FIFO ring buffer used ubyte SwUartRxPutC(ubyte inchar) Function used by ISR to put characters in the Rx FIFO buffer Function will return one of the following values: SWUART_RXBUFF_ERRORFULL, SWUART_RXBUFF_NOERROR void SwUartRxStart(void) Function used by Port2 ISR to start Rx FSM void IsrSwUartRxBitTake(void) Function implements FSM to shift in bits to receive a single character and put character into buffer Function will be called every half bit time at 4800 baud within ISR

TESTING Development board was hooked up to a Terminal Software, SW UART was made to echo what was sent to it. Also, multiple characters were sent and the SW UART echoed back the entire packet after \r. Packet Rx/Tx has been tested using SW UART without any problem with the driver.

Hardware Map Timer A : TMRA3 19200 Hz interrupts (4800 baud generation at 4x for signal pseudo-sync) Software UART Receive 1200 Hz interrupts (1200 baud generation for signal pseudo-sync) Software UART Transmit Timer B : TMRB7 8000 Hz interrupts Analog Audio 100 Hz interrupts OS Tick Sensor Acquisition* Analog to Digital Converter : ADC12 Analog audio in 8 bit samples Digital to Analog Converter : DAC12 Analog audio out Receiver/Transmitter One : USART1 UART MHX Radio @ [ 115200 | 56000 | 9600 | 1200 ] Port Interrupts Software UART Receive Sync DTMF Valid Signal* Supervisor Serial Interface (Currently Undefined)* Receiver/Transmitter Zero : USART0 UART Camera at [ 115200 | 38400 | 9600 ] baud (others available) SPI SD Flash Mass Storage (Unknown max flash speed. Test at uC max and backoff as necessary.) I2C Speed Max @ 400khz by spec. Drive at [ 200k | 100k | 50k ]. Devices Camera Temperature Radio TX/RX/AMP Binary Power Control Radio TX Current Radio RX Current Power System

FUTURE I2C, Uart0 and Uart1 drivers are in progress (80%) done. Buffers have been written for USART1 and USART0 in UART mode. SPI drivers under research and conversation. Looking at file system calls to drivers so they can be integrated.