Texas Instruments MSP430x11x1 warranty Flash memory, timing generator, control register FCTL2, Wrt

Page 13

MSP430x11x1

MIXED SIGNAL MICROCONTROLLER

SLAS241C ± SEPTEMBER 1999 ± REVISED JUNE 2000

flash memory control register FCTL1 (continued)

Read access is possible at any time without restrictions.

The control bits of control register FCTL1 are:

15

FCTL1

0128h

8

7

 

 

 

 

 

 

0

 

SEG

WRT

res.

res.

res.

MEras

Erase

res.

 

WRT

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

rw±0 rw±0

r0

r0

r0

rw±0

rw-0

r0

FCTL1 read:

 

096h

 

 

 

FCTL1 write:

 

 

 

 

0A5h

 

 

 

Erase

0128h, bit1, Erase a segment

0:No segment erase will be started.

1:Erase of one segment is enabled. The segment to be erased is defined by a dummy write into any address within the segment. The erase bit is automatically reset when the erase operation is completed.

MEras

0128h, bit2, Mass Erase, main memory segments are erased together.

0:No segment erase will be started.

1:Erase of main memory segments is enabled. Erase starts when a dummy write to any address in main memory is executed. The MEras bit is automatically reset when the erase operation is completed.

WRT

0128h, bit6, Bit WRT must be set for a successful write execution.

If bit WRT is reset and write access to the flash memory is attempted, an access violation occurs and ACVIFG is set.

SEGWRT 0128h, bit7, Bit SEGWRT may be used to reduce total programming time.

Refer to MSP430x1xx User's Guide, literature number SLAU049 for details.

0:No segment-write acceleration is selected.

1:Segment-write is used. This bit needs to be reset and set between segment borders.

Table 3. Allowed Combinations of Control Bits Allowed for Flash Memory Access

FUNCTION PERFORMED

SEGWRT

WRT

MEras

Erase

BUSY

WAIT

Lock

 

 

 

 

 

 

 

 

Write word or byte

0

1

0

0

0

0

0

 

 

 

 

 

 

 

 

Write word or byte in same segment, segment write mode

1

1

0

0

0 1

0 1

0

 

 

 

 

 

 

 

 

Erase one segment by writing to any address in the target segment

0

0

0

1

0

0

0

 

 

 

 

 

 

 

 

Erase all segments (0 to 7) but not the information memory

0

0

1

0

0

0

0

(segments A and B)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Erase all segments (0 to 7 and A and B) by writing to any address in

0

0

1

1

0

0

0

the flash memory module

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

NOTE: The table shows all valid combinations. Any other combination will result in an access violation.

flash memory, timing generator, control register FCTL2

The timing generator (Figure 1) generates all the timing signals necessary for write, erase, and mass erase from the selected clock source. One of three different clock sources may be selected by control bits SSEL0 and SSEL1 in control register FCTL2. The selected clock source should be divided to meet the frequency requirements specified in the recommended operating conditions.

POST OFFICE BOX 655303 DALLAS, TEXAS 75265

13

Image 13
Contents Description MSP430x11x1Tssop Available Options Packaged Devices Functional block diagramPIN Sowb PIN Tssop Pulldown resistor of 30 k Ω is needed on F11x1Short-form description Terminal FunctionsProcessing unit Terminal Description NameCPU Address Mode DescriptionsInstruction set Instruction Word FormatsOperation modes and interrupts Low-power consumption capabilitiesSCG1 Status register R2SCG0 SCG1 SCG0Caifg Interrupt vector addressesWdtifg CCIFG1, CCIFG2, TaifgWdtifg Special function registersOfifg NmiifgFunctions of the bootstrap loader Boot ROM containing bootstrap loaderMemory organization Hardware resources used for serial input/output Features of the bootstrap loader areWDT VCC RST/NMI PIN Test PINVCC Bootstrap loader StartsTest InternalFlash memory control register FCTL1 Flash memoryErase 0128h, bit1, Erase a segment Flash memory, timing generator, control register FCTL2WRT FN0±FN5 Flash memory control register FCTL3SSEL0, SSEL1 AclkKeyv BusyAccvifg WaitLock Flash memory, interrupt and security key violationEmex PUC AccvPOR NmirsOscillator and system clock PeripheralsDigital I/O Clock SignalsTimerA Three capture/compare registers Watchdog timerTimerA, MSP430x11x1 Configuration TimerA 3 capture/compare registersComparatorA CAF CaoutCACTL2.4 CATCTL2.7CACTL1 Slope a/d conversionCaex Caon Caies Caifg Rsel REF1 REF0 CACTL2Peripherals with Byte Access Peripherals with Word AccessPeripheral file map Recommended operating conditions Absolute maximum ratings²MIN NOM MAX Units Frequency vs Supply Voltage MSP430x11x1 DevicesIAM Parameter Test Conditions MIN TYP MAX UnitILPM2 ILPM3Leakage current Outputs Port 1 to P2 P1.0 to P1.7, P2.0 to P2.5Inputs Px.x, TAx Internal signals TAx, Smclk at TimerAParameter Test Conditions VCC MIN TYP MAX Unit Port P1, P2 P1.x to P2.xComparatorA see Note Outputs P1.x, P2.x, TAxVRefVT vs Temperature, VCC = 2.2 V, C1121 VRefVT vs Temperature, VCC = 3 V, C1121CAF Caon PUC/PORParameter MIN NOM MAX Unit RAMVariance Max DCODcoclk DCO StepsWake-up from lower power modes LPMx Principle characteristics of the DCOJTAG/programming Port P1, P1.0 to P1.3, input/output with Schmitt-trigger Input/output schematicGND P1IFG.4 P1IES.4 P1DIR.4 P1OUT.4 SmclkP1DIR.5 P1OUT.5 P1IFG.5 P1IES.5CAPD.X Port P2, P2.0 to P2.2, input/output with Schmitt-triggerP2DIR.3 P2OUT.3 Port P2, P2.3 to P2.4, input/output with Schmitt-triggerP2IFG.3 P1IES.3 P2DIR.4 P2OUT.4P2DIR.5 P2SEL.5 VCCP2OUT.5 P2IRQ.5Port P2, unbonded bits P2.6 and P2.7 DW R-PDSO-G Pins DIM MAXPlastic SMALL-OUTLINE Package PIN ShownPins DIM MAX MIN Pins ShownPW R-PDSO-G Plastic SMALL-OUTLINE Package 15 NOM Gage Plane Seating Plane 20 MAXImportant Notice