[go: nahoru, domu]

Skip to content

CaCuCkA/psoc

Repository files navigation

Lab work 4: Tasks -- flashing LEDs, transmission via UART, etc.

Team: Yakovkin Mykola

Prerequisites

  • PSoC CREATOR v4.2
  • PuTTY
  • Git

Compilation

     1. Open PSoC Creator v4.2
     2. Open in program your project file LABs.cywrk
     3. Choose project which you want to check

     4. Connect your PIONEER KIT to computer

Note

If want check 2.7, 3.1 and 3.2 you should also connect Multi-function Shidle to your PIONEER KIT

     4. Program your board and check the result

Installation

      PSoC CREATOR V4.2

               1. Follow the link
               2. Find and download file - PSoCCreatorSetup_4.2_es100_b641.exe

      PuTTY

               1. Follow the link
               2. Select which system you want to download the app for

Usage

  1. 1.1 - 1.3 - Our program works with lights, so all changes must be linked to this LED


  2. 2.7 - Our program works with 4 digit 7-segment LED display module.


Note    The SW2 button can be found here



  1. 3.1 - 3.2 - Our program works with 4 digit 7-segment LED display module and PuTTY

Attention! How we should set up PuTTY?

  1. Open you PuTTY and set Serial mode



  2. Set your COM port


  3. To find your COM port you should open Device Manager


    If you can't find it, check your settings to see if you have turned off hidden files


Results

During this practical exercise, we learned how to control the LED, control its saturation and build the flicker. We learned how to work with the 4 digit 7-segment LED display module and how to output negative numbers and floating point numbers. We learned how to use the buttons and how to communicate with our board via computer.

Additional tasks

  • Additional task: change the brightness of the LEDs using PWM (PWM) - 2 points.
  • Additional task: Modify the number output function to output fixed-point numbers -- 2 points.
  • Additional task: add support for outputting floating-point numbers -- 1 point.