1 / 23

AndeShape Labs

AndeShape Labs. Andes Technology. Outline. Evoke Toolchains Console Lab1-Hello Lab2-7Seg Lab3-UART Lab4-GPIO1 Lab5-SWI Lab6-OSD Lab7-RTC Lab8-WDT Lab9-JPEG Lab10-MP3. View Environment variable PATH setting. Toolchains list. Evoke Toolchains Console.

Download Presentation

AndeShape Labs

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. AndeShape Labs Andes Technology

  2. Outline • Evoke Toolchains Console • Lab1-Hello • Lab2-7Seg • Lab3-UART • Lab4-GPIO1 • Lab5-SWI • Lab6-OSD • Lab7-RTC • Lab8-WDT • Lab9-JPEG • Lab10-MP3 ANDES Confidential

  3. View Environment variable PATH setting Toolchains list Evoke Toolchains Console ANDES Confidential

  4. 1 .Copy generated binary file to SD card 2. Then insert SD card to AndeShape nds32.ld Go to Project folder Hello.c Go to Lab1 folder File list Build project and transform to binary file Type “c” to read SD card Open terminal and set baud rate • Enter file name • Specify load address Run hello program Type 55 enter command line interface Lab1-Hello ANDES Confidential

  5. Go to 7 segment LED project folder 7 Segment LED mapping address • Build Project • Copy 7seg.bin to SD card • Then insert SD card to ADP-XC5 File list 7 Segment LED display function Lab2-7Seg ANDES Confidential

  6. sio.c Lab3-UART – A simple printf ANDES Confidential

  7. Build Project • Copy gpio1.bin to SD card • Then insert SD card to ADP-XC5 … 6 5 4 3 2 1 0 Set GPIO pins as input mode Registers definition refer to AndeShape_AG101P_DS0001_v1.0.pdf - Chapter 14 Press GPIO button 1-5 Lab4-GPIO1 ANDES Confidential

  8. Interruption System Registers • Processor Status Word Register • The Processor Status Word register (PSW) contains several fields which controls the global masking behavior for interrupts, the MMU translation modes, the current processor operation mode, data endianness control, and indicates the current interruption stack level, and machine error status. • GIE (Global Interrupt Enable : bit 0) Controls if Interrupt is enabled or not. • Interruption Vector Base Register • The IVB register is the base physical address of the interruption vector table which anchors the interruption entry points for the software interruption handlers. • Interruption Masking Register • The Interruption Masking Register is used to mask the one software interrupt and the six hardware interrupts in the Internal Vector Interrupt Controller mode. It also controls if an exception is generated on Divide-by-Zero condition for integer divide instructions. (Please refer to AndeStar_SPA_v1.2.pdf) ANDES Confidential

  9. start.S start.S bsp.c Copy swi.bin to SD card Lab5-SWI ANDES Confidential

  10. LCD Control (LCDC) Feature • Thin Film Transistor (TFT) color displays with up to 24-bit bus interface • Resolution programmable up to 1024x768 • Pixel clock rate up to 75 MHz • Programmable polarity/duration for output enable, vertical sync, horizontal sync, and pixel clock • Data/Synchronization on/off control • Swap function for red and blue channels • RGB 16 (5:6:5)/24 (8:8:8) bits per pixel • Palette (8/4/2/1 bits per pixel) • YCbCr422 (16 bits per pixel) • YCbCr420 (separate memory location) • 256-entry 16-bit RGB color palette RAM ANDES Confidential

  11. OSD Feature • RAM based programmable 12x16 font • Font varieties up to 256 • Maximal window font number is 512 • Flexible dimension for both horizontal and vertical directions • Programmable window position • Up-scaling function with factors of 1, 2, 3, and 4 • Transparency of 25%, 50%, 75%, and 100% • 4-entry, 8-bit color palette for foreground, and 3-entry, 8-bit color palette for background (1 entry reserved for transparency) ANDES Confidential

  12. osd.c Copy to SD card Then OSD fonts display on LCD panel Lab6-OSD ANDES Confidential

  13. Real Time Clock Feature • Refer to ATFRTC010_DS_v1.2.pdf • When the system enters sleep mode, PCLK can be gated by the system to save power consumption • Separated second, minute, hour and day counters to reduce power consumption and software complexity • Programmable auto second, minute or hour alarm ANDES Confidential

  14. RTC Register Summary ANDES Confidential

  15. rtc.c Copy rtc.bin to SD card Print out RTC time Lab7-RTC ANDES Confidential

  16. Watch Dog Feature • While timeout, outputs are one or a combination of: System Reset/System Interrupt/External Interrupt • 32-bit down counter • PCLK or EXTCLK (32.768 KHz) source selection • Variable time-out period of reset • Access protection ANDES Confidential

  17. Watch Dog Register Summary ANDES Confidential

  18. testwdt.c testwdt.c Copy wdt.bin to SD card Time is up and reset Lab8-WDT ANDES Confidential

  19. Copy JPEG.bin to SD card Then LCD panel start to display picture Lab9-JPEG ANDES Confidential

  20. Copy MP3.bin to SD card Audio playback Lab10-MP3 ANDES Confidential

  21. End of The File ANDES Confidential

  22. Exercise 1- Electric clock • 請利用 RTC 與 OSD 設計一個電子鐘, 並可用 GPIO button 調整時間 ANDES Confidential

  23. Exercise 2 – Lost (迷失) • 一架載滿乘客的飛機從雪梨飛往洛杉磯,在經過南太平洋上空時突然開始劇烈震動,並斷成兩截墜落在一個小島上。 倖存者醒後發現自己與外界失去了聯繫,而小島深處的叢林中似乎有某種“怪物”的存在。倖存者後發現在叢林中居然有一個大艙門,然後艙門里居然有個精神錯亂的蘇格蘭男人每108分鐘會按一個按鈕,再然後,居然還有一段視頻,內容是違科學的教育以及說明這個工作站是多麼的危險,不但沒有說明這個工作站到底是幹什麼的,反而介紹了一個叫做Dharma的神秘組織 … • 請利用 Watchdog 設計這個按鈕, 並設定每隔 10 秒須按 GPIO button 來重新倒數, 否則世界將 …. ANDES Confidential

More Related