欢迎来到第壹文秘! | 帮助中心 分享价值,成长自我!
第壹文秘
全部分类
  • 幼儿/小学教育>
  • 中学教育>
  • 高等教育>
  • 研究生考试>
  • 外语学习>
  • 资格/认证考试>
  • 论文>
  • IT计算机>
  • 法律/法学>
  • 建筑/环境>
  • 通信/电子>
  • 医学/心理学>
  • ImageVerifierCode 换一换
    首页 第壹文秘 > 资源分类 > PPT文档下载
    分享到微信 分享到微博 分享到QQ空间

    盛群单片机简介.ppt

    • 资源ID:182737       资源大小:2.54MB        全文页数:59页
    • 资源格式: PPT        下载积分:10金币
    快捷下载 游客一键下载
    账号登录下载
    三方登录下载: 微信开放平台登录 QQ登录
    下载资源需要10金币
    邮箱/手机:
    温馨提示:
    快捷下载时,如果您不填写信息,系统将为您自动创建临时账号,适用于临时下载。
    如果您填写信息,用户名和密码都是您填写的【邮箱或者手机号】(系统自动生成),方便查询和重复下载。
    如填写123,账号就是123,密码也是123。
    支付方式: 支付宝    微信支付   
    验证码:   换一换

    加入VIP,免费下载
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    盛群单片机简介.ppt

    2023/3/29Introduction of Holtek HT-46series MCU2023/3/29ContentFamily of A/D Type MCUi.Cost-Effective A/D type MCUii.A/D type MCUiii.A/D with LCD type MCUiv.A/D with VFD type MCUDetail of HT46R24i.Features of HT46R24ii.Block Diagramiii.Function Description(ROM, RAM, Interrupt, I/O, Timer, Buzzer, Oscillator, ADC, I2C, PWM, .)2023/3/29Cost-Effective A/D Type MCU2023/3/29A/D Type MCU2023/3/29A/D with LCD Type MCU2023/3/29Features of HT46R242023/3/29Block Diagram2023/3/29HT46X24 PIN ASSIGMENT2023/3/29Program ROM and Interrupt Vector2023/3/29RAM MAPPINGSpecial Purpose Data Memory General Purpose Data Memory 00h IAR0 10h TMR1L 20h HADR 01h MP0 11h TMR1C 21h HCR 02h IAR1 12h PA 22h HSR 03h MP1 13h PAC 23h HDR 04h BP 14h PB 24h ADRL 05h ACC 15h PBC 25h ADRH 06h PCL 16h PC 26h ADCR 07h TBLP 17h PCC 27h ACSR 08h TBLH 18h PD 28h PF 09h N.A. 19h PDC 29h PFC 0ah STATUS 1ah PWM0 0bh INTC0 1bh PWM1 0ch TMR0H 1ch PWM2 0dh TMR0L 1dh PWM3 0eh TMR0C 1eh INTC1 0fh TMR1H 1fh N.A. 2ah . . . . 3fh N.A. 40h . . . . . . . . . . . . . . . ffh BANK 0 40h . . . . . . . . . . . . . . . ffh BANK 1 2023/3/2963 InstructionsArithmeticlADD, SUBIncrement & DecrementlINC, INCA, DECLogic OperationlAND, OR, XORRotatelRR, RRC, RLData MovelMOVBit operationlSET, CLRTable ReadlTABRDC, TABRDLBranchlJMP, SZ, RET, RETIMiscellaneouslNOP, SWAP, HALT2023/3/29Arithmetic 2023/3/29Logic 2023/3/29Increment, Decrement, Rotate, Data Move, Bit Operation 2023/3/29Branch 2023/3/29Table Read ,Miscellaneous 2023/3/29Indirect AddressingIndirect addressing Register:lIRA0,IRA1.Memory Pointers:lMP0,MP1.2023/3/29Status Register2023/3/29I/O Structure 2023/3/29InterruptInterrupt has priority issue.Once an interrupt subroutine is serviced, all the other interrupts will be block ( by cleaning the EMI flag).After the subroutine set the “RETI”, the EMI will be set again.2023/3/29Interrupt control register2023/3/29Interrupt Scheme2023/3/29Timer/Event Counter 02023/3/29Timer/Event Counter 12023/3/29Timer Control Register 02023/3/29Timer Control Register 12023/3/293 modes available for the Timer/Counter 1.Timer Mode 2.Event Counter Mode 3.Pulse Width Mode 2023/3/294 steps to setup in the Timer Mode 1.Set to Timer Mode by writing 10 to TM1, TM0 2.Set the initial timer TMR value 3.Enable the corresponding interrupt by setting the ETI and EMI bit 4.Start the Timer by setting the TON bit of the TMRC 2023/3/295 steps to setup in the Even Counter Mode 1.Set to Event Counter Mode by writing 01 to TM1, TM0 2.Select TE=1 to count on the falling edge or TE=0 to count on the rising edge 3.Set the Timer initial value into TMR 4.Enable the corresponding interrupt by setting the ETI and EMI bits 5.Start the Timer by setting the TON bit in the TMRC register2023/3/295 steps to setup in the Pulse Width Measurement Mode 1.Set to Pulse Width Mode by writing 11 to TM1, TM0 2.Select TE=1 to measure a High Pulse Width and TE=0 to measure a Low Pulse Width 3.Set the Timer initial value, TMR, usually set to 0H for Pulse Width Measurements 4.Enable the corresponding interrupt by setting the ETI and EMI bits 5.Start the Timer by setting the TON bit in the TMRC 2023/3/29Programmable Frequency Divider (PFD) and BuzzerPFD is pin shared with PA3(selected via configuration optional).Clock source of PFD is come from timer0 or timer1 overflow signal (selected via configuration optional).PFD output is controlled by switch on/off PA3.2023/3/29Watchdog TimerThe watchdog timer is provided to prevent program uncontrollable .3 clock sources can be selected as watchdog timing source: (by configuration)lT1(fsys /4) ,32KHz RTC,WDT OSC output.lAt HALT, only WDT OSC or RTC oscillator is still running.2023/3/29Watchdog RegisterIf watchdog timeout ,the system will be reset. The status bit “TO” will be set.There are two method of using software to clear watchdog timer (selected by configuration) :lOne instruction : CLR WDTlTwo instruction : CLR WDT1, CLR WDT2 2023/3/29PWMPWM is Pulse Width Modulator. There are two modes 6+2 or 7+1 selected by configuration.User can change the duty cycle by softwarelby writing data to PWM0PWM3 special data register.PWM function can be controlled On/Off by software.lEnable PWM output : SET PD0lDisable PWM output : CLR PD0 2023/3/29PWM 6+2 Mode2023/3/29PWM 7+1 Mode2023/3/29Analog to Digital ConverterThe HT46R24 has a 10-bit ADC. ADC can be disabled by software.Max. 4 or 8 channels can input to the ADC.lChannels set in ADCR by softwareADC channels are pin-shared with Port B.lAs ADC input or Port B set in ADCR by softwareInput range is from 0 to VDD.Min. ADC clock period is 1 us.ADC sampling time is 32 ADC clocks.ADC convert time is 76 ADC clocks.Max. INL 1 LSB.2023/3/29ADC Convert Data RegisterADRL/ADRH are two registers to store the ADC convert data.2023/3/29A/D Convert Control Register2023/3/29A/D Convert Clock Source Register2023/3/29A/D Convert Timing Diagram2023/3/29I2C Bus InterfaceI2C bus is a bidirectional 2-wire serial interface.lSCL : serial clock pin.lSDA : serial data pin.I2C output

    注意事项

    本文(盛群单片机简介.ppt)为本站会员(p**)主动上传,第壹文秘仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知第壹文秘(点击联系客服),我们立即给予删除!

    温馨提示:如果因为网速或其他原因下载失败请重新下载,重复下载不扣分。




    关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

    copyright@ 2008-2023 1wenmi网站版权所有

    经营许可证编号:宁ICP备2022001189号-1

    本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。第壹文秘仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知第壹文秘网,我们立即给予删除!

    收起
    展开