Monday, May 27, 2019

Seminar Report P Soc 5

P SoC A Device Study SEMINAR REPORT Submitted in partial fulfillment of the requirement for the award of degree of unmarried man of Technology in ELECTRONICS AND communicating ENGINEERING of MAHATMA GANDHI UNIVERSITY By JINJU P. K (65232) discussion section of Electronics and Communication Engineering Rajagiri School of Engineering and Technology Rajagiri V all in alley, Cochin 682 039 2010-2011 DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING CERTIFICATE Certified that the seminar presented titled PSoC-A Device Study is a bonafide report of the seminar done by JINJU.P. K (65232) of eighth semester Electronics and Communication Engineering in partial fulfillment of the requirement for the award of degree of Bachelor of Technology in Electronics and Communication of the Mahatma Gandhi University, Kottayam, during the academic year 2010-2011. Project Guide Head of the Department RONI ANTONYASHA PANICKER Internal ExaminerExternal Examiner Place Kakkanad Date ACKNOWLEDGEMENT To discover, analyze and to present something new is to venture on an unknown path towards and unexplored destination is an punishing adventure unless one gets a true torchbearer to show the way. I would give up never succeeded in completing my task without the cooperation, encouragement and help provided to me by mingled people. Words are often too less to reveal my deep regards. I take this opportunity to register my profound sense of gratitude and respect to all those who helped me through the duration of this project. I acknowledge with gratitude and humility my indebtedness to Mr.Rony Antony , Lecturer, Electronics & Communication Department, RSET, under whose guidance I had the privilege to drop this project. I wish to express my deep gratitude towards him for providing individual guidance and keep throughout the project work. I convey my sincere thanks to Asha Paniker , Professor & Head of Electronics & Communication Department, RSET for her encouragement and cooperatio n. I would also like to thank all staff members and my co-students who were always there at the need of the hour and provided with all the help and facilities, which I required for the outcome of my project.My greatest thanks are to all who wished me success especially my parents. Above all I render my gratitude to the Almighty who bestowed self-confidence, ability and strength in me to complete this work for not letting me down at the prison term of crisis and showing me the silver lining in the dark clouds. ABSTRACT With a unique graze of configurable digital and parallel blocks, the Programmable System-on-Chip (PSoC) is a true corpse-levelsolution, offering a modern method of signal acquisition, processing, and control with exceptional accuracy, soaring bandwidth,and superior flexibility.Its analog might spans the range from thermocouples (DC voltages) to ultrasonic signals. Designerscan easily create systemlevel designs, development a rich library of prebuilt components, or custom verilog, and a schematic entry tool that uses the measuring rod design blocks. This seminar is based on the analog , digital , program and debug subsystems ofPsoC 5 device. . CONTENTS 1. trigger02 2. BLOCK DIAGRAM03 3. HARDWARE IMPLEMENTATION04 4. 1 IR TRANSMITTER CIRCUITRY. 04 4. 2 IR SENSOR CIRCUITRY07 4. 3 CIRCUIT DIAGRAMS15 4. SOFTWARE IMPLEMENTATION17 5. 4 MPELAB IDE17 . 5 PROGRAM25 5. PCB DESIGN28 5. 1 PCB SCHEMATIC.. 28 5. 2 PCB BOARD 29 6. RESULS & CONCLUSION31 7. REFERENCES32 APPENDIX 1. INTRODUCTION With a unique legions of configurable digital and analog blocks, the Programmable System-on-Chip is a true systemlevel solution, offering a modern method of signal acquisition, processing, and control with exceptional accuracy, high bandwidth, and superior flexibility. Its analog capability spans the range from thermocouples (DC voltages) to ultrasonic signals. PSoC 5 (CY8C55xxx, CY8C54xxx, CY8C53xxx,CY8C52xxx) families are fully scalable 8- poker chip and 32-bit PSoC platform devices that share these characteristics Fully fleur-de-lis, peripheral compatible comparable integrated development environment software blue performance, configurable digital system that supports a wide range of communication interfaces, such as USB, I2C, and CAN High clearcutness, high performance analog system with up to 20-bit ADC, DACs, comparators, opamps, and programmable blocks to create PGAs, TIAs, mixers, etc. Easily configurable logic array Flexible routing to all pins High performance, 8-bit single-cycle 8051 (PSoC 3) or 32-bit leg Cortex-M3 (PSoC 5) core . 1 OBJECTIVE * 8051 or Cortex-M3 Central Processing Unit (CPU) with a nested vectored break controller and a high performance DMA controller * some(prenominal) types of keeping elements including SRAM, forte, and EEPROM * System integration features, such as clocking, a featurerich power system, and versatile programmable inputs and outputs 2. TOP LEVEL ARCHITECTURE 2. 1 CPU strategy 2. 1. 1 PROCESSOR The PSoC 5 CPU subsystem is built around a 32-bit three stage pipelined ARM Cortex-M3 processor running up to 80 megacycle. The PSoC 5 pedagogy set is the same as the Thumb-2 instruction set available on standard Cortex- M3 devices.Three stage pipelining operating at 1. 25 DMIPS/MHz. This helps to increase proceeding speed or reduce power. * Supports Thumb-2 instruction set * The Thumb-2 instruction set supports complex operations with both 16- and 32-bit instructions * Atomic bit level carry and write instructions * Support for unaligned fund entrance money * Improved code density, ensuring efficient use of memory. * Easy to use, ease of programmability and debugging * Ensures easier migration from 8- and 16-bit processors * Nested Vectored Interrupt Controller (NVIC) unit to support interrupts and exceptions * Helps to achieve rapid interrupt response Extensive debug support including * Serial Wire Debug demeanor (SWD-DP), Serial Wire JTAG Debug Port (SWJ-DP) ? Break points ? Flash patch ? Instruction tracing ? order tracing 2. 1. 2 INTERRUPT dominance The CPU subsystem includes a programmable Nested Vectored Interrupt Controller (NVIC), DMA (Direct reminiscence Access) controller, Flash cache ECC, and RAM. The NVIC of both PSoC 3 and PSoC 5 devices provides low latency by allowing the CPU to vector turn toly to the first address of the interrupt swear out routine, bypassing the jump instruction required by other computer architectures. The PSoC 5 interrupt controller also offers a few advanced nterrupt management capabilities, such as interrupt tail chaining to improve stack management with multiple pending interrupts providing lower latency. Supports 32 interrupt lines * Programmable interrupt vector * Configurable priority levels from 0 to 7 * Support for dynamic change of priority levels * Support for individual enable/ disable of each interrupt * Nesting of interrupts * Multiple sources for each interrupt line (can be either f ixed function, UDB, or from DMA) * Supports both level trigger and pulse trigger * Tail chaining, late arrivals and exceptions are supported in PSoC 5 devices 2. 1. DMA CONTROLLER The DMA controller allows peripherals to exchange data without CPU involvement. This allows the CPU to run slower, save power, or use its cycles to improve the performance of firmware algorithms. * Uses the PHUB for data transfer * Includes 24 DMA channels * Includes 128 transaction descriptors (TD) * Eight levels of priority per channel * Transactions can be stalled or canceled * Each transaction can be from 1 to 64 KB * Large transactions can be broken into smaller bursts of 1 to 127 bytes. * Each channel can be configured to generate an interrupt at the end of transfer 2. 1. 4 CACHE CONTROLLERIn PSoC 5 devices, the flash cache also reduces system power consumption by reducing the frequency with which flash is accessed. The processor speed itself is configurable allowing for active power consumption tune d for specific applications. * Instruction cache * Direct mapped * 128 bytes total cache memory * Registers for measuring cache hit/miss ratios * demerit correction code (ECC) support * Error logging and interrupt generation * Designed to put flash into sleep automatically to save power 2. 2 MEMORY The PSoC non inconstant subsystem consists of Flash, bytewritable EEPROM, and nonvolatile configuration options.The CPU can reprogram individual blocks of Flash, enabling boot loaders. An Error Correcting Code (ECC) can enable high reliability applications. A powerful and flexible protection model allows the user to selectively lock blocks of memory for take in and write protection, securing sensitive information. The byte-writable EEPROM is available on-chip for the memory board of application data. Additionally, selected configuration options, such as boot speed and pin drive mode, are stored in nonvolatile memory, allowing settings to become active immediately after power on set ( POR). 2. 2. 3 NON VOLATILE LATCHA Nonvolatile Latch (NVL or NV latch) is an array of programmable, nonvolatile memory elements whose outputs are stable at low voltage. It is used to configure the device at Power on Reset. Each bit in the array consists of a volatile latch paired with a nonvolatile cell. On POR release nonvolatile cell outputs are loaded to volatile latches and the volatile latch drives the output of the NVL. FEATURES * A 48-bit NV latch for device configuration * A 48-bit Write Once NV latch for device security 2. 2. 4 SRAM PSoC 3 and PSoC 5 devices include on-chip SRAM. These families offer devices that range from 2 to 64 kilobytes.PSoC 3 devices offer an additional 4 kilobytes as a trace buffer. * unionized as up to three blocks of 4 KB each, including the 4 KB trace buffer, for CY8C38 family. * Organized as up to 16 blocks of 4 KB each, for CY8C55 family. * Code can be executed out of portions of SRAM, for CY8C55 family. * 8-, 16-, or 32-bit accesses. In PSoC 3 d evices the CPU has 8-bit direct access to SRAM. * Zero wait state accesses. * Arbitration of SRAM accesses by the CPU and the DMA controller. * Different blocks can be accessed simultaneously by the CPU and the DMA controller. 2. 2. 5 FLASH PROGAMMING MEMORYPSoC 3 and PSoC 5 include on-chip Flash memory. These two families offer devices that range from 16 to 256 kilobytes. Additional Flash is available for either error correction bytes or data storage. PSoC 3 and PSoC 5 Flash memory have the following features * Organized in rows, where each row contains 256 data bytes plus 32 bytes for either error correcting codes (ECC) or data storage. * For PSoC 3 architecture CY8C38 Family, organized as one block of 64, 128, or 256 rows. * For PSoC 5 architecture CY8C55 Family, organized as either one block of 128 or 256 rows, or as multiple blocks of 256 rows each. Stores CPU program and bulk or nonvolatile data * For PSoC 5 architecture CY8C55 Family, 8-, 16-, or 32-bit get wind accesses. P SoC 3 architecture has only 8-bit direct access. 2. 2. 6 EEPROM PSoC 3 and PSoC5 devices have on-chip EEPROM memory. These two families offer devices that range from 512 bytes to 2 kilobytes. * PSoC 3 and PSoC 5 EEPROM memory have the following features * Organized in rows, where each row contains 16 bytes * Organized as one block of 32, 64, or 128 rows, depending on the device * Stores nonvolatile data * Write and erase using SPC commands Byte read access by CPU or DMA using the PHUB * Programmable with a simple command/status register interface EEPROM memory provides nonvolatile storage for user data. EEPROM write and erase operation is done using SPC commands. It may be read by both the CPU and the DMA controller, using the PHUB. All read accesses are 8-bit. 2. 2. 7 EMIF PSoC 3 and PSoC 5 architectures provide an external memory interface (EMIF) for connecting to external memory devices and peripheral devices. The connection allows read and write access to the devices.The EMIF op erates in conjunction withUDBs, I/O ports, and other PSoC 3 and PSoC 5 components to generate the necessary address, data, and control signals. The EMIF does not intercept address data amongst the PHUB and the I/O ports. It only generates the required control signals to latch the address and data at the ports. The EMIF generates a clock to run external cooccurring and asynchronous memories. It can generate four different clock frequencies, which are the motorcoach clock divided by 1, 2, 3, or 4. The EMIF supports four types of external memory synchronous SRAM, asynchronous SRAM, cellular RAM/PSRAM, and NOR Flash.External memory can be accessed via the 8051 xdata space or the ARM Cortex-M3 external RAM space up to 24 address bits can be used. The memory can be 8 or 16 bits wide. 2. 3 SYSTEM WIDE RESOURCES 2. 3. 1 CLOCKING SYSTEM The clock system has these * Four internal clock sources increase system integration * 3 to 67 MHz Internal Main Oscillator (IMO) 1% at 3 MHz * 1 kHz, 33 kHz, 100 kHz Internal Low Speed Oscillator (ILO) outputs * 12 to 67 MHz clock doubler output, sourced from IMO, MHz External Crystal Oscillator (MHzECO), and Digital System * Interconnect (DSI) 24 to 67 MHz fractional Phase-Locked Loop (PLL) sourced from IMO, MHzECO, and DSI * DSI signal from an external I/O pin or other logic as well as a clock source * Two external clock sources provide high clearcutness clocks * 4 to 33 MHz External Crystal Oscillator (MHzECO) * 32. 768 kHz External Crystal Oscillator (kHzECO) for Real Time Clock (RTC) * Dedicated 16-bit divider for four-in-hand clock Eight individually sourced 16-bit clock dividers for the digital system peripherals * Four individually sourced 16-bit clock dividers for the analog system peripherals * IMO has a USB mode that auto locks to the USB bus clock, requiring no external crystal for USB. (USB equipped parts only) 2. 3. 2 POWER SUPPLY AND MONITORING PSoC 3 and PSoC 5 devices have separate external analog and digital supp ly pins, labeled respectively Vdda and Vddd. The devices have two internal 1. 8V regulators that provide the digital (Vccd) and analog (Vcca) supplies for the internal core logic.The output pins of the regulators (Vccd and Vcca) have genuinely specific capacitor requirements that are listed in the datasheet. These regulators are available * Analog regulator for the analog field of force supply * Digital regulator for the digital domain supply * Sleep regulator for the sleep domain * I2C regulator for powering the I2C logic * Hibernate regulator for supplying keep alive power for state belongings during hibernate 2. 3. 3 WATCH DOG TIMER The Watchdog Timer (WDT) circuit automatically reboots the system in the feature of an unexpected execution path. This timepiece must be serviced periodically.If not, the CPU resets after a specified period of time. Once the WDT is enabled it cannot be disabled except during a reset event. This is done to forestall any errant code from disabling the WDT reset function. To use the WDT function, the user is required to enable the WDT function during their startup code. The WDT has the following features * Protection settings to prevent inadvertent corruption of the WDT * Optionally-protected servicing (feeding) of the WDT * A configurable low power mode to reduce servicing requirements during sleep mode * A status bit for the watchdog event that shows the status even after a watchdog reset 2. . 4RESET POWER ON RESET Power on Reset (POR) is provided primarily for a system reset at power up. The IPOR will hold the device in reset until all four voltages Vdda, Vcca, Vddd, Vccd, are to datasheet specification. The POR activates automatically at power up and consists of An imprecise POR (IPOR) is used to keep the device in reset during initial power up of the device until the POR can be activated A precision POR (PRES) derived from a circuit calibrated for a very accurate location of the POR trip point. The power on RESET clea rs all the reset status registers watchdog RESETWatchdog Reset (WRES) detects errant code by causing a reset if the watchdog horologe is not cleared within the userspecified time limit. The user must always set the WRES initialization code. This was done to allow the user to dynamically choose whether or not to enable the watchdog timer SOFTWARE INITIATED RESET Software Initiated Reset (SRES) is a mechanism that allows a software-driven reset. The RESET_CR2 register forces a device reset when a 1 is written into bit 0. This setting can be made by firmware or with a DMA. The RESET_SR0 5 status bit becomes set on the occurrence f a software reset. This bit remains set until cleared by the user or until a POR reset. EXTERNAL RESET External Reset (XRES_N) is a user-supplied reset that causes immediate system reset when asserted. XRES_N is available on a dedicated pin on some devices, as well as a shared out GPIO pin P12 on all devices. The shared pin is available through a customer-p rogrammed NV Latch setting and supports low pin count parts that dont have a dedicated XRES_N pin. This path is typically configured during the boot phase immediately after power up. 3. CONCLUSION

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.