似曾相识

    1. STM32F103V8采购问题! 8/3501 stm32/stm8 2010-10-17
                                       楼主应该是买到了
    2. stm32大家真正产品用什么操作系统呢? 18/8317 stm32/stm8 2010-10-12
                                       我也不太喜欢用操作系统
    3.                                  其实还可以使用内存地址0x100直接代替*targetAddr 就是把他复制到内存0x100以后
    4. 这个硬件问题不懂,,请教 12/4179 嵌入式系统 2010-06-11
      LM386是音频功率放大器,一般不能做比较器使用.
    5. 迷茫者向各位问路! 15/5220 嵌入式系统 2010-05-23
      楼上这么晚还没睡,来回复我的帖子,真的很感动,我目前的环境,要想在硬件上有所突破,基本是不可能的,所以只有先提升自己的软功底。 不过我感觉特别地花一段时间去学一门语言,可能效果不明显,就像在学校,谁都学过C语言,可会用的人并不多。我想我应该在硬件平台上去实现某种功能,在实现这种功能的过程中去关注我所要用到的语言知识! 看楼下怎么说!
    6. 貌似没有。顺便帮顶。
    7. 三级管电流放大作用(有图) 19/8389 嵌入式系统 2010-05-08
      因为是共射放大,所以是反相,如果是想看放大的效果,则可以查看他们的坐标表示的单位是什么,一定是输出的单位比较大的。
    8. 串口读取数据时,第一个字符丢失 7/5270 嵌入式系统 2010-04-17
      因为你初始化标志位弄错了,而发送的驱动正确。故第一个字符发不了,但是发送的驱动程序更正了错误的标志位,使第二个字符以后可以正常发送。
    9. 如何下手Timer输入捕获遥控红外信号 21/8276 stm32/stm8 2010-04-13
                                       毫无疑问,状态机……
    10. WinCE6.0下CETK测试问题 13/4710 嵌入式系统 2010-03-18
      顶起来~~~
    11. 那最后怎么解决的?非常奇怪的是 我用这个bootloader加载修改代码之前的镜像竟然又可以加载
    12. stm32DMA外设地址计算问题 5/6093 stm32/stm8 2010-03-10
                                       比如我在看一个实验例子里写到:#define DAC_DHR12RD_Address      0x40007420 DMA_DeInit(DMA2_Channel4);   DMA_InitStructure.DMA_PeripheralBaseAddr = DAC_DHR12RD_Address; 按照手册上说的外设地址计算0x10+20d(通道号-1)么? 然后DAC的基地址为0x40007400,我就郁闷了结果不对么?
    13. 总线地址问题? 9/3187 stm32/stm8 2010-02-26
                                       还想问个问题   stm32f103     100脚的能不能使用FSMC 连接DM9000 网络芯片
    14. 关于手持设备锂电池管理驱动的问题 24/7219 嵌入式系统 2010-01-29
      不知道碰到哪儿了,现在active键下面有BAT1了,但是打印信息还是没有输出,我在OAL里MDD的init函数入口加了个死循环,和没加一个样~~~~~郁闷ing
    15. 比较麻烦,要了解传真机的驱动 一般都是USB或者并口的 要做个上位机软件
    16. 哦 呵呵 请各位大哥帮帮忙 推荐下 啊
    17. 请教Intel82559网卡驱动初始化问题 8/5071 嵌入式系统 2009-12-27
      下面是网上初始化过程部分代码,请大牛帮我看看啊,万分感谢: static void fxp_init(void *xsc) {         struct fxp_softc *sc = xsc;         struct ifnet *ifp = &sc->sc_if;         struct fxp_cb_config *cbp;         struct fxp_cb_ias *cb_ias;         struct fxp_cb_tx *txp;         int i, prm, s;         DBGLVL_PRINTK(2,"fxp_init called\n");            s = splimp();         /*          * Cancel any pending I/O          */     /*      * Add line suggested by "Eugene Denisov"      * on Tue, 16 Mar 2004 13:10:15 +0300      */         //        printf("In fxp_init begin [%d][%d][%d] and daemonTid is [%d]\n", sc->pciBus, sc->pciDevice, sc->pciFunc, sc->daemonTid);     sc->stat_ch = fxp_timeout_stopped;         fxp_stop(sc);         prm = (ifp->if_flags & IFF_PROMISC) ? 1 : 0;         DBGLVL_PRINTK(5,"fxp_init: Initializing base of CBL and RFA memory\n");         /*          * Initialize base of CBL and RFA memory. Loading with zero          * sets it up for regular linear addressing.          */         CSR_WRITE_4(sc, FXP_CSR_SCB_GENERAL, 0);         fxp_scb_cmd(sc, FXP_SCB_COMMAND_CU_BASE);         fxp_scb_wait(sc);         fxp_scb_cmd(sc, FXP_SCB_COMMAND_RU_BASE);         /*          * Initialize base of dump-stats buffer.          */         DBGLVL_PRINTK(5,"fxp_init: Initializing base of dump-stats buffer\n");         fxp_scb_wait(sc);         CSR_WRITE_4(sc, FXP_CSR_SCB_GENERAL, vtophys(sc->fxp_stats));         fxp_scb_cmd(sc, FXP_SCB_COMMAND_CU_DUMP_ADR);         /*          * We temporarily use memory that contains the TxCB list to          * construct the config CB. The TxCB list memory is rebuilt          * later.          */         cbp = (struct fxp_cb_config *) sc->cbl_base;         DBGLVL_PRINTK(5,"fxp_init: cbp = 0x%x\n",cbp);         /*          * This bcopy is kind of disgusting, but there are a bunch of must be          * zero and must be one bits in this structure and this is the easiest          * way to initialize them all to proper values.          */         bcopy(fxp_cb_config_template,                 (void *)(u_int32_t *)(volatile void *)&cbp->cb_status,                 sizeof(fxp_cb_config_template));         cbp->cb_status =        0;         cbp->cb_command =        CPU_swap_u16(FXP_CB_COMMAND_CONFIG | FXP_CB_COMMAND_EL);         cbp->link_addr =        -1;        /* (no) next command */         cbp->byte_count =        22;        /* (22) bytes to config */         cbp->rx_fifo_limit =        8;        /* rx fifo threshold (32 bytes) */         cbp->tx_fifo_limit =        0;        /* tx fifo threshold (0 bytes) */         cbp->adaptive_ifs =        0;        /* (no) adaptive interframe spacing */         cbp->mwi_enable =        sc->flags & FXP_FLAG_MWI_ENABLE ? 1 : 0;         cbp->type_enable =        0;        /* actually reserved */         cbp->read_align_en =        sc->flags & FXP_FLAG_READ_ALIGN ? 1 : 0;         cbp->end_wr_on_cl =        sc->flags & FXP_FLAG_WRITE_ALIGN ? 1 : 0;         cbp->rx_dma_bytecount =        0;        /* (no) rx DMA max */         cbp->tx_dma_bytecount =        0;        /* (no) tx DMA max */         cbp->dma_mbce =                0;        /* (disable) dma max counters */         cbp->late_scb =                0;        /* (don't) defer SCB update */         cbp->direct_dma_dis =        1;        /* disable direct rcv dma mode */         cbp->tno_int_or_tco_en =0;        /* (disable) tx not okay interrupt */         cbp->ci_int =                1;        /* interrupt on CU idle */         cbp->ext_txcb_dis =         sc->flags & FXP_FLAG_EXT_TXCB ? 0 : 1;         cbp->ext_stats_dis =         1;        /* disable extended counters */         cbp->keep_overrun_rx =         0;        /* don't pass overrun frames to host */         cbp->save_bf =                sc->chip == FXP_CHIP_82557 ? 1 : prm;         cbp->disc_short_rx =        !prm;        /* discard short packets */         cbp->underrun_retry =        1;        /* retry mode (once) on DMA underrun */         cbp->two_frames =        0;        /* do not limit FIFO to 2 frames */         cbp->dyn_tbd =                0;        /* (no) dynamic TBD mode */         cbp->mediatype =        sc->flags & FXP_FLAG_SERIAL_MEDIA ? 0 : 1;         cbp->csma_dis =                0;        /* (don't) disable link */         cbp->tcp_udp_cksum =        0;        /* (don't) enable checksum */         cbp->vlan_tco =                0;        /* (don't) enable vlan wakeup */         cbp->link_wake_en =        0;        /* (don't) assert PME# on link change */         cbp->arp_wake_en =        0;        /* (don't) assert PME# on arp */         cbp->mc_wake_en =        0;        /* (don't) enable PME# on mcmatch */         cbp->nsai =                1;        /* (don't) disable source addr insert */         cbp->preamble_length =        2;        /* (7 byte) preamble */         cbp->loopback =                0;        /* (don't) loopback */         cbp->linear_priority =        0;        /* (normal CSMA/CD operation) */         cbp->linear_pri_mode =        0;        /* (wait after xmit only) */         cbp->interfrm_spacing =        6;        /* (96 bits of) interframe spacing */         cbp->promiscuous =        prm;        /* promiscuous mode */         cbp->bcast_disable =        0;        /* (don't) disable broadcasts */         cbp->wait_after_win =        0;        /* (don't) enable modified backoff alg*/         cbp->ignore_ul =        0;        /* consider U/L bit in IA matching */         cbp->crc16_en =                0;        /* (don't) enable crc-16 algorithm */         cbp->crscdt =                sc->flags & FXP_FLAG_SERIAL_MEDIA ? 1 : 0;         cbp->stripping =        !prm;        /* truncate rx packet to byte count */         cbp->padding =                1;        /* (do) pad short tx packets */         cbp->rcv_crc_xfer =        0;        /* (don't) xfer CRC to host */         cbp->long_rx_en =        sc->flags & FXP_FLAG_LONG_PKT_EN ? 1 : 0;         cbp->ia_wake_en =        0;        /* (don't) wake up on address match */         cbp->magic_pkt_dis =        0;        /* (don't) disable magic packet */                                         /* must set wake_en in PMCSR also */         cbp->force_fdx =        0;        /* (don't) force full duplex */         cbp->fdx_pin_en =        1;        /* (enable) FDX# pin */         cbp->multi_ia =                0;        /* (don't) accept multiple IAs */         cbp->mc_all =                sc->flags & FXP_FLAG_ALL_MCAST ? 1 : 0;         DBGLVL_PRINTK(5,"fxp_init: cbp initialized\n");         if (sc->chip == FXP_CHIP_82557) {                 /*                  * The 82557 has no hardware flow control, the values                  * below are the defaults for the chip.                  */                 cbp->fc_delay_lsb =        0;                 cbp->fc_delay_msb =        0x40;                 cbp->pri_fc_thresh =        3;                 cbp->tx_fc_dis =        0;                 cbp->rx_fc_restop =        0;                 cbp->rx_fc_restart =        0;                 cbp->fc_filter =        0;                 cbp->pri_fc_loc =        1;         } else {                 cbp->fc_delay_lsb =        0x1f;                 cbp->fc_delay_msb =        0x01;                 cbp->pri_fc_thresh =        3;                 cbp->tx_fc_dis =        0;        /* enable transmit FC */                 cbp->rx_fc_restop =        1;        /* enable FC restop frames */                 cbp->rx_fc_restart =        1;        /* enable FC restart frames */                 cbp->fc_filter =        !prm;        /* drop FC frames to host */                 cbp->pri_fc_loc =        1;        /* FC pri location (byte31) */         }         /*          * Start the config command/DMA.          */         DBGLVL_PRINTK(5,"fxp_init: starting config command/DMA\n");         fxp_scb_wait(sc); //        CSR_WRITE_4(sc, FXP_CSR_SCB_GENERAL, vtophys(&cbp->cb_status));         sysOutLong(sc->pci_regs_base + FXP_CSR_SCB_GENERAL ,(long)(&cbp->cb_status));         fxp_scb_cmd(sc, FXP_SCB_COMMAND_CU_START);               /* ...and wait for it to complete. */         fxp_dma_wait(&cbp->cb_status, sc);              /////前面都是好的,这里就等待超时了,状态寄存器的值一直都没有变化      。。。。。。 } fxp_dma_wait代码如下: static __inline void fxp_dma_wait(volatile u_int16_t *status, struct fxp_softc *sc) {         int i = 10000;         while (!(CPU_swap_u16(*status) & FXP_CB_STATUS_C) && --i)                 DELAY(2);         if (i == 0)                 printf("DMA timeout\n"); }
    18. up
    19. 晒晒我的东西,关于SD卡的 8/3655 嵌入式系统 2009-12-04
      还不错
    20. WinCE 4.2下如何用命令行编译 11/5572 嵌入式系统 2009-09-28
      天哪  07年的

最近访客

< 1/1 >

统计信息

已有58人来访过

  • 芯积分:--
  • 好友:--
  • 主题:17
  • 回复:69

留言

你需要登录后才可以留言 登录 | 注册


现在还没有留言