| The Datasheet Archive - 100 Million Datasheets from 7500 Manufacturers. |
Additional file AP1639xx.EXE available In-System Programming C164
Top Searches for this datasheetMicrocontrollers ApNote AP1639 Additional file AP1639xx.EXE available In-System Programming C164-8E Devices Siemens C164CI-8E 16-bit microcontrollers provide KByte memory on-chip. This application note gives hints examples in-system programming C164CI devices. Memory programming memory uploading supported Windows-based memory tools "Memtool" "ROM_UP". Author Peter Microcontroller Application Support Semiconductor Group 02.99, C164 Memory Programming Contents Page Memory Overview Memory Configuration Host Mode (CHM) Selection. Memtool on-chip OTP/ Flash Memory Programming Tool Special Memtool Options Pits, Traps Mines Programming Drivers Overview Program Verify ROM_UP on-chip OTP/ Flash/ Memory Upload Tool. AP1639 ApNote Revision History Actual Revision 02.99 Page Page actual Rev. prev.Rel. chapter updated chapter updated MEMTOOL.EXE programming drivers updated Previous Revision 03/98 Semiconductor Group AP1639 02.99 C164 Memory Programming Memory Overview C164CI devices provide KBytes one-time-programmable ,,OTP" memory on-chip both instruction code constant data. C164CI module KBit memory organized double words each. interface presents fast read access (60ns fCPU MHz) machine cycle. Read accesses code data possible addressing mode, thus realizing highest performance with fetch execution double word instructions single instruction cycle. programming testing purposes special interface realised which directly connects module external internal (CPU) host. Programming performed steps 16-bit words, needing typically word. Special algorithms over-/ under-programming, with verify operations, necessary. programming voltage supplied pin. Unprogrammed memory cells contain '1's. memory programmed both appropiate programming board (supplier: Ertec, SMS, Data I/O) target system which provides flexibility. lower KBytes on-chip memory C164CI mapped either segment (00'0000H 00'7FFFH) segment (01'0000H 01'7FFFH) during initialization phase allow external memory used additional system flexibility. upper KBytes onchip memory assigned locations 01'8000H 02'0000H (figure Semiconductor Group AP1639 02.99 C164 Memory Programming 02'0000H Page Segment Page Page Page Page Segment Page Page Page 01'C000H 01'8000H 01'4000H 01'0000H 00'C000H 00'8000H 00'4000H 00'0000H KByte Memory Sector (32K) 00'FFFFH 00'8000H 00'0000H Mapping 00'0000H Physical Address C16x Memory Configuration Figure C164CI Memory Overview Semiconductor Group AP1639 02.99 C164 Memory Programming Memory Configuration Upon reset default memory configuration C164CI determined state pin. When internal memory disabled startup code fetched from external memory. order access on-chip memory after booting from external memory internal memory must enabled software setting ROMEN register SYSCON. lower KBytes memory mapped segment segment controlled ROMS1 register SYSCON. Mapping segment preserves external memory containing startup code, while mapping segment replaces lower KBytes external memory with onchip memory. this case valid vector table must provided. on-chip memory covers more than segment segmentation should enabled clearing SGTDIS register SYSCON) order whole internal into address space. Whenever internal memory configuration C164CI changed (mapping, enabling, disabling) following procedure must used ensure correct operation: Configure internal memory required Execute inter-segment branch (JMPS, CALLS, RETS) Reload four registers Note: Register SYSCON only modified before execution EINIT instruction. Note: detailed informations concerning handling internal non-volatile memory please refer users manual, chapter ,,System Programming" (Handling Internal ROM/ Pits, Traps Mines). Semiconductor Group AP1639 02.99 C164 Memory Programming Host Mode (CHM) Selection in-system programming necessary activate programming interface which realized XBUS peripheral. C164CI enters with port P0L.2 during reset. useful combine this mode with bootstrap loader mode (see next chapter). Memtool OTP/ Flash Memory Programming Tool In-system programming on-chip OTP- Flash memory supported Windows-based programming tool ,,Memtool" which freely available. Siemens provides driver updates Internet; please current status. Memtool application example well programming tool on-chip OTP- Flash memory, supporting C161CI-32F, C167CR-16F, C167CS-32F C163-16F Flash devices C164CI-8E devices. Thanks modular structure Memtool easily expandable future C16x devices. interested user driver sources also available (figure Along with drivers come readme.txt files which contain informations about hardware requirements latest informations about Memtool each driver. Memtool C163 Flash Driver C167 Flash Driver C164 Driver Driver Sources Driver Sources Driver Sources Figure Semiconductor Group AP1639 02.99 C164 Memory Programming software including programming data downloaded from host into internal microcontroller. application expects only internal RAM, external required. programming additional programming voltage (e.g. 11,5 applied Vpp. Please check right value data sheet. order download application from serial link established. C164CI already provides asynchronous serial interface that only connected COM1 COM2 your Supposing using Phytec C164CI starter kit, directly connect serial connector with COM1/ COM2 interface your Note: getting started steps needed: Activate bootstrap loader mode enter host mode (these modes activated with port pins P0L.2 P0L.4 "LOW" during reset; simple 8.2k pull down resistors applicable) Connect target with C164CI device host with serial cable. Special Memtool Options default Memtool expects serial communication RS232. Some drivers also support singlewire transmission (K-Line). drivers which support K-Line protocol marked with "KL" (see "Target"/ "Change"/ "Select Controller Type"). Select desired mode (RS232 K-Line) "Interface" "Setup Interface". some cases also useful LOG-file transmitted data. LOG-file generation switch "DIAGLOG" Memtool configuration file (memtool.ini/ siemtool.ini) "1". LOG-file will closed leaving Memtool. switch currently implemented. Pits, Traps Mines prevent controller from beeing damaged, generally main power must connected before disconnected after Vpp. Also microcontroller programming mode (CHM EHM) when applying Vpp. case in-system programming Memtool controller must programming mode. data transmission speed K-line (single-wire) increased, when FIFO used communication port (COM1, COM2) deactivated. C164CI enters bootstrap mode P0L.4 sampled hardware reset. this case activated, independent selected mode; evaluation (external access) bootstrap loader mode. host mode (CHM) default setting BUSACT0 register BUSCON0 "1", which means: external enabled. single-chip applications this might could lead problems with external peripherals, because accesses programming interface (respectively registers OPAD, OPDAT, OPCTRL) seen externally. this case necessary reset BUSACT0 before performing first programming interface access. default setting Semiconductor Group AP1639 02.99 C164 Memory Programming BUSACT0 independent SYSCON settings. C164 drivers BUSCON0 (and therefore BUSACT0) zero module "load_2". Note: Since device step setting BUSACT0 register BUSCON0 depends host mode (CHM) state during reset: P0L.2 "low" (CHM) "low": BUSACT0 (external enabled) P0L.2 "low" (CHM) "high": BUSACT0 (external disabled) Programming Drivers Overview Several programming drivers available. This founded different demands different applications. following overview just snapshot status quo. future versions will available which will partly replace current ones. Please attention readme.txt files which come along with drivers. fact that design step possible perform read accesses host mode (CHM), success programming operation only verified normal mode reading content ROMbus (see chapter 6.1). Since design step read accesses also performed CHM. Read accesses (like write accesses) controlled operation control register OPCTRL. Normal data read accesses without right OPCTRL setting would deliver dummy zero values "0000 long controller CHM. Furthermore necessary that during verify read accesses level limited Volt lower. C164 drivers properly tested with 9600 Baud transmission rate. readme.txt files sub-directories Memtool (memtool/ siemdrv/ C16x.) contain important informations about each driver version: C164CI Standard RS232 external disabled (BUSCON0=0000h) EINIT system clock output enabled switching control port C164CI cv_A (customized version RS232 external disabled (BUSCON0=0000h) EINIT system clock output enabled switching control port Semiconductor Group AP1639 02.99 C164 Memory Programming C164CI Phytec Starterkit RS232 external disabled (BUSCON0=0000h) EINIT instruction modules "progp" "vefy" system clock output enabled switching control port P8.3 C164CI cv_B (customized version K-Line external disabled (BUSCON0=0000h) EINIT instruction modules "progp" "vefy" system clock output enabled switching control port P1L.0 C164CI cv_C (customized version RS232 external disabled (BUSCON0=0000h) EINIT system clock output enabled switching control port Program Verify With current Memtool drivers verification programming only performed when normal mode. aware that still host mode (CHM) after programming. verify attempts will fail long normal mode, regardless content memory. entering normal mode necessary first disconnect pull-down resistor port P0L.2 then reset controller (pin P0L.4 remain unchanged "low" bootstrap loader mode). module "vefy" which performs comparison content memory source data bits ROMEN ROMS1 register SYSCON will order enable internal memory lower memory segment (see user's manual: "Memory Organization"). ROM_UP on-chip OTP/ Flash/ Memory Upload Tool Attached there Windows-based utility "ROM_UP20" which allows upload content OTP-, Flash- memory (blocks 32k.256k currently supported) using bootstrap loader. uploaded data then stored into file (helpful necessary filecompare). Semiconductor Group AP1639 02.99 C164 Memory Programming Following short description ROMUPV2.EXE: Self extracting utility program upload contents internal Flash/ memory bootstrap loader. combination with bootstrap loader which executed from internal flash, this program allows upload content internal Flash/ OTP/ memory serial port optionally write uploaded data into file. When Upload V2.0 invoked, click second line left side near loader program click field "load." select file "loader.hex" (since example bootstrap loader only accepts bytes (like integrated bootstrap loader), second loader (loader.hex) must used load larger programs) click field "load." right side third line select desired upload program according desired/ maximum memory size your controller (64kb.h67 will read entire memory C164CI-8E, 32kb.h67 will read first Kbyte memory) Note: first 32Kbyte (0000h.7FFFh) memory always mapped segment (1'0000h.1'7FFFh) file "loader.hex" order have linear addresses. Semiconductor Group AP1639 02.99 Other recent searchesX9430 - X9430 X9430 Datasheet NAT-3DC-1A+ - NAT-3DC-1A+ NAT-3DC-1A+ Datasheet LVDS-18B-EVK - LVDS-18B-EVK LVDS-18B-EVK Datasheet HD-6408 - HD-6408 HD-6408 Datasheet GLT440M16 - GLT440M16 GLT440M16 Datasheet EL6834 - EL6834 EL6834 Datasheet FN7238 - FN7238 FN7238 Datasheet C8051F002 - C8051F002 C8051F002 Datasheet C8051F000DK - C8051F000DK C8051F000DK Datasheet ADV9701 - ADV9701 ADV9701 Datasheet
Privacy Policy | Disclaimer |