热搜关键词: 电路基础ADC数字信号处理封装库PLC

pdf

MG87FEL04_DS_EN_A1.0

  • 1星
  • 2015-04-21
  • 1.38MB
  • 需要1积分
  • 0次下载
标签: megwell

megwell

笙泉单片机,小体积,小功耗!

8051-Based MCU
MG87FE/L04
Data Sheet
Version: A1
This document contains information on a new product under development by Megawin. Megawin reserves the right to change or
discontinue this product without notice.
Megawin Technology Co., Ltd. 2012 All rights reserved.
2014/03 version A1
2
MG87FE/L04 Data Sheet
MEGAWIN
Features
80C51 Central Processing Unit
MG87FE/L04 with 4KB flash ROM
Operating voltage: 4.5V~5.5V for MG87FE04 ; 2.7V ~ 3.6V for MG87FL04.
Operation frequency : Internal RC-oscillator (default 22.118MHz@12T) with +/- 4% frequency drift @ -40 ~
85℃
IAP capability; 2KB IAP memory size
On-chip 256 bytes data RAM for MG87FE/L04
Code protection for flash memory access
Two 16-bit timer/counter
PWM-Timer for PWM generator or normal 8-bit timer, selectable interrupt source
Enhanced UART, provides frame-error detection and hardware address-recognition
15 bits Watch-Dog-Timer with 8-bit pre-scalar, one-time enabled by CPU or power-on
Power control: idle mode and power-down mode, Power-down can be woken-up by INT0 (P3.2), INT2
(P4.3), and other I/O.
I/O port list, P1.5 (P3.5/T1), P1.3 (P4.3/INT2), P1 [1:0] and P3 [2:0].
Built-in analog comparator with selectable interrupt on INT2. AIN0(V+) on P1.0 and AIN1(V-) on P1.1,
output on P3.6(internal port)
Package type: MSOP-10
Order Information:
Items
MG87FE04
MG87FL04
Package Type
MSOP-10
MSOP-10
IC Marking
MG87E04S
MG87L04S
MEGAWIN
MG87FE/L04 Data sheet
3
4
MG87FE/L04 Data Sheet
MEGAWIN
Content
Features ............................................................................................................ 3
Content .............................................................................................................. 5
1. General Description .................................................................................... 7
2. Block Diagram ............................................................................................ 8
3. Pin Configurations....................................................................................... 9
3.1. Package Instruction .............................................................................................................9
3.2. Pin Description (MSOP-10) ...............................................................................................10
4.
8051 CPU Function Description ................................................................ 11
4.1. CPU Register ....................................................................................................................11
4.2. CPU Timing .......................................................................................................................12
4.3. CPU Addressing Mode ......................................................................................................12
5.
6.
7.
Memory Organization................................................................................ 13
5.1. On-Chip Program Flash ....................................................................................................13
5.2. On-Chip Data RAM ...........................................................................................................14
Special Function Register ......................................................................... 15
6.1. SFR Map ...........................................................................................................................15
6.2. SFR Bit Assignment ..........................................................................................................16
Configurable I/O Ports .............................................................................. 17
7.1. IO Structure.......................................................................................................................17
7.1.1. Port 1/3/4 GPIO Structure ...........................................................................................17
7.2. Port1 Register ...................................................................................................................17
7.3. Port3 Register ...................................................................................................................17
7.4. Port4 Register ...................................................................................................................18
7.5. GPIO Sample Code ..........................................................................................................19
8.
9.
Interrupt .................................................................................................... 20
8.1. Interrupt Structure .............................................................................................................20
8.2. Interrupt Register ..............................................................................................................21
Timers/Counters ....................................................................................... 24
9.1. Timer0 and Timer1 ............................................................................................................24
9.1.1. Mode 0 Structure ........................................................................................................24
9.1.2. Mode 1 Structure ........................................................................................................24
9.1.3. Mode 2 Structure ........................................................................................................24
9.1.4. Mode 3 Structure ........................................................................................................25
9.1.5. Timer0/1 Register .......................................................................................................26
9.2. Timer0/1 Sample Code .....................................................................................................27
9.3. PWM-Timer .......................................................................................................................29
9.3.1. PWM-Timer Structure .................................................................................................29
9.3.2. PWM-Timer Register ..................................................................................................30
9.4. PWM Sample Code ...........................................................................................................32
10. UART ........................................................................................................ 33
10.1. UART Structure .................................................................................................................33
10.2. UART Register ..................................................................................................................34
10.1. Serial Port Sample Code ...................................................................................................36
11. Analog Comparator ................................................................................... 37
11.1. Analog Comparator Structure ............................................................................................37
11.2. Analog Comparator Register .............................................................................................37
12. Watch Dog Timer (WDT) .......................................................................... 39
MEGAWIN
MG87FE/L04 Data sheet
5
展开预览

猜您喜欢

评论

登录/注册

意见反馈

求资源

回顶部

推荐内容

热门活动

热门器件

随便看看

  • 超声问题
    鄙人最近在用超声波探头做实验接收端 得到的信号如下,经过放大滤波黄颜色的是探头接收到的信号 ,这个信号正常不?谢谢各位指点
  • 基于ADE7757的智能电能计量系统
    经过一段时间的努力,智能电能计量系统基本完成了原理图到PCB的设计。本电路采用NXP的LPC1114作为主控芯片,ADI的ADE7757作为电能计量芯片,并通过显示模块显示电能值,添加了掉电存储电能芯片和看门狗保护电路。采用双电源系统供电,继电器输出控制和232电能输出等功能。[[i] 本帖最后由 zhaojun_xf 于 2011-7-19 08:07 编辑 [/i]]
  • 笔记本电脑电池为啥越用容量越小?
    这个问题正好撞到我的枪口上了,就好好掰扯掰扯。我尽量不把这事儿说成学术讲座,但还是要了解几个概念锂离子电池,每经历一次充放电,都会损失一点容量。一般现在锂电池循环次数在1500-2000次。下图就是一个文献里面提到的,a图是不同老化阶段的电压曲线,b图是可用的容量,也叫健康状态。1是新电池,0是完全报废的。散实际上用到80%SOH就几乎不能用了(电动汽车电池报废指标)。因为随着老化,电池容量衰减,
  • CC2640R2F单载波代码
    一、简介CC2640R2F的SDK中没有单载波发送的代码,根据CC1310的单载波代码进行移植,实测OK。二、环境1.IAR8.112.SDK:simplelink_cc2640r2_sdk_1_40_00_45三、参考资料:1.C:\ti\simplelink_cc13x0_sdk_1_60_00_21\examplestos\CC1310_LAUNCHXL\driversfCarrierWav
  • 单片机语言C51实战集锦
    学习C51的资料 希望大家喜欢不好意思 还没学会发资料呢 大家等等啊
  • LCD清屏函数问题
  • EE_FPGA V1.0 PCB & 器件开始发送
  • 基于CORDIC算法超越函数运算器设计与实现
  • 【TI经典】开关电源基础知识(TI培训电子书)
  • 好心人帮我看看我的AD7705程序

 
EEWorld订阅号

 
EEWorld服务号

 
汽车开发圈

电子工程世界版权所有 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号 Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved
×