|
|
Número de pieza | MPC235 | |
Descripción | Low-Speed USB Micro-Controller | |
Fabricantes | Megawin | |
Logotipo | ||
Hay una vista previa y un enlace de descarga de MPC235 (archivo pdf) en la parte inferior de esta página. Total 30 Páginas | ||
No Preview Available ! MPC235
Low-Speed USB Micro-Controller
General Description........................................................................................................................................ 3
Features .......................................................................................................................................................... 4
Pin Description ............................................................................................................................................... 5
Block Diagram ............................................................................................................................................... 6
Packages ......................................................................................................................................................... 7
Function Description ...................................................................................................................................... 8
Memory Map.................................................................................................................................................. 9
Special Function Register (SFR) .................................................................................................................. 10
Interrupt Vectors ............................................................................................................................................11
Interrupt Registers ................................................................................................................................ 12
IRQ enable flag............................................................................................................................. 12
IRQ status flag.............................................................................................................................. 12
IRQ clear flag ............................................................................................................................... 12
Watchdog Timer (WDT)............................................................................................................................... 13
System Control Registers ............................................................................................................................. 14
Power saving control ............................................................................................................................ 14
Release halt mode enable flag .............................................................................................................. 14
FCPU selector............................................................................................................................................... 15
Timer ............................................................................................................................................................ 16
Timer 0 ................................................................................................................................................. 16
USB .............................................................................................................................................................. 17
USB Block Diagram............................................................................................................................. 17
USB register access control.................................................................................................................. 17
USB SFR Category - Descriptions Summary....................................................................................... 18
USB SFR Description........................................................................................................................... 19
DCON: Device Control Register .................................................................................................. 19
FADDR: USB Function Address Register.................................................................................... 19
FPCON: Function Power Control Register .................................................................................. 20
FIE: Function Interrupt Enable Register....................................................................................... 20
FIFLG: Function Interrupt Flag Register...................................................................................... 21
IEN1: USB Interrupt Enable Register .......................................................................................... 21
EPINDEX: Endpoint Index Register ............................................................................................ 22
EPCON: Endpoint Control Register (Endpoint-Indexed)............................................................. 22
RXCNT: Receive FIFO Byte-Count Register (Endpoint-Indexed) .............................................. 23
RXCON: Receive FIFO Control Register (Endpoint-Indexed) .................................................... 23
RXDAT: Receive FIFO Data Register (Endpoint-Indexed) ......................................................... 24
RXSTAT: Endpoint Receive Status Register (Endpoint-Indexed)................................................ 24
TXCNT: Transmit FIFO Byte-Count Register (Endpoint-Indexed) ............................................. 25
TXCON: Transmit FIFO Control Register (Endpoint-Indexed)................................................... 25
TXDAT: Transmit FIFO Data Register (Endpoint-Indexed) ........................................................ 26
TXSTAT: Endpoint Transmit Status Register (Endpoint-Indexed)............................................... 26
I/O Ports ....................................................................................................................................................... 27
Port 0 .................................................................................................................................................... 27
Port 1 .................................................................................................................................................... 27
Port 2 .................................................................................................................................................... 28
Port 3 .................................................................................................................................................... 28
Port 4 .................................................................................................................................................... 28
DPM control ......................................................................................................................................... 29
Programming Notice .................................................................................................................................... 30
Application Circuit ....................................................................................................................................... 31
Normal:................................................................................................................................................. 31
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. 2008 All rights reserved.
2008/12 version A4
MEGAWIN
1 page Pin Description
PIN Name
P0.0~0.3 *1
I/O Description
I/O Bi-directional I/O (sink LED directly)
P0.4/-INT0
I/O Bi-directional I/O with external interrupt 1
P0.5/-INT1
I/O Bi-directional I/O with external interrupt 2
P0.6~0.7
I/O Bi-directional I/O
P1.0~1.7
I/O Bi-directional I/O
P2.0~2.7
I/O Bi-directional I/O
P3.0~3.7
P4.0~4.1 *2
I/O Bi-directional I/O
I/O Bi-directional I/O
RESB
I Reset pin
XTAL1
I 6MHz crystal or resonator in
XTAL2
O 6MHz crystal or resonator out
DP I/O USB data + with PS/2 compatible I/O
DM I/O USB data - with PS/2 compatible I/O
VCC
I Voltage supply
VSS
I Ground
V3.3
O
3.3V regulated output, a 0.1uF to 1uF capacitor should be
added on this pin
*1 P0.0~0.3 can be used to sink LED directly (without any external resistor).
*2 P4.0~P4.1 only available on Die form.
MEGAWIN
MPC235 Data Sheet
5
5 Page Interrupt Vectors
Vector Address
8002H, 8003H
8006H, 8007H
8008H, 8009H
800AH, 800BH
800CH, 800DH
800EH, 800FH
Item
RESET
USB
TM0
P3
P04
P05
Priority
1
2
3
4
5
6
Properties
Ext.
Int.
Int.
Ext.
Ext.
Ext.
Memo
Initial reset
USB interrupt
Timer 0 overflow interrupt
Port P3 interrupt vector
Port P0.4 interrupt vector
Port P0.5 interrupt vector
There are six interrupt sources provided in MPC235. The flag IRQ_EN and IRQ_ST are used to
control the interrupts. When flag IRQ_ST is set to ‘1’ by hardware and the corresponding bits of
flag IRQ_EN has been set by firmware, an interrupt is generated. When an interrupt occurs, all of
the interrupts are inhibited until the CLI or STA IRQ_CLR, #I instruction is invoked. Executing the
SEI instruction can also disable the interrupts.
MEGAWIN
MPC235 Data Sheet
11
11 Page |
Páginas | Total 30 Páginas | |
PDF Descargar | [ Datasheet MPC235.PDF ] |
Número de pieza | Descripción | Fabricantes |
MPC235 | Low-Speed USB Micro-Controller | Megawin |
Número de pieza | Descripción | Fabricantes |
SLA6805M | High Voltage 3 phase Motor Driver IC. |
Sanken |
SDC1742 | 12- and 14-Bit Hybrid Synchro / Resolver-to-Digital Converters. |
Analog Devices |
DataSheet.es es una pagina web que funciona como un repositorio de manuales o hoja de datos de muchos de los productos más populares, |
DataSheet.es | 2020 | Privacy Policy | Contacto | Buscar |