Lab GPIO_35 GPIO

Similar documents
mbed祭りMar2016_プルアップ.key

SWEST2016.key

Capsense Univ. Workshop

Nios II 簡易チュートリアル

quattro.PDF

プロセッサ・アーキテクチャ

Microsoft PowerPoint - timer_pwm2.pptx

SERVIS Multi

Merging と AES67 ディバイスの設定

Introduction Purpose This training course demonstrates the use of the High-performance Embedded Workshop (HEW), a key tool for developing software for

CY8CKIT-049使い方

PRIMERGY 環境設定シート

HA8000シリーズ ユーザーズガイド ~BIOS編~ HA8000/RS110/TS10 2013年6月~モデル

Introduction Purpose This training course describes the configuration and session features of the High-performance Embedded Workshop (HEW), a key tool

エクセルソフト株式会社 WinDriver PCI 5! WinDriver 1. DriverWizard 2. DriverWizard WinDriver 1. Windows 98/Me NT/2000/XP Windows CE/CE.NET Windows Server 2003 Lin

untitled

A Responsive Processor for Parallel/Distributed Real-time Processing

Nios II ハードウェア・チュートリアル

MAX IIデバイスのIEEE (JTAG)バウンダリ・スキャン・テスト

ESP32-KEY-KIT-R1 (ESP-WROOM-32 ) Copyright c 2

フリーセルプロの使い方

HA8000-bdシリーズ RAID設定ガイド HA8000-bd/BD10X2

Microsoft Word - Lab110131b.doc

TOPLON PRIO操作手順


WinDriver を使用して、簡単にデバイス ドライバを作成

PSoC5LP で USBMIDI 2015/5/23 第 2 回 PSoC まつり (Sat) 於 本サイプレス本社 ( 中野 ) PSoC5LP で USBMIDI ectoyfan ectoyfan アラフィフ ( 電 回路玩具ファン ) Electronic Circui

Beryll Beryll Cyclone V GX FPGA FPGA ROM...

スライド タイトルなし

FreeBSD 1

EVBUM2149JP - 静電容量タッチセンサ用容量デジタルコンバータLSI評価キット取扱説明書

Cyclone IIIデバイスのI/O機能

PowerPoint プレゼンテーション

Introduction Purpose This course explains how to use Mapview, a utility program for the Highperformance Embedded Workshop (HEW) development environmen

XC9500 ISP CPLD JTAG Port 3 JTAG Controller In-System Programming Controller 8 36 Function Block Macrocells to 8 /GCK /GSR /GTS 3 2 or 4 Blocks FastCO

HardCopy IIデバイスのタイミング制約

R1RW0408D シリーズ

WinDriver PCI Quick Start Guide

Microsoft Word - PIVマニュアル.doc

DocuWide 2051/2051MF 補足説明書

1

sx2000series_operate_j

DV-RA1000HD_Jpn(b)

Promise FastTrak100 Japanese Manual

Revision

NL-22/NL-32取扱説明書_操作編

DL1010.PDF

B1 Ver ( ), SPICE.,,,,. * : student : jikken. [ ] ( TarouOsaka). (, ) 1 SPICE ( SPICE. *1 OrCAD

Express5800/R320a-E4/Express5800/R320b-M4ユーザーズガイド

スライド 1

Cleaner XL 1.5 クイックインストールガイド

MAX11014 EV.J

N Express5800/R320a-E4 N Express5800/R320a-M4 ユーザーズガイド

Express5800/R320a-E4, Express5800/R320b-M4ユーザーズガイド

microSTATION Operation guide

MINI2440マニュアル

プリント

Łñ“’‘‚2004


SOPC Builder ペリフェラル 簡易ユーザ・ガイド - PIO (Parallel I/O)

Unidirectional Measurement Current-Shunt Monitor with Dual Comparators (Rev. B

main.dvi

1 142

Word 2000 Standard

Version1.5

本機をお使いの方へ

テストコスト抑制のための技術課題-DFTとATEの観点から

実習内容 PIC18C242 のポート B に接続した LED を点滅させます ( 他の実習と同じ内容です ) 8 個の LED に表示される値が +3 ずつインクリメントします MPLAB を使って MPASM アセンブラのソース ファイルをアセンブルします MPLAB とソース ファイルは配布し

R1RW0416DI シリーズ

Nios® II HAL API を使用したソフトウェア・サンプル集 「Modular Scatter-Gather DMA Core」

Express5800/320Fc-MR

MAP2496.PDF

2. Available Hardware 内の Ludl MAC2000/5000 を選択し Install >> をクリックします Installed Devices へ Ludl MAC2000/5000 が登録されます Installed Devices に表示される内容は MAC5000

SS_kinou_hyou1_4_BP

LTC ビット、200ksps シリアル・サンプリングADC

Microsoft Word - SMC移行ガイド_ doc

IP1_ug.book

A 既製のプロジェクトがある場合

アプリケーションノート AS-E402サンプルプログラム

Version1.4

midicontrolsurfaces60_J.book

owners.book

CM1-GTX

困ったときのQ&A

RT300i/RT140x/RT105i 取扱説明書

01/DSP-R995 (01-33)

takemon_A5

MicroBlazeのチュートリアル

Quickstart Guide 3rd Edition

if clear = 1 then Q <= " "; elsif we = 1 then Q <= D; end rtl; regs.vhdl clk 0 1 rst clear we Write Enable we 1 we 0 if clk 1 Q if rst =


III

TM-T88VI 詳細取扱説明書

ORB dac オーディオコントロールパネル 操 作 方 法 下 記 の ORB dac オーディオコントロールパネルをダブルクリックし Windows のサウンドコントロールの 設 定 または ASIO を 制 御 することができます 1 Windows サウンドコントロールの 設 定 ( Win

RT300/140/105シリーズ 取扱説明書

Microsoft Word - jpluginmanual.doc

Arria GXデバイスのIEEE (JTAG)バウンダリ・スキャン・テスト

IEEE (JTAG) Boundary-Scan Testing for Stratix II & Stratix II GX Devices

untitled

Transcription:

6,GPIO, PSoC 3/5 GPIO HW Polling and Interrupt PSoC Experiment Lab PSoC 3/5 GPIO Experiment Course Material 6 V2.02 October 15th. 2012 GPIO_35.PPT (65 Slides) Renji Mikami Renji_Mikami@nifty.com

Lab GPIO_35 GPIO

( C: PSoC5_Lab ) ( ) : PSoC_Lab_MasterXXXX Workspace ( ) Project ( ) Workspace Project 1 1 ( ) :

Workspace Workspace main.c Workspace 1. PSoC Creator 2. File Close Workspace Workspace 3. Advanced Workspace Create New Workspace

Workspace Workspace Current New Workspace Add to Current Workspace Workspace Create New Workspace Workspace

GPIO_35 GPIO (MPU ) (GPIO_35D) GPIO (MPU ) (GPIO_35P) GPIO (MPU ) (GPIO_35I) (GPIO_35D -> GPIO_35P ) GPIO_ D LED GPIO_ P / GPIO_35I LED GPIO_35D GPIO_35P (GPIO_35I) SW2 (P6_1) P0[5] LED SW2 (P6_1) P0[5] LED PSoC3/5 PSoC3/5

Step 1: PSoC Creator Software Step 2: Step 3: Step 4: Step 5: Step 6: Step 7: Step 8: Build Debug

Step 1 PSoC Creator Software 2. File>Close Workspace 1.PSoC Creater > >Cypress >PSoC Creater 2.X> PSoC Creater

1,Main Window 2,Work Space Explore 3,Component Catalog 4,Output Work space explore ( ) Schimatic Window Window TAB TAB TAB New XXX window SourceTAB Components Result Cypress Log Output Window

Step 2 File->New->Project Project GPIO_35D Location C: PSoC5_Lab

Step 2.1 ( ) 2.Empty PSoC5 Design ( ) 1.+ 3.Name,GPIO_35D ( ) 4. ( C: PSoC5_Lab) 6.OK 5. ( )

Device Selector PSoC CY8C-KIT-050 CY8C5588-AXI-060 2011 Q4 ES1 http://www.cypress.com/?id=2232

Workspace Explorer

Step 3 1.TopDesign.cysh ( ) 2.Port and Pins > Digital Input Pin, ( ) ( ) Ctrl + Ctrl + Ctrl + Shift + Ctrl + Shift + Alt +

Step 4 Pin_1 Configure

Step 4.1 1 Name: Analog : Digital Input : HW Connection : Digital Output : HW Connection : Output Enable : IO IO Bidirectional : IO

Step 4.2 2

Step 4.3 3 Drive Mode : IO TRM 22.I/O System Initial State : POR IO Drive Mode Pull Up/Down Pull Down 0 Pull Up 1

Step 4.4 Ctrl + Ctrl + Ctrl + Shift + Ctrl + Shift + ( ) Alt +

Step 5

Step 5.1

(.cydwr ) PSoC Creator.cydwr Pins Clocks Interrupts DMA

Step 6

Step 6.1 IO

Step 7 Pin

Step 8 Build : Project 1.Build>Build GPIO_35D Notice List X

Step 8.1

Step 8.2 1. USB 2.Debug>Program(Cntl+F5) 1.USB USB ( )

Step 8.3

Step 8.4 LED1 P0[5] SW2 (P6[1])

Step 8.5

1 GPIO_35D File>Save XXXX As GPIO_35D GPIO_35P

2 GPIO_35P

3 File > Close Workspace

4 GPIO_35P

6 File >Open >Project/Workspace GPIO_35P

7 GPIO_35P-0000 GPIO_35P PSoC5 3 Generated_Source PSoC5 PSoC3 Generate Config

GPIO_35P MPU (GPIO_35P) GPIO_35P LED LED GPIO_35P GPIO_35D GPIO_35P SW2 (P6_1) P0[5] LED SW2 (P6_1) P0[5] LED PSoC3/5 PSoC3/5

Step 1 1 ( ) Ctrl + Ctrl + Ctrl + Shift + Ctrl + Shift + Alt + GPIO_35P

Step 2 2

Step 3 SW

Step 4 LED

Step 5 main.c if(sw_read()){ LED_Write(0); } else { LED_Write(1); }

Step 6 #include <device.h> void main() { } for(;;) { } if( SW_Read() ){ } else { } LED_Write(0); LED_Write(1); API uint8 Pin_1_Read( void ) void Pin_1_Write( uint8 value )

Step 7

Step 8

Step 9

Step 10 LED1 P0[5] SW2 (P6[1])

GPIO_35I IO GPIO_35P GPIO_35I (GPIO_35P ) GPIO_35I GPIO_35I LED LED GPIO_35P GPIO_35I

Step 1 1 ( ) Ctrl + Ctrl + Ctrl + Shift + Ctrl + Shift + Alt + GPIO_35I

Step 2 SW

Step 3

Step 4 main.c

Step 5 #include <device.h> CY_ISR(sw_isr){ } SW_ClearInterrupt(); if( SW_Read() ){ LED_Write(0); } else { } LED_Write(1); CY_ISR( MyISR) PSoC Creator CY_ISR void Pin_1_ClearInterrupt(void) Pin void main() { } isr_1_startex(sw_isr); CYGlobalIntEnable; for(;;) { } ISR_StartEx(cyisraddress addrss) ISR Enable CYGlobalIntEnable Enable

Step 6

Step 7

Step 8

Step 9 LED1 SW2 P0[5] SW2 (P6[1])

GPIO I/O割り込み GPIOポート毎に保有: Port Interrupt Control Unit (PICU) 専用の割り込みベクタ Interrupt on: Rising edge Falling edge Any edge Status Register どのピンによってI/O割り込みが発 生したかをラッチする ファームウェアによる読み出し可能 読み出しによるクリア

GPIO I/O Analog Global Bus Analog Mux Bus (P0[0], P0[1], P3[6], P3[7]) Opamps High Current DAC mode CapSense Touch Sensing LCD char/segment drive Hardware controlled analog mux at pin

SIO (Special I/O) GPIO Vdda 5.5V tolerant DAC High Speed Logic level max current 25 ma sink 4 ma source Pin max current ~50 ma sink ~25 ma source No Analog No LCD char/segment drive No CapSense touch sensing Digital Input Path Programmable Input Buffer Config CMOS or LVTTL Pin Status Register Digital Input Pin Interrupt Type Register Pin Interrupt Status Register Interrupt Controller Digital Output Path Programmable Output Buffer Configuration Slow Slew Enable Data Register Digital Output Data Register Bypass Drive Mode 2 Drive Mode 1 Drive Mode 0 Bidirectional Control Bidirectional Enable 0 1 Interrupt Logic Buffer Thresholds Drive Logic Buffer Disable Slew Cntl Driver Vhigh 5K 5K PIN

Lab GPIO_35

Memo URL http://mikamir.web.fc2.com/?/?.htm? 142-0042 2-17-8 ( ) Renji_Mikami@nifty.com http://homepage3.nifty.com/western/mikamiconsult.htm 080-5422-2503(au)