lafargefox

    1. 谁说ST的I2C能用我跟他拼命! 44/17197 stm32/stm8 2011-03-15
                                       楼主冷静,这个可以用
    2.                                  现在淘宝上卖的都是官方的ST LINK,除了坛子里的大神能做,其他人都没法做,所以,没有山寨ST LINK。STLINK确实不能给目标板供电,VCC是检测电压的,是输入。
    3. 有人用过淘宝上的STLink仿真器吗? 42/12506 stm32/stm8 2010-10-12
                                       现在除了坛子里的极个别人,有谁真正山寨出来ST LINK了呢?所以淘宝上的都是正规的代理的
    4.                                  
      数据采集模块:独立数据采集单元含MCU,AD. 我的意思例如设定15;希望采集模块模拟运行的时候:围绕着15产生正负1的偏差
      你的意思是否要在“独立数据采集单元”的MCU中,在14、15、16三个数中间随机给出一个数值?
    5. IAP,解密用的KEY怎么存储好点? 3/4043 stm32/stm8 2010-08-25
                                       呵呵,楼上说的在理。 不过还是有些窍门可以用的。
    6. stm8l101比较器的问题 7/5504 stm32/stm8 2010-08-19
                                       谢谢,非常感谢!
    7. 请问STM8和STM32是否货期紧张??? 21/6388 stm32/stm8 2010-07-14
                                       我叫不紧张,呵呵。
    8.                                  试验了 1、 配置为   Even   用  Odd  接收  有时是01  有时是81(发01)            2、 配置为   Even   用  Even  接收  是81(发01)
    9. 关于WINCE5.0 ActiveSync 问题 6/4761 嵌入式系统 2010-06-30
      只用过USB的华丽飘过…
    10. 两个datagridview控件 2/3483 嵌入式系统 2010-06-30
      汗,看不懂说的啥…
    11. 好像没听说……三星的是不是就是SMDK6410里面那么sample啊
    12. 请教关于pxa270的LCD控制器 4/2935 嵌入式系统 2010-06-01
      关注下 怎么没人给说下呢
    13. 引用 3 楼 peasant_lee 的回复: 是不是你仿真状态下的波特率设置不对啊? 先在ADS下运行代码,然后再在keil下运行串口就正常的了,那是keil状态下,开始通讯失败,可以找找开头的代码看看,呵呵。
      如何在keil下接收串口的数据,用中断方式,我老是进不了中断 串口初始化代码如下 /* 初始化UART0 */ void init_uart(void) {         UARTMODE  set;         uint32  bak;                 uint32 baud = 9600;                 PINSEL0 = 0x00000005;                 // 设置I/O连接到UART0                 set.datab = 8;                 // 8位数据位         set.stopb = 1;                 // 1位停止位         set.parity = 0;                // 无奇偶校验 /*********************************************************************/           /* 设置串口波特率 */    U0LCR = 0x80;                        // DLAB位置1    bak = (Fpclk>>4)/baud;    U0DLM = bak>>8;    U0DLL = bak&0xff;        /* 设置串口模式 */    bak = set.datab-5;                   // 设置字长度    if(2==set.stopb) bak |= 0x04;        // 判断是否为2位停止位          if(0!=set.parity) {set.parity = set.parity-1; bak |= 0x08;}    bak |= set.parity
    14. 我买过一个嵌入式开发板,里面有8个多G的资料。什么东西都有。不过就是价格有点贵
    15. ??在系统空闲状态下的唤醒问题 4/2378 嵌入式系统 2010-04-13
      ??怎么好呢?
    16. STM8103K32Pin 9/4447 stm32/stm8 2010-03-21
                                       是的,如果要用,要自己配置
    17. 谢谢各位朋友的支持。
    18. WINCE6.0 如何运行Skype ? 11/7323 嵌入式系统 2010-02-03
      请教具体的操作方法,因为http://devnote.bloghome.cn/posts/20216.html 无法打开,非常感谢,我们是相同的平台,谢谢谢谢!
    19. 这个时编译自动从PUBLIC中获取的,你先看看你目前的注册表中有没有这些吧,没有就加下试试,字库文件要符合
    20. 急急急!cannot open include file:'QtSql' 15/7609 嵌入式系统 2010-01-29
      #include"sqlutil.h" #include #include #include #include #include namespace mobilegis         {         SqlUtil* SqlUtil::m_Instance = 0;         SqlUtil::SqlUtil(QObject* parent) :                 QObject(parent)                 {                 }         SqlUtil::~SqlUtil()                 {                 }         bool SqlUtil::test()                 {                 QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");                 #ifdef _DEBUG                                db.setDatabaseName("c:\\mobilegis\\test.db"); #else                 db.setDatabaseName("e:\\mobilegis\\test.db"); #endif                                  if (!db.open())                         {                         QMessageBox::critical(0, qApp->tr("Cannot open database"),                                         qApp->tr("Unable to establish a database connection.\n"                                                 "This example needs SQLite support. Please read "                                                 "the Qt SQL driver documentation for information how "                                                 "to build it.\n\n"                                                 "Click Cancel to exit."), QMessageBox::Cancel);                         return false;                         }                 QSqlQuery query;                 query.exec("create table person (id int primary key, "                         "firstname varchar(20), lastname varchar(20))");                 query.exec("insert into person values(101, 'Danny', 'Young')");                 query.exec("insert into person values(102, 'Christine', 'Holand')");                 query.exec("insert into person values(103, 'Lars', 'Gordon')");                 query.exec("insert into person values(104, 'Roberto', 'Robitaille')");                 query.exec("insert into person values(105, 'Maria', 'Papadopoulos')");                 query.exec("create table offices (id int primary key,"                         "imagefile int,"                         "location varchar(20),"                         "country varchar(20),"                         "description varchar(100))");                 query.exec("insert into offices "                         "values(0, 0, 'Oslo', 'Norway',"                         "'Oslo is home to more than 500 000 citizens and has a "                         "lot to offer.It has been called \"The city with the big "                         "heart\" and this is a nickname we are happy to live up to.')");                 query.exec("insert into offices "                         "values(1, 1, 'Brisbane', 'Australia',"                         "'Brisbane is the capital of Queensland, the Sunshine State, "                         "where it is beautiful one day, perfect the next.  "                         "Brisbane is Australia''s 3rd largest city, being home "                         "to almost 2 million people.')");                 query.exec("insert into offices "                         "values(2, 2, 'Redwood City', 'US',"                         "'You find Redwood City in the heart of the Bay Area "                         "just north of Silicon Valley. The largest nearby city is "                         "San Jose which is the third largest city in California "                         "and the 10th largest in the US.')");                 query.exec("insert into offices "                         "values(3, 3, 'Berlin', 'Germany',"                         "'Berlin, the capital of Germany is dynamic, cosmopolitan "                         "and creative, allowing for every kind of lifestyle. "                         "East meets West in the metropolis at the heart of a "                         "changing Europe.')");                 query.exec("insert into offices "                         "values(4, 4, 'Munich', 'Germany',"                         "'Several technology companies are represented in Munich, "                         "and the city is often called the \"Bavarian Silicon Valley\". "                         "The exciting city is also filled with culture, "                         "art and music. ')");                 query.exec("insert into offices "                         "values(5, 5, 'Beijing', 'China',"                         "'Beijing as a capital city has more than 3000 years of "                         "history. Today the city counts 12 million citizens, and "                         "is the political, economic and cultural centre of China.')");                 query.exec("create table images (locationid int, file varchar(20))");                 query.exec("insert into images values(0, 'images/oslo.png')");                 query.exec("insert into images values(1, 'images/brisbane.png')");                 query.exec("insert into images values(2, 'images/redwood.png')");                 query.exec("insert into images values(3, 'images/berlin.png')");                 query.exec("insert into images values(4, 'images/munich.png')");                 query.exec("insert into images values(5, 'images/beijing.png')");                 return true;                 }         bool SqlUtil::creatDBConnection(QString& dbname)                 {                 QSqlDatabase db = QSqlDatabase::addDatabase("QSQLITE");                 db.setDatabaseName(dbname);                 bool ret = db.open();                 if (!ret)                         {                         QMessageBox::critical(0, qApp->tr("Cannot open database"),                                         qApp->tr("Unable to establish a database connection.\n"                                                 "This example needs SQLite support. Please read "                                                 "the Qt SQL driver documentation for information how "                                                 "to build it.\n\n"                                                 "Click Cancel to exit."), QMessageBox::Cancel);                         }                 return ret;                 }         bool SqlUtil::traversalDBTableModel(QString& tablename,                         QString& sqlstatement, MapExecStatement& mapexecresults)                 {                 QSqlTableModel model;                 model.setTable("P_QL");                 model.setFilter("F17 == 39.9671");                 model.setSort(17, Qt::DescendingOrder);                 model.select();                 for (int i = 0; i < model.rowCount(); ++i)                         {                         QString stridgeName = model.record(i).value("f01").toString();                         QString roadID = model.record(i).value("f02").toString();                         roadID.toStdString();                         qreal centerPoint = model.record(i).value("f03").toDouble();                         qreal stridgeLength = model.record(i).value("f04").toInt();                         qreal roadLength = model.record(i).value("f05").toInt();                         qreal crossLength = model.record(i).value("f06").toInt();                         qreal stridgeGrossWidth = model.record(i).value("f07").toInt();                         qreal stridgeNetWidth = model.record(i).value("f08").toInt();                         QString crossType = model.record(i).value("f09").toString();                         crossType.toStdWString();                         QString upStructure = model.record(i).value("f10").toString().toUtf8();                                                 qDebug()

最近访客

< 1/1 >

统计信息

已有99人来访过

  • 芯积分:--
  • 好友:--
  • 主题:6
  • 回复:77

留言

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


现在还没有留言