完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
嗨,我正在使用微芯片DALI固件。它是为PIC16F1947构建的。我想把它移植到PIC18F450。这个任务有多重要?问候,Akshay
以上来自于百度翻译 以下为原文 Hi i am using microchips DALI firmware.which is built for PIC16F1947.I want to port it for PIC18F4550.How critical this task will be? Regards, Akshay |
|
相关推荐
19个回答
|
|
|
我会说一点,除非它使用了一些只在PIC16增强的“新”外设,而且,为什么你要使用这样一个老PIC18?至少选择一个45 K50
以上来自于百度翻译 以下为原文 I'd say quite a little, unless it uses some of the "new" peripherals only available in PIC16 enhanced. Also, why would you want to use such an old PIC18? Pick a 45K50 at least |
|
|
|
|
|
我有PIC18F45的老开发板,为什么要用45 K50?
以上来自于百度翻译 以下为原文 I have old development board of PIC18F4550.Why do i use 45k50? |
|
|
|
|
|
我是Time1模块的问题,没有得到精确的频率。
以上来自于百度翻译 以下为原文 I am facinr problem with timer1 module.Not getting exactly frequency i set. |
|
|
|
|
|
然后发布你的代码。如果你有一个一次性项目,那就好了。但我会避免生产新产品…
以上来自于百度翻译 以下为原文 Post your code then. If you have a one-time project to go, then ok for the old chip. But I'd avoid it for a new production... |
|
|
|
|
|
在定时器中,它写得像(TMR1IF){TMR1IF=0;TMR1+= TyTimeServayVal},它不给出精确的OutPUTI改变它。它是有效的。为什么会这样?如果(TMR1IF){TMR1IF=0;TMR1= TyTimeSeriVal}
以上来自于百度翻译 以下为原文 In timer it is written like if(TMR1IF) { TMR1IF=0; TMR1+=TE_TIMER_VAL } It doesn't give exact output i changed it.It worked.Why this is so? if(TMR1IF) { TMR1IF=0; TMR1=TE_TIMER_VAL } |
|
|
|
|
|
在DALI固件中有标志转换验证。从未设置。WHT是这个标志的意义。
以上来自于百度翻译 以下为原文 In dali firmware there is flag transitionvalid.is never set.Wht is the significance of this flag. |
|
|
|
|
|
我不知道这个标志,一般来说,从这些代码片段中获取一些东西是不容易的。试着发布所有的代码,或者至少是相关的部分。
以上来自于百度翻译 以下为原文 I don't know about that flag and in general it's not easy to grasp something from those snippets of code. Try posting all of it, or at least the relevant parts. |
|
|
|
|
|
请找到完整的DALI STACK.HTTP//www. McCHIP.COM/PROM/DALI的链接
以上来自于百度翻译 以下为原文 Please find this link for complete DALI stack. http://www.microchip.com/promo/dali |
|
|
|
|
|
还没有工作,我已经使用DALI堆栈作为它。配置计时器和中断准确。DALI堆栈配置为PIC16F,我已经移植到PIC18F。什么可能是错误的?或者我需要得到DALI评估试剂盒进行测试吗?问候,Akshay。
以上来自于百度翻译 以下为原文 Not yet working,I have used DALI stack as it is.configured timers and interrupts accurately. DALI stack is configured for PIC16F and i have ported it to PIC18F.What might have been wrong? Or do i need to get DALI evaluation kit for testing? Regards, Akshay. |
|
|
|
|
|
大理图书馆本身有多大的便利?悲伤:
以上来自于百度翻译 以下为原文 How much convenient it will be to make changes in DALI library itself?sad: |
|
|
|
|
|
大理图书馆糟透了。你不想在生产环境中使用它。我把它移植到PIC18F,但最终改写了大部分。
以上来自于百度翻译 以下为原文 The DALI library is awful. You wouldn't want to use it in a production environment. I ported it to PIC18F, but ended up rewriting the majority of it. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
不幸的是,我不能分享这些代码。我快速地看了一下,我做了很多改变。有些功能是阻塞的,这对我不起作用。我还把输入改为轮询和去毛刺,而不是使用中断边沿。我为SigRok项目写了一个DALI解码器,它现在是分发的一部分。这是非常有用的,如果你弄乱DALI。你想控制镇流器的数量吗?你需要委托(地址)吗?我还没有使用“控制齿轮”固件,所以我不能对此发表评论。
以上来自于百度翻译 以下为原文 I can't share the code unfortunately. Had a quick look and I made a lot of changes. Some of the functions were blocking which didn't work for me. I also changed the input to poll and de-glitch rather than use the interrupt edge. I wrote a DALI decoder for the SIGROK project, which is now part of the distribution. This is very useful if you are messing with DALI. Are you trying to control a number of ballasts? Do you need to commission (Address) them? I haven't used the "Control Gear" firmware, so I can't comment on that. |
|
|
|
|
|
UIT88T DalISEnDATA(UTI8AYT ADDR,UIT88T VAL){IF(DististATE=StY-IDLE){DististATE=StdsEndol DATA;DalIFLAGS TXTISH设备=1;TrimeStudio有效=0;半比特数=1;TxClase= ADDR & lt;& 8;VAL;转发帧= TXPACK;/ /期望此转换导致输入中断LILIN();TyTimeTyVal= TyValuy;DalixTx= DalyLoLo;TythimeRyon=1;返回0;}否则{返回1;}这是发送DALI命令的函数。为什么像它那样写导致输入中断?
以上来自于百度翻译 以下为原文 uint8_t DALISendData(uint8_t addr, uint8_t val) { if (daliState == ST_IDLE) { daliState = ST_SEND_DATA; DALIFlags.txThisDevice = 1; transitionValid = 0; halfBitNumber = 1; txPacket = addr << 8 | val; forwardFrame = txPacket; // expect this transition to result in an input interrupt INT_DALI_FALLING(); TE_TIMER_VAL = TE_VALUE; DALI_TX = DALI_LO; TE_TIMER_ON = 1; return 0; } else { return 1; } } This is the function which sends DALI commands. Why is is written like it causes input interrupt? |
|
|
|
|
|
任何输出都会反馈到输入中断?
以上来自于百度翻译 以下为原文 Whatever goes to output will be feed back to input interrupt? |
|
|
|
|
|
对。DALI是单线的。你有达利灯吗?如果你可以发送0xFEFE,灯应该打开,0xFE00灯应该关掉。你正在编写控制器或灯的代码吗?
以上来自于百度翻译 以下为原文 Yes. DALI is single wire. Do you have a DALI light? if you can send 0xFEFE the light should turn on and 0xFE00 the light should turn off. Are you writing code for a controller or a light? |
|
|
|
|
|
微芯片DALI代码已经为控制设备和从属设备编写。我使用DALI控制设备代码。我刚刚把它从PIC16F1947移植到PIC18F450。关于,Akshay。
以上来自于百度翻译 以下为原文 Microchips DALI code has been written for both control device and slave.I am using DALI control device code.I am just porting it from PIC16F1947 to PIC18F4550. Regards, Akshay |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
454 浏览 0 评论
5793 浏览 9 评论
2334 浏览 8 评论
2224 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3529 浏览 3 评论
1121浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1093浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
872浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
457浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-1 11:12 , Processed in 1.681244 second(s), Total 108, Slave 91 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1984