CMOSTEK CMT2380F16 Operation Manual Download Page 20

 
 

AN211 

Rev 0.5 | 20/24

 

www.cmostek.com

 

 

5.2  Chip Hardware Options 

 

LOCK 

Enable : Code dumped on a Writer is locked to 0xFF for security 

Disable : Code dumped on a Writer is not locked 

 

SB 

Enable : Code dumped on a Writer is scrambled for security 

Disable : Code dumped on a Writer is not scrambled 

 

MOVCL 

Enable : MOVC instruction executed from external program memory is disabled for security.

 

Disable : MOVC is always enabled. 

 

EN6T 

Enable : MCU runs at 6T mode (each machine-cycle has 6 clocks).

 

Disable : MCU runs at 12T mode (each machine-cycle has 12 clocks) 

 

HWBS 

Enable : When power-on, MCU will boot from ISP-memory if ISP-memory exists

 

Disable : (No action) 

 

OSCDN 

Enable : Used under 16MHz for EMI reduction. (The gain of oscillating amplifier is reduced.)

 

Disable : The gain of crystal oscillator is enough for higher Fosc oscillating 

 

AUX_RAM 

Enable : The internal auxiliary RAM access is disabled when the ERAM bit =0 ( AUXR.bit1 ) and when ERAM bit =1 the 

internal auxiliary RAM access is enable

 

Disable : The internal auxiliary RAM access is enable when the ERAM bit =0 ( AUXR.bit1 ) and when ERAM bit =1 the 

internal auxiliary RAM access is disabled 

 

FZWDTCR 

Enable : The WDTCR register will be initialized to its reset value only by power-on reset

 

Disable : The WDTCR register will be initialized to its reset value by all reset (including power-on, H/W, S/W and WDT 

reset) 

 

ENLVR 

Enable : Enable Low-Voltage Reset (LVR) , the LVR is around 2.4V for 3.3V device and 3.7V @12MHz for 5.0V device

 

Disable : Disable LVR 

 

LVFWP 

Enable : Enable LVFWP (Low-Voltage Flash-Write Protection) while IAP or ISP programming

 

Disable : Disable LVFWP 

 

ENROSC 

Enable : MCU will used the internal 6MHz oscillator

 

Disable : MCU will used the external oscillator 

 

HWENW 

Enable : Automatically enable Watch-dog Timer by hardware when MCU is powered up

 

 

 

 

 

Summary of Contents for CMT2380F16

Page 1: ...online programming operation Chip offline programming operation Multi machine serial programming operation The product models covered in this document are shown in the table below Table 1 Product Mode...

Page 2: ...Operation 9 2 1 6 Save Project File 10 2 1 7 Read Target Chip Information 11 2 2 Offline Programming Operation 11 2 2 1 Chip Model Selection 12 2 2 2 Load File 12 2 2 3 Insert ISP Code 12 2 2 4 Set H...

Page 3: ...xternal power supply Moreover multiple units can be connected together for one click batch programming or for batch programming in factory The Writer hardware structure is both simple and compact The...

Page 4: ...AN211 Rev 0 5 4 24 www cmostek com 2 CMT2380F16 Writer Operation The CMT2380F16 Writer UI interface is shown in the below figure Figure 2 Writer UI Interface...

Page 5: ...1 1 Chip Model Selection Select chip model CMT2380F16 3 3V is selected automatically as shown in the below figure Figure 4 Select Chip Model 2 1 2 Load File Select AP IAP Area Click Load File button t...

Page 6: ...fter above AP IAP Area settings the file loading window pops up as shown in the below figure to load the IC code files to be programmed to the chip file formats are BIN HEX and MPJ 1 Select the file t...

Page 7: ...p CMOSTEK provided ISP code 1 Click Insert ISP Code 2 Select CMOSTEK provided ISP code then click Insert button Figure 8 Insert ISP Code Insert User defined ISP code 1 Click on Insert ISP Code 2 Selec...

Page 8: ...Code Notes 1 The function of ISP code is similar to the STM32 bootloader 2 The chip supports U1 and ICE programming 3 The ISP code will occupy some Flash space 4 After the ISP code is inserted the sof...

Page 9: ...e setting Watchdog setting IC option setting Figure 10 Hardware Options Setting Notes 1 In general users only need to tick on LOCK encryption BO1S0O voltage setting for low voltage detection and HWBS...

Page 10: ...chip model AP program IAP data ISP space IAP space setting into an mpj file by performing Open File AP and the software will automatically load the above content Figure 12 Save Project File After cli...

Page 11: ...ow figure if a chip is not encrypted users can read Flash ISP space IAP space and Setting information by clicking Dump Target button ISP space reading information IAP space reading information Watchdo...

Page 12: ...connection Offline programming connection Figure 15 Offline Programming Connection The operation flow of offline programming is described in the following sections 2 2 1 Chip Model Selection The speci...

Page 13: ...1 Click Offline mode 2 Set the maximum number of programming 0 65534 x For example if the max counter is set to 2000 the U1 tool will report an error during programming after successfully programming...

Page 14: ...ming The yellow light is on during programming After programming completion if successful the green turns on and the buzzer will have one long beep otherwise the red light turns on and the buzzer will...

Page 15: ...the programmer following the offline programming operation Connect the programmers as shown in the below figure Press Auto key to start programming The yellow light is on during programming After prog...

Page 16: ...d Figure 20 Series Number Usage The operation flow is as follows enable the serial number function The serial number has a total of 16 bytes a 12 byte string and a 4 byte number the is string up to 12...

Page 17: ...hip the information stored in 0x3500 0x350F is as follows Figure 21 Information in Code Buffer 1 Based on the setting in the below figure after programming the second chip the information stored in 0x...

Page 18: ...overlapped Note that the minimum unit of Flash area division is a sector which is 512 bytes 3 If the contents of IAP Data and Serial Number are not changed after programming it is highly recommended...

Page 19: ...n ISP space It is a special storage space where program code can run independently It is generally used for online programming of AP and IAP space and the storage space of ISP itself can only be progr...

Page 20: ...higher Fosc oscillating AUX_RAM Enable The internal auxiliary RAM access is disabled when the ERAM bit 0 AUXR bit1 and when ERAM bit 1 the internal auxiliary RAM access is enable Disable The internal...

Page 21: ...ble LVFWP Low Voltage Flash Write Protection while IAP or ISP programming Disable Disable LVFWP P40IOE Enable Enable the P4 0 is in Input Only mode after Power On Reset Disable The P4 0 is in default...

Page 22: ...AN211 Rev 0 5 22 24 www cmostek com Enable Enable the WDT to run in power down mode Disable Disable the WDT to run in power down mode...

Page 23: ...AN211 Rev 0 5 23 24 www cmostek com 6 Revise History Table 2 Revise History Records Version No Chapter Description Date 0 5 All Initial version 2019 07 19...

Page 24: ...for inaccuracies and specifications within this document are subject to change without notice The material contained herein is the exclusive property of CMOSTEK and shall not be distributed reproduce...

Reviews: