Device Firmware - PowerPoint PPT Presentation

1 / 7
About This Presentation
Title:

Device Firmware

Description:

4 LEDs. 2 Potentiometers. 2 Push buttons. LCD Display. Design Components ... Using jumper wires to connect components such as LEDs, Push buttons and the Potentiometer. ... – PowerPoint PPT presentation

Number of Views:29
Avg rating:3.0/5.0
Slides: 8
Provided by: Bri8180
Category:
Tags: device | firmware | leds

less

Transcript and Presenter's Notes

Title: Device Firmware


1
Device Firmware
2
PSOC Components
  • The M8C core contains
  • An 8-bit processor with flash memory
  • Analog blocks that contain the Analog to digital
    converter
  • Digital blocks to implement any additional logic
    needed
  • Additional relevant components on board includes
  • 4 LEDs
  • 2 Potentiometers
  • 2 Push buttons
  • LCD Display

3
Design Components
  • The steps necessary in implementing the design
    include
  • Using the Device Editor in the PSOC designer to
    setup the hardware.
  • Using jumper wires to connect components such as
    LEDs, Push buttons and the Potentiometer.
  • Writing code in C and or assembly to control the
    hardware itself as well as to coordinate
    communications with the controlling computer.

4
Setting Up Hardware in the PSOC Designer
5
Setting Up Hardware in the PSOC Designer
  • Hardware setup is done using the Device Editor
    tool in the PSOC Designer.
  • This involves
  • Specifying what modules to include in the user
    module selection view.
  • Connecting the components, blocks and buses in
    the interconnect view
  • Specifying port properties. Eg names of pins, the
    type of connection, whether driven hi or low.

6
Writing Firmware in the PSOC Designer
  • Generate Application tool in the Device Editor
    creates some of the libraries necessary to
    control certain hardware components, eg the LCD
    display ADC.
  • It maybe necessary to write additional code in
    assembly to control components like LEDs and
    reading push buttons. Tasks like debouncing the
    button is taken care of in these codes.
  • - All the above functions are called from a main
    function, which also coordinates data acquisition
    and storage and communications with the computer.

7
Modifications Made to Existing Examples
  • Some of the port set-ups in the hardware editor
    had to be modified.
  • This also required modification of register
    addresses in the assembly code as well as some of
    the code itself.
  • Much modifications were necessary in the main
    function and additional called functions to
    enable desired functionality as well as USB
    communications.
Write a Comment
User Comments (0)
About PowerShow.com