国民技术MCU特点:
1 具有较高的安全性 目前市面上普遍的MCU皆采用ARM Cortex-M系列的架构,此架构本身并没有附带安全保护机制。ARM推出新一代安全微控制器加构Cortex-M23和Cortex-M33ST也针对物联网安全提供了一系列的STSAFF解决方案。国民技术“通用MCU+安全”
2 内置高速密码算法内核
高达 512KByte 片内 Flash,支持加密存储、 多用户分区管理及数据保护,支持硬件 ECC 校验, 10万次擦写次数, 10 年数据保持144KByte 片内 SRAM(包含 16KByte Retention RAM), Retention RAM 支持硬件奇偶校验
3 高性能下的低功耗技术
4 较高的集成度,外设丰富
N32G457系列采用 32 bit ARM Cortex-M4F内核,最高工作主频144MHz,支持浮点运算和DSP指令,集成多达512KB Flash、 144KB SRAM、 4x12bit 5Msps ADC、 4xOPAMP、 7xCOMP、 2x1Msps 12bDAC,支持多达24通道电容式触摸按键,集成多路U(S)ART、 I2C、 SPI、 QSPI、 USB、 CAN通信接口, 1xSDIO接口, 1x10/100M以太网接口,数字摄像头( DVP) 接口,内置密码算法硬件加速引擎。
GPIO测试:
- void LedInit(GPIO_Module* GPIOx, uint16_t Pin)
- {
- GPIO_InitType GPIO_InitStructure;
- /* Check the parameters */
- assert_param(IS_GPIO_ALL_PERIPH(GPIOx));
- /* Enable the GPIO Clock */
- if (GPIOx == GPIOA)
- {
- RCC_EnableAPB2PeriphClk(RCC_APB2_PERIPH_GPIOA, ENABLE);
- }
- else if (GPIOx == GPIOB)
- {
- RCC_EnableAPB2PeriphClk(RCC_APB2_PERIPH_GPIOB, ENABLE);
- }
- else if (GPIOx == GPIOC)
- {
- RCC_EnableAPB2PeriphClk(RCC_APB2_PERIPH_GPIOC, ENABLE);
- }
- else if (GPIOx == GPIOD)
- {
- RCC_EnableAPB2PeriphClk(RCC_APB2_PERIPH_GPIOD, ENABLE);
- }
- else if (GPIOx == GPIOE)
- {
- RCC_EnableAPB2PeriphClk(RCC_APB2_PERIPH_GPIOE, ENABLE);
- }
- else if (GPIOx == GPIOF)
- {
- RCC_EnableAPB2PeriphClk(RCC_APB2_PERIPH_GPIOF, ENABLE);
- }
- else
- {
- if (GPIOx == GPIOG)
- {
- RCC_EnableAPB2PeriphClk(RCC_APB2_PERIPH_GPIOG, ENABLE);
- }
- }
- /* Configure the GPIO pin */
- if (Pin <= GPIO_PIN_ALL)
- {
- GPIO_InitStructure.Pin = Pin;
- GPIO_InitStructure.GPIO_Mode = GPIO_Mode_Out_PP;
- GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
- GPIO_InitPeripheral(GPIOx, &GPIO_InitStructure);
- }
- }
- void LedBlink(GPIO_Module* GPIOx, uint16_t Pin)
- {
- GPIOx->POD ^= Pin;
- }
国民技术N32G43X串口打印功能,支持printf函数,而不需要选择use MicroLIB。
|