• 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
返回

电子发烧友 电子发烧友

  • 全文搜索
    • 全文搜索
    • 标题搜索
  • 全部时间
    • 全部时间
    • 1小时内
    • 1天内
    • 1周内
    • 1个月内
  • 默认排序
    • 默认排序
    • 按时间排序
  • 全部板块
    • 全部板块
大家还在搜
  • PSA频谱分析仪NADC PDC测量人格技术概述

    : E4440A, E4443A, E4445A, E4446A, E4447A, E4448A. (Option BAE)

    2019-09-24 10:01

  • 机器昆虫传感器是什么?

    在好莱坞影片《少数派报告》中,汤姆·克鲁斯饰演的男主人公面对的敌人是一支设备精良的机器蜘蛛部队。英国BAE系统公司正在把这一科幻场景变为现实,他们研制的机器昆虫有望在今年年底问世,随后将协助作战部队侦察敌情。

    2019-10-16 07:05

  • PSA频谱分析仪NADC,PDC用户指南

    , E4447A, E4448A and E4406A VSA signal analyzer. (Option BAE)

    2019-10-22 06:57

  • 基于超材料技术的航空武器装备应用

    近年来,在军用天线等应用领域,国外超材料技术取得了突破性进展。例如,英国BAE系统公司和伦敦玛丽女王学院研制出一种新型超材料平面天线,利用超材料平面汇聚电磁波的特性,替代了传统天线的抛物面反射器或

    2019-07-29 06:21

  • 用tiuc3842 ispice仿真报错的原因?

    仿真用tiuc3842ispice 模型出现如下错误,请叫下什么原因 Circuit: * E:ELTSPICELIBUC2842.asc Fatal Error: Too few nodes: eee8c5c7a2bc4b01f045f303678664e7916da0bae22e8cb0bba041dd

    2024-07-04 06:17

  • CYT2B95BAE无法使能SPI1的原因?

    #include \"SPI.h\" #include \"cy_project.h\" #define SCB_CH_TO_BE_USED SCB0 //#define SCB_CLOCK PCLK_SCB0_CLOCK #define SCB_INTERRUPT_NO scb_0_interrupt_IRQn ///* User setting value */ //#if (CY_USE_PSVP == 1) // #define SOURCE_CLOCK_FRQ 24000000ul //#else // #define SOURCE_CLOCK_FRQ 80000000ul //#endif //#define SCB_SPI_BAUDRATE 1000000ul /* Please set baudrate value of SPI you want */ #define SCB_SPI_OVERSAMPLING 16ul /* Please set oversampling of SPI you want */ //#define SCB_SPI_CLOCK_FREQ (SCB_SPI_BAUDRATE * SCB_SPI_OVERSAMPLING) #define DIVIDER_NO_1 (1u) cy_stc_scb_spi_context_t contextSCB; cy_stc_scb_spi_context_t contextSCB1; static cy_stc_sysint_irq_t irq_cfg = { .sysIntsrc=SCB_INTERRUPT_NO, .intIdx = CPUIntIdx3_IRQn, .isEnabled = true, }; static cy_stc_sysint_irq_t irq_cfg1 = { .sysIntsrc=scb_6_interrupt_IRQn, .intIdx = CPUIntIdx4_IRQn, // ?? .isEnabled = true, }; static const cy_stc_scb_spi_config_t SCB_SPI_cfg = { .spiMode = CY_SCB_SPI_MASTER, /*** Specifies the mode of operation ***/ .subMode = CY_SCB_SPI_MOTOROLA, /*** Specifies the submode of SPI operation ***/ .sclkMode = CY_SCB_SPI_CPHA0_CPOL0, /*** Clock is active low, data is changed on first edge ***/ .oversample = SCB_SPI_OVERSAMPLING, /*** SPI_CLOCK divided by SCB_SPI_OVERSAMPLING shoud be baudrate ***/ .rxDataWidth = 16, /*** The width of RX data (valid range 4-16). It must be the same as ref txDataWidth except in National sub-mode. ***/ .txDataWidth = 16, /*** The width of TX data (valid range 4-16). It must be the same as ref rxDataWidth except in National sub-mode. ***/ .enableMsbFirst = true, /*** Enables the hardware to shift out the data element MSB first, otherwise, LSB first ***/ .enableFreeRunSclk = false, /*** Enables the master to generate a continuous SCLK regardless of whether there is data to send ***/ .enableInputFilter = false, /*** Enables a digital 3-tap median filter to be applied to the input of the RX FIFO to filter glitches on the line. ***/ .enableMisoLateSample = true, /*** Enables the master to sample MISO line one half clock later to allow better timings. ***/ .enableTransferSeperation = true, /*** Enables the master to transmit each data element separated by a de-assertion of the slave select line (only applicable for the master mode) ***/ .ssPolarity0 = 0, /*** SS0: active low ***/ .ssPolarity1 = 0, /*** SS1: active low ***/ .ssPolarity2 = 0, /*** SS2: active low ***/ .ssPolarity3 = 0, /*** SS3: active low ***/ .enableWakeFromSleep = 0, /*** When set, the slave will wake the device when the slave select line becomes active. Note that not all SCBs support this mode. Consult the device datasheet to determine which SCBs support wake from deep sleep. ***/ // In case of using high level APIs, an user does not need to set these parameter. These parameter will be set in high level APIs such as \"Cy_SCB_SPI_Transfer\". .txFifoTriggerLevel = 0, /*** When there are fewer entries in the TX FIFO, then at this level the TX trigger output goes high. This output can be connected to a DMA channel through a trigger mux. Also, it controls the ref CY_SCB_SPI_TX_TRIGGER interrupt source. ***/ .rxFifoTriggerLevel = 255, /*** When there are more entries in the RX FIFO, then at this level the RX trigger output goes high. This output can be connected to a DMA channel through a trigger mux. Also, it controls the ref CY_SCB_SPI_RX_TRIGGER interrupt source. ***/ .rxFifoIntEnableMask = 0, /*** Bits set in this mask will allow events to cause an interrupt ***/ .txFifoIntEnableMask = 0, /*** Bits set in this mask allow events to cause an interrupt ***/ .masterSlaveIntEnableMask = 0, /*** Bits set in this mask allow events to cause an interrupt ***/ .enableSpiDoneInterrupt = 0, .enableSpiBusErrorInterrupt = 0, }; //#define SPI_SCB_1 void irqSCB(void) { Cy_SCB_SPI_Interrupt(SCB_CH_TO_BE_USED,contextSCB); } void irqSCB1(void) { Cy_SCB_SPI_Interrupt(SCB6,contextSCB1); } void SPI_Init(void) { Cy_SCB_SPI_Init(SCB_CH_TO_BE_USED,SCB_SPI_cfg,contextSCB); Cy_SCB_SPI_SetActiveSlaveSelect(SCB_CH_TO_BE_USED, 0); Cy_SCB_SPI_Enable(SCB_CH_TO_BE_USED); //#ifdef SPI_SCB_1 Cy_SCB_SPI_Init(SCB6,SCB_SPI_cfg,contextSCB1); Cy_SCB_SPI_SetActiveSlaveSelect(SCB6, 0); Cy_SCB_SPI_Enable(SCB6); //#endif } void SPI_DeInit(void) { Cy_SCB_SPI_DeInit(SCB_CH_TO_BE_USED); //#ifdef SPI_SCB_1 Cy_SCB_SPI_DeInit(SCB6); //#endif } void SPI_EnableSCBIrq(void) { Cy_SysInt_InitIRQ( irq_cfg); Cy_SysInt_SetSystemIrqVector(irq_cfg.sysIntSrc, irqSCB); NVIC_EnableIRQ(irq_cfg.intIdx); //#ifdef SPI_SCB_1 Cy_SysInt_InitIRQ( irq_cfg1); Cy_SysInt_SetSystemIrqVector(irq_cfg1.sysIntSrc, irqSCB1); NVIC_EnableIRQ(irq_cfg1.intIdx); //#endif } void SPI_SendData(uint8_t lu8_SCBChannel, void *txBuf, uint32_t size) { uint32_t transferStatus = 0u; if (lu8_SCBChannel == SPI_SBC_0) { Cy_SCB_SPI_Transfer(SCB_CH_TO_BE_USED, txBuf, NULL, size,contextSCB); do { transferStatus = Cy_SCB_SPI_GetTransferStatus(SCB_CH_TO_BE_USED,contextSCB); } while((transferStatusCY_SCB_SPI_TRANSFER_ACTIVE) != 0u); } else if (lu8_SCBChannel == SPI_SBC_1) { //#ifdef SPI_SCB_1 Cy_SCB_SPI_Transfer(SCB6, txBuf, NULL, size,contextSCB1); do { transferStatus = Cy_SCB_SPI_GetTransferStatus(SCB6,contextSCB1); } while((transferStatusCY_SCB_SPI_TRANSFER_ACTIVE) != 0u); //#endif } else { // MISRA C } } 大佬们,请帮忙看看。初始化后发送数据卡在do循环里面。Pin脚是port22的0~3。

    2024-02-01 08:06

  • 辉格科技为印尼航天集团提供SST300倾角传感器

    在辉格科技为以色列(IAI)、巴基斯坦(PIST)、英国(BAE)、德国(EADS)法国(ZODIAC)以及国内的航天部门提供SST倾角传感器后,今天,迎来印尼航天集团的订单!PT

    2013-04-11 11:47

  • 【从0教学嵌入式Linux】第十一集

    port->Transmit加载system.img15.输入命令:nand write.ysffs c0008000 600000 c1bae00,将system.img写入到NandFlash中

    2016-05-30 17:06

  • Wifi模块引起的内核崩溃如何解决?

    :46:16]r7 : bae78200r6 : 00000002r5 : 00000000r4 : bb693cf4[2022-08-17 15:46:16]r3 : bb693cf4r2

    2023-04-03 07:07

  • 虚拟电子实验室最新版

    实验室.part3119G网盘下载地址:http://d.119g.com/f/BAE8437E34C0A55C.html安装说明119G网盘下载地址:http://d.119g.com/f

    2012-10-20 10:02