| 전자부품 데이터시트 검색엔진 |
|
AP32113 데이터시트(PDF) 32 Page - Infineon Technologies AG |
|
|
|||||||||||||||||||||||||||||
AP32113 데이터시트(HTML) 32 Page - Infineon Technologies AG |
|
32 / 38 page ![]() AP32113 Connecting Memory to the TC1130 External Bus Unit (EBU) Application Note 32 V1.0, 2006-02 3.8 Example to Program the SDRAM device present on TC1130 Triboard This section shows an example to program the HYB39S256160-8 SDRAM device present on the TC1130 Triboard with a simple LED blinking program.The aim of this exercise is to Blink a LED connected to the Triboard (P0.7) using only SDRAM. No interrupts will be used here, only a ‘for loop‘ for delay purposes 1. Write a simple program to blink the LED on P0.7The main program is fairly easy, the port pin P0.7 is initialized as output and switched on and off. The ‘tc1130regs.h‘ file declares all the TC1130 registers (i.e. Ports, Peripherals, …) /* * blinky.c * Example for using TC1130 board. */ #include <tc1130regs.h> void delay(void) { volatile int i,j,k; for (i=0;i<5000;i++) for (j=0;j<40;j++) k = i+j; } int main(void) { // set P0.7 as output P0_DIR_P7 = 1; // main loop while (1) { // set led on P0_OUT_P7 = 1; // small pause delay(); // set led off P0_OUT_P7 = 0; // small pause delay(); } return 0; } 1) The option is fastest setting and verified on TC1130 Triboard. |
|
링크 URL |
| ALLDATASHEET 가 귀하에 도움이 되셨나요? [ DONATE ] |
Alldatasheet는? | 광고문의 | 운영자에게 연락하기 | 개인정보취급방침 | 링크 투 데이터시트 | 링크교환 | 제조사별 검색 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |