tag 标签: dspic30f2010

相关博文
  • 热度 6
    2013-4-23 14:15
    2415 次阅读|
    0 个评论
        今天调试dsPIC30F2010的带HALL传感器无刷电机驱动程序。使用DEBUG方式调试,没有花多少时间就让电机转起来了,看起来比较顺利。          下午将程序烧录到芯片中时,开始郁闷了,电机一点反应没有。通过串口输出发现PORTB端口根本就没有读到HALL传感器的输出。反复折腾DEBUG就是正常。搞了几个小时才想起来PORTB端口默认设置是模拟输入口,修改程序将这几个脚改为数字端口后再烧录正常了。          很明显这是程序的问题,但搞不清楚为什么在debug时就能正常工作? 
相关资源
  • 所需E币: 4
    时间: 2019-12-24 17:17
    大小: 189.61KB
    上传者: 微风DS
    ThedsPIC30F2010(Rev.A0)samplesyouhavereceivedconformtothespecificationsandfunctionalitydescribedinthefollowingdocuments:•DS70030–dsPIC30FProgrammer’sReferenceManual•DS70118–dsPIC30F2010DataSheet•DS70046–dsPIC30FFamilyReferenceManualTheexceptionstothespecificationsinthedocumentslistedabovearedescribedinthissection.dsPIC30F2010RevA0siliconisidentifiedbyperforminga“ResetandConnect”operationtothedeviceusingMPLAB®ICD2withintheMPLABIDE.ThefollowingtextisvisibleundertheMPLABICD2sectionintheOutputwindowwithinMPLABIDE:dsPIC30F2010dsPIC30F2010Rev.A0SiliconErratadsPIC30F2010(Rev.A0)SiliconErrata4.EarlyTerminationofNested-DOloopsThedsPIC30F2010(Rev.A0)samplesyouhaveWhenusingtwoDOloopsinanestedfashion,receivedconformtothespecificationsandfunctionalityterminatingtheinner-levelDOloopbysettingthedescribedinthefollowingdocuments:EDT(CORCON)bitwillproduceunexpectedresults.DS70030……
  • 所需E币: 4
    时间: 2019-12-24 17:27
    大小: 257.21KB
    上传者: quw431979_163.com
    IntheDeviceDataSheet(DS70118G),thefollowingclarificationsandcorrectionsshouldbenoted.Anysili-conissuesrelatedtothedsPIC30F2010familywillbereportedinaseparatesiliconerrata.PleasechecktheMicrochipwebsite(www.microchip.com)foranyexistingissues.dsPIC30F2010dsPIC30F2010DataSheetErrataClarifications/CorrectionstotheData1.Module:DCTemperatureandVoltageSheet:SpecificationsIntheDeviceDataSheet(DS70118G),thefollowingRAMDataRetentionVoltage(ParameterDC12)inclarificationsandcorrectionsshouldbenoted.Anysili-theDCTemperatureandVoltageSpecificationsconissuesrelatedtothedsPIC30F2010familywillbe(Table22-4onpage148)haschangedfrom1.5Vreportedinaseparatesiliconerrata.PleasechecktheTypicalto1.75VMinimum.Thefollowingtable……