本人最近做的项目中用到一款st的upsd3354,51内核的,当时老板选这款芯片的原因就是考虑兼容性,缩短开发周期的,因为我们之前的这款产品用的是51的,但结果却事与愿违,想当初还不如用stm32系列的!就算不考虑性价比的话,相关的资料stm32也要多的多,本人E文水平很差,也许是因为国内用的少的缘故,相关中文资料很少,相对来说3200系列的还多一点,不过3200系列的没有JTAG调试功能,所以到现在为止,jtag调试问题还是没有完全解决!希望有高手能指点一下,另外不得不说的是这款芯片的国内代理商的技术支持真是垃圾啊!虽然3354的性能没说的!下面是3354的基本介绍!
Fast 8032 MCU with Programmable Logic
FEATURES SUMMARY
■ FAST 8-BIT TURBO 8032 MCU, 40MHz
– Advanced core, 4-clocks per instruction
– 10 MIPs peak performance at 40MHz (5V)
– JTAG Debug and In-System
Programming
– Branch Cache & 6 instruction Prefetch
Queue
– Dual XDATA pointers with auto incr & decr
– Compatible with 3rd party 8051 tools
■ DUAL FLASH MEMORIES WITH MEMORY
MANAGEMENT
– Place either memory into 8032 program
address space or data address space
– READ-while-WRITE operation for In-
Application Programming and EEPROM
emulation
– Single voltage program and erase
– 100K guaranteed erase cycles, 15-year
retention
■ CLOCK, RESET, AND SUPPLY
MANAGEMENT
– SRAM is Battery Backup capable
– Flexible 8-level CPU clock divider register
– Normal, Idle, and Power Down Modes
– Power-on and Low Voltage reset
supervisor
– Programmable Watchdog Timer
■ PROGRAMMABLE LOGIC, GENERAL
PURPOSE
– 16 macrocells
– Create shifters, state machines, chipselects,
glue-logic to keypads, panels,
LCDs, others
■ COMMUNICATION INTERFACES
– I2C Master/Slave controller, 833KHz
– SPI Master controller, 10MHz
– Two UARTs with independent baud rate
– IrDA protocol support up to 115K baud
– Up to 46 I/O, 5V tolerant on 3.3V
uPSD33xxV
Figure 1. Packages
■ A/D CONVERTER
– Eight Channels, 10-bit resolution, 6μs
■ TIMERS AND INTERRUPTS
– Three 8032 standard 16-bit timers
– Programmable Counter Array (PCA), six
16-bit modules for PWM, CAPCOM, and
timers
– 8/10/16-bit PWM operation
– 11 Interrupt sources with two external
interrupt pins
■ OPERATING VOLTAGE SOURCE (±10%)
– 5V devices use both 5.0V and 3.3V
sources
– 3.3V devices use only 3.3V source
我用的是软件是keilc51,下载调试用的是ulink2。upsd3354和一般的单片机的区别就是多了外围的pld电路,另外片内的flash,sram容量都比较大!,比较困难的也就是配置pa-pd口的管脚和flashram的地址分配,我们用的是数据块大,程序块小,所以main flash放数据,secondflash放程序,upsd3354没有p2口,16位地址总线的高位地址就用pb口代替,因为要读取外部的大量数据,pa口也扩展成了地址线,片内是16位的地址总线,寻址范围为64k,所以片内的mainflsh要分页处理,而且片内的flsh地址和sram地址重合,片内片外的数据存储器地址也有重合,处理区分都是用的分页寄存器来处理的,另外还有一个比较重要的控制寄存器vm控制wr,rd访问!用在iap时!说了这么多还没有讲到jtag的问题,现在jtag擦除,下载程序都没有问题,就是调试时,程序总是不能从头文件(A51后缀),跳到从源程序上,所以调试时进不了源程序调试界面,都是进的反汇编界面,这样就麻烦的多,不知高手们有什么解决办法没!因为反汇编的调试界面看着都头大!就先说这么多,希望高手能指点一下,反正现在的感觉就是无助啊!给技术支持打电话,他们总是含混不清的!
用户212675 2009-8-10 17:24
用户1179377 2009-7-13 10:56
用户1179377 2009-7-13 10:47