Holtek 32-bit MCU Promotion HT32F1765 Starter Kit 2013/8/12 -1 Holtek Semiconductor Inc. HT32F1765 SK Introduction Designed for Cortex-M3 new users by providing a low-cost platform. Together with the convenience of its software development platform, it provides a complete solution from evaluation to production Using the HT32F1765 Operating frequency up to 72 MHz 128KB Flash, 64KB SRAM Integrated TIMER, I2C, SPI, USART, USB and ADC, can be used for the testing and development of many external devices LQFP100 package 8.000 MHz External Crystal Clock Comprises Target Board and Serial-Wire Debugger Can use the Target Board external power supply or be powered by the Debugger Size: 65mm x 100 mm 2013/8/12 -2 Holtek Semiconductor Inc. HT32F1765 SK Development Environment Provides a standard C language program development environment Provides a complete function library avoiding the complicated lower level function development Integrated hardware debug interface, SWD, uses a USB cable to connect to the IDE. The system will download the programs and debug immediately Provides a standard development environment including Keil uVision, IAR EWARM and CooCox CoIDE • Compiler • Debugger • Flash Loader USB IDE HT32F1765 SK 2013/8/12 -3 Holtek Semiconductor Inc. HT32F1765 SK Hardware PE0~15 PD0~15 PC8~15 USB Port SWD-10P RESET PA0~15 PB0~15 PC0~7 USB Port SWD Debugger Target Board 2013/8/12 -4 Holtek Semiconductor Inc. HT32F1765 SK Usage Target Board Evaluate Develop SWD Debugger Any Board with a SWD-10P Connector 2013/8/12 -5 Holtek Semiconductor Inc. HT32F1765 Block Diagram Analog Inputs 4 ~ 16 MHz 32.768KHz 12-bit ADC 8 Channels (OPA/CMP) 8MHz HSI HSE Backup Domain 32KHz LSI LSE RTC SPI x 2 / I2C x 2 USART x 2 SPI / I2C / USART Device ISO 7816-3 x 1 Smart Card CortexTM-M3 USB 2.0 FS x 1 USB Host HT32F1755/65 MT6573 HT32F2755* CSIF* x 1 CMOS Sensor* SRAM 32/64 KB 72 MHz VDD I/O LDO POR WDT LVD BOD 3-Phase Motor Control Timer x 1 Capture & Compare Flash Memory 128 KB 3-Phase Brushless Motor PWM Timer x 2 Basic Function Timer x 2 ARM is a registered trademark of ARM Limited in the EU and other countries. Cortex is a trademark of ARM Limited in the EU and other countries. 2013/8/12 -6 Holtek Semiconductor Inc. HT32F1765 Feature 1 Function Spec / Number CPU Core Operating Voltage System Clock Flash SRAM Cortex-M3 r2p0 Oscillators Description JTAG / Serial Wire Debug, MPU 2.7V - 3.6V 72MHz 128K Bytes 32K / 64K Bytes High-Speed External High-Speed Internal RC Low-Speed External Low-Speed Internal RC Max. generated from HSE/HSI by PLL Flash Security / Accelerator 1755: 32KB 1765/2755: 64KB HSE: 4MHz ~ 16MHz (Clock Stop Detection ) HSI: 8MHz ±5% @ -40 ℃ ~ +85 ℃ LSE: 32 KHz LSI: 32 KHz ±10% @ 25 ℃ PDMA 1 With 12 channels USB 1 8 endpoints (including endpoint 0) USB 2.0 Full Speed SCI 1 ISO7816-3 Smart Card Interface CSIF 1 CMOS sensor interface, Clock speed up to 24MHz YUV or RAW RGB data format (QVGA / CIF) For HT32F2755 only 2013/8/12 -7 Holtek Semiconductor Inc. HT32F1765 Feature 2 Description Function Spec / Number Basic Function Timer (BFTM) 2 – 32-bit compare counter – One shot / Repetitive interrupt mode 2 – Input capture – Output compare – PWM generation (Edge and Center-aligned mode) – One Pulse Mode output – QEI & Hall sensor interface Motor Control Timer (MCTM) 1 As GPTM but with extra motor functions: – Complementary output with programmable dead time insertion – Programmable polarity – Programmable idle state – Break protection – Support 3-phase motor control USART 2 With FIFO, Baud Rate up to 4.5Mbps SPI 2 Master Up to 36MHz / Slave Up to 18 MHz I2C 2 Master/Slave Standard/Fast mode (100 / 400KHz) ADC 12-bit x 8 channels Op Amp / Comparator 2 Watchdog 1 RTC 1 General Purpose Timer (GPTM) Max. 1 Msps with 12-bit SAR ADC 2013/8/12 -8 Holtek Semiconductor Inc. HT32F1765 Feature 3 Function Spec / Number Description LVD Y 9 levels: 2.7V ~ 3.5V, 0.1V per level BOD Y 2.5V POR Y Power On Reset:1.36V Internal LDO 1 VIN = 2.7V ~ 3.6V Normal mode: VOUT = 1.8V / 200mA Low-power mode: VOUT = 1.8V / 100mA Operation Mode Run, Sleep, Power-down Deep Sleep Mode1, 2 Run: Typ. 60mA @ 72MHz, Max. 72mA Deep Sleep 2: Typ. 18uA, Max. 25uA Power down: Typ. 4uA Backup Registers ESD/ EFT Latch up 32-bit x 10 ESD HBM: 4kV ESD MM: 300V Latch up: ±400mA Operating Temperature -40 ℃ ~ +85 ℃ I/O Ports 33/46/80 Package LQFP 48/64/100 General data storage in Backup Domain HBM: Human Body Mode MM: Machine Mode Max. Port A~E[15:0] ; Be configured up to 4 alternate functions (AFIO) 2013/8/12 -9 Holtek Semiconductor Inc. HT32F1765 Pin Assignment 1 PD8 PD9 PD10 PD11 PD12 PD13 VDD33_4 VSS33_4 PE5 PE6 PE7 PE8 PE9 PE10 VSSA VDDA PD8 PD9 PD10 PD11 PE5 PE6 PE7 PE9 PE8 PE10 VSSA VDDA 64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 40 39 38 37 PA0 1 48 PC15 PA1 2 47 PC14 PA2 3 46 PC13 PC12 PA0 1 36 VSS33_3 PA1 2 35 VDD33_3 PA3 4 45 PA2 3 34 PC12 PA4 5 44 PC11 PA3 4 33 PC11 PA5 6 43 VSS33_3 PA4 5 32 JTRST PA6 7 42 VDD33_3 PA5 6 31 JTDI PA7 8 PA6 7 30 JTMS/SWDIO VDD33_1 9 PA7 8 29 JTCK/SWCLK VDD33_1 9 28 Vss33_1 10 27 PC10 USBDP 11 26 USBDM 12 25 HT32F1755/1765/2755 LQFP48 7mm x 7mm 13 14 15 16 17 18 19 20 21 22 23 24 Vss33_1 10 USBDP 11 USBDM PC9/BOOT1 PC8/BOOT0 JTDO/TRACESWO HT32F1755/1765/2755 LQFP64 10mm x 10mm 41 JTRST 40 JTDI 39 JTMS/SWDIO 38 JTCK/SWCLK 12 37 JTDO/TRACESWO PB0 13 36 PC10 PB1 14 35 PC9/BOOT1 PB2 15 34 PC8/BOOT0 PB3 16 33 PC3 VSS33_2 PC2 PC1 PC0 VDD33_2 VSS33_2 XTALIN XTALOUT PB7 PB5/XTAL32KOUT RTCOUT PB4/XTAL32KIN VBAT VSSLDO nRST VLDOIN VLDOOUT XTALOUT VDD33_2 XTALIN PB5/XTAL32KOUT RTCOUT PB4/XTAL32KIN VBAT nRST VSSLDO VLDOIN VLDOOUT 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 2013/8/12 -10 Holtek Semiconductor Inc. HT32F1765 Pin Assignment 2 PD8 PD9 PD10 PD11 PD12 PD13 PD14 PD15 PE0 VDD33_4 VSS33_4 PE1 PE2 PE3 PE4 PE5 PE6 PE7 PE8 PE9 PE10 VDDA VSSA VREF+ VREF- 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 PA8 PA9 PA10 PA11 PA12 1 75 2 74 3 73 4 72 5 71 6 70 7 69 8 68 67 9 HT32F1755/1765/2755 LQFP100 10 11 12 66 65 64 PD7 PD6 PD5 PD4 PD3 PD2 PD1 PD0 PC15 PC14 PC13 PC12 PC11 13 63 VDD33_1 VSS33_1 USBDP USBDM 14 62 17 59 VSS33_3 VDD33_3 JTRST JTDI PA13 PA14 PA15 PB0 PB1 PB2 PB3 NC 18 58 JTMS/SWDIO 19 57 20 56 JTCK/SWCLK JTDO/TRACESWO 21 55 22 54 23 53 24 52 25 51 14mm x 14mm 15 16 61 60 PC10 PC9/BOOT1 PC8/BOOT0 PC7 PC6 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 PC5 PC4 PC3 PC2 PC1 PC0 PB15 PB14 PB13 VSS33_2 VDD33_2 XTALOUT XTALIN PB10 PB9 PB8 PB7 RTCOUT PB5/XTAL32KOUT PB4/XTAL32KIN VBAT nRST VSSLDO VLDOIN VLDOOUT 2013/8/12 -11 Holtek Semiconductor Inc. HT32 Firmware Library Examples Support for each peripheral Running on HT32 DVB Libraries CMSIS compliant Support for all the peripherals Project Template Empty projects for IDE Utilities HT32 DVB configuration 2013/8/12 -12 Holtek Semiconductor Inc. RTOS Small Footprint, several K bytes Multi-tasking process Supported OS • ARM-ARTX • IAR PowerPac • FreeRTOS • CoOS • uC/OS2 Demo Create 4 Tasks LED USART Buttons Buzzer Example Source Code 2013/8/12 -13 Holtek Semiconductor Inc. HT32F1765 SK Reference Documents IC Description HT32F1755-1765-2755_Datasheetv100.pdf HT32F1755-1765-2755_UserManualv110.pdf Firmware Library HT32F175x_275x_Programmer_Guide_v101.chm Tool installation instructions HT32_Keil-QuickStartv110.pdf HT32_IAR-QuickStartv110.pdf HT32_CooCoxCoIDE-QuickStartv100.pdf e-Link32-QuickStartv100.pdf 2013/8/12 -14 Holtek Semiconductor Inc. 2013/8/12 -15 Holtek Semiconductor Inc.