完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好,我正试图建立一个无刷直流电机控制器使用18F44 31和AN899引导线。但是我认为HEX文件与PDF不兼容,特别是对于闭环(没有编码器控制),他们说霍尔传感器连接到PIN ITO 0—It1和It2,但是在提供的代码中,它们在PORTA(4-3-2)中是奇怪的?有人以前测试过这个应用,因为我真的需要得到一些答案。谢谢
以上来自于百度翻译 以下为原文 Hello I am trying to build a BLDC motor controller using 18f4431 and the an899 guidline. But I think that the hex file available is not compatible with the PDF especially for the closed loop ( There is no encoder control / They said that Hall sensor are connected to pin INT0 - INT1 and INT2 but in the provided code they are in portA ( 4-3-2) that's weird?? does anyone tested this application before because I really need to get some answers. Thx |
|
相关推荐
2个回答
|
|
我简要地回顾了AN899的代码下载,我看到了两件事。1)在OpenOBLDRACICIC.ASM行233中,检查每个霍尔传感器中断(IC1IF、IC2QEIF、IC3DRIF)。当中断发生时,控制转到HalxxSHIGH(X是A、B或C)。2)在同一文件中,第306行是PokiFixFi表的函数,它从PORTA读取所有霍尔传感器的当前状态。PIC18F4331的引脚将PORTA 2、3、4中的霍尔传感器的中断设置为代码。使用中断来跟踪发生的变化,并直接读取端口以查看所有传感器的当前状态。
以上来自于百度翻译 以下为原文 I have briefly reviewed the code download for AN899 and I see two things going on. 1) in open_bldcHallIC.asm line 233, is a check for each hall sensor interrupt (IC1IF, IC2QEIF, IC3DRIF). When the interrupts occur, control goes to HALL_x_HIGH (x is A,B, or C). 2) In the same file, line 306 is the function PICK_FROM_TABLE and it reads the current state of all the HALL sensors from PORTA. The pinout of the PIC18F4331 places the interrupts used for the hall sensor on PORTA 2,3,4. The code is written to use both the interrupt for tracking the changes as they happen, and direct reads of the port to see the current state of all the sensors. |
|
|
|
您好,谢谢您的回答,我使用的是闭环,但我认为它们是相同的只有PID改变,但对于函数PkyFixFi表,我们如何知道哪种组合的霍尔传感器是指MOSFET的哪一个组合是关闭的?(例如,MOSFET的010010个组合的霍尔传感器的001)它们没有指示,所以当我的马达有另一个组合时,我不能根据我的情况改变它。请解释如果你有答案请解释我。谢谢您。
以上来自于百度翻译 以下为原文 Hello, Thank you for your answer, I am using the closed loop but I think they are the same only PID change, But for the function pick_from_table how we can know which combination of hall sensor refered to which combination of mosfet are closed? ( for example 001 of hall sensor refered to 010010 combinaation of mosfet) They are not indicate so when my motor has another combination I couldn't change it according to my case? could explain please explain me if you have an answer. Thank you. |
|
|
|
只有小组成员才能发言,加入小组>>
4814 浏览 9 评论
1823 浏览 8 评论
1743 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
2949 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2055 浏览 5 评论
452浏览 1评论
1107浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
355浏览 0评论
260浏览 0评论
LAN9252使用SQI通信,进行数字复位后读BYTE_TEST异常
1777浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-4-19 14:08 , Processed in 1.812137 second(s), Total 74, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号